It seems that when trying to load actions.xml of some jars, if it doesn't exists there
is an exception.
It happens a lot when doing a "find orphan" action in the Plugin Manager.
I don't think we should print a stacktrace here since it is not mandatory to have
actions in a plugin
java.io.IOException: Resource not found: WhiteSpace.jar!actions.xml
at org.gjt.sp.jedit.proto.jeditresource.PluginResURLConnection.connect(PluginResURLConnection.java:88)
at org.gjt.sp.jedit.proto.jeditresource.Handler.openConnection(Handler.java:46)
at java.net.URL.openConnection(URL.java:945)
at java.net.URL.openStream(URL.java:1010)
at org.gjt.sp.jedit.JEditActionSet.load(JEditActionSet.java:385)
at org.gjt.sp.jedit.PluginJAR.generateCache(PluginJAR.java:1328)
at org.gjt.sp.jedit.pluginmgr.ManagePanel$FindOrphan.actionPerformed(ManagePanel.java:1020)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at org.jvnet.substance.utils.RolloverButtonListener.mouseReleased(RolloverButtonListener.java:111)
at java.awt.Component.processMouseEvent(Component.java:6263)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6028)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4630)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2475)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
| Submitted | kpouer - 2010-01-27 - 09:59:52z | Assigned | kerik-sf |
|---|---|---|---|
| Priority | 5 | Category | plugin manager |
| Status | Open | Group | None |
| Resolution | None | Visibility | No |
| 2013-03-30 - 18:06:11z kerik-sf |
This exception doesn't appear as such anymore, because PluginResURLConnection.openStream()
now silently returns null. New exception: (log) ActionSet: Loading actions from jeditresource:/UpdaterPlugin.jar!/actions.xml (exception) ActionSet: java.io.IOException: Stream closed ActionSet: at java.io.BufferedInputStream.getInIfOpen(BufferedInputStream.java:151) ActionSet: at java.io.BufferedInputStream.fill(BufferedInputStream.java:235) ActionSet: at java.io.BufferedInputStream.read(BufferedInputStream.java:254) ActionSet: at com.sun.org.apache.xerces.internal.impl.XMLEntityManager$RewindableInputStr ActionSet: at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity ActionSet: at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVers ActionSet: at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Co ActionSet: at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Co ActionSet: at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:1 ActionSet: at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Abstract ActionSet: at org.gjt.sp.util.XMLUtilities.parseXML(XMLUtilities.java:140) ActionSet: at org.gjt.sp.jedit.JEditActionSet.load(JEditActionSet.java:394) ActionSet: at org.gjt.sp.jedit.PluginJAR.generateCache(PluginJAR.java:1457) ActionSet: at org.gjt.sp.jedit.pluginmgr.ManagePanel$FindOrphan.actionPerformed(ManagePan ActionSet: at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018) ActionSet: at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341 ActionSet: at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java: ActionSet: at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259) ActionSet: at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListene ActionSet: at java.awt.Component.processMouseEvent(Component.java:6505) ActionSet: at javax.swing.JComponent.processMouseEvent(JComponent.java:3312) ActionSet: at java.awt.Component.processEvent(Component.java:6270) ActionSet: at java.awt.Container.processEvent(Container.java:2229) ActionSet: at java.awt.Component.dispatchEventImpl(Component.java:4861) ActionSet: at java.awt.Container.dispatchEventImpl(Container.java:2287) ActionSet: at java.awt.Component.dispatchEvent(Component.java:4687) ActionSet: at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832) ActionSet: at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492) ActionSet: at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422) ActionSet: at java.awt.Container.dispatchEventImpl(Container.java:2273) ActionSet: at java.awt.Window.dispatchEventImpl(Window.java:2719) ActionSet: at java.awt.Component.dispatchEvent(Component.java:4687) ActionSet: at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:729) ActionSet: at java.awt.EventQueue.access$200(EventQueue.java:103) ActionSet: at java.awt.EventQueue$3.run(EventQueue.java:688) ActionSet: at java.awt.EventQueue$3.run(EventQueue.java:686) ActionSet: at java.security.AccessController.doPrivileged(Native Method) ActionSet: at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.j ActionSet: at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.j ActionSet: at java.awt.EventQueue$4.run(EventQueue.java:702) ActionSet: at java.awt.EventQueue$4.run(EventQueue.java:700) ActionSet: at java.security.AccessController.doPrivileged(Native Method) ActionSet: at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.j ActionSet: at java.awt.EventQueue.dispatchEvent(EventQueue.java:699) ActionSet: at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.jav ActionSet: at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:1 ActionSet: at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.jav ActionSet: at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146) ActionSet: at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138) ActionSet: at java.awt.EventDispatchThread.run(EventDispatchThread.java:91) I can reproduce it when clicking find orphan with inactive plugins. I get 3 stack traces for every plugin (when loading actions.xml, dockables.xml, services.xml) |
|---|---|
| 2013-03-30 - 18:15:59z kerik-sf |
see fix in https://sourceforge.net/tracker/?func=detail&aid=3609561&group_id=588&atid=300588 |