[kepler-users] Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException...Additional strange behavior...
J. Marc Edwards
marc.edwards at nimbisservices.com
Mon Oct 17 12:41:46 PDT 2011
Christopher:
OK...removing the .kepler and KeplerData directories worked to correct the problem.
However, now I am having a new problem. BTW, I haven't seen any of these issues before I started upgrading modules that were being requested from Kepler upon invocation.
First, I started out with a workflow named, SPAWAR_TSS_DC_Workflows_1.kar. I then proceeded to increment the version number for changes, i.e. SPAWAR_TSS_DC_workflows_2/3/4.kar, etc. I had used the ImageAttribute actor to add some jpeg images to the workflow canvas. If Kepler cannot find the image file or directory in the ImageAttribute actor, then an error message is displayed and a default image (Kepler) is displayed in the ImageAttribute actor. OK...so I update the workflow and deleted some of the ImageActors (and the associated directory where I had the jpegs, there were four (4) such ImageAttribute actors that I deleted) and resaved the workflow with an incremented version, to SPAWAR_TSS_DC_Workflows_3.kar.
When I open up the SPAWAR_TSS_DC_Workflow_3.kar file, Kepler is displaying the image file error complaining that it cannot find the image/directory for the ImageAttribute.
The strange behavior is this...
1. I'm receiving a Kepler error display that Kepler cannot find the image file for the ImageAttribute actor...
* If I "Skip remaining errors" and look at the workflow canvas, I do NOT see and of the default Kepler ImageAttribute actors!
* The message is referring to SPAWAR_TSS_DC_Workflows_1.Digital Simulation.Image2.source!!
* NOTE the "..._1.Digital...", Kepler seems to be referring to the OLDER version of the workflow!
* I've pasted the error output below.
* Clearly, it cannot find the image needed, but I cannot see a display of the missing image ImageAttribute actor.
*
I decided to re-create the images in the directory that Kepler was looking in so that Kepler could find the images that it thought it needed.
* As I mentioned above, there was a total of four (4) missing images for these phantom ImageAttribute actors.
* I was hoping that this phantom ImageAttribute actor would show up on the workflow canvas.
* I did this one image at a time.
* The 1st, 2nd, and 3rd images were found and Kepler seemed to be happy.
* This did NOT work for the 4th image for some reason. I can't explain this, but Kepler cannot seem to find this last image despite the image file being in the directly Kepler is looking for.
2.
The second strange behavior is this...
* When I try to drop a new actor onto the workflow canvas, I am receiving an "Exception" window...
* I've pasted the output below.
* The message on the Exception window is:
* Change failed
* Cannot create entity without a class name. In [external stream] at line 2 column 17
SECOND ERROR DISPLAY with "Exception"
com.microstar.xml.XmlException: Cannot create entity without a class name. in [external stream] at line 2 and column 27
at ptolemy.moml.MoMLParser._checkForNull(MoMLParser.java:3792)
at ptolemy.moml.MoMLParser._createEntity(MoMLParser.java:3973)
at ptolemy.moml.MoMLParser.startElement(MoMLParser.java:2493)
at com.microstar.xml.XmlParser.parseElement(XmlParser.java:921)
at com.microstar.xml.XmlParser.parseContent(XmlParser.java:1104)
at com.microstar.xml.XmlParser.parseElement(XmlParser.java:924)
at com.microstar.xml.XmlParser.parseContent(XmlParser.java:1104)
at com.microstar.xml.XmlParser.parseElement(XmlParser.java:924)
at com.microstar.xml.XmlParser.parseDocument(XmlParser.java:481)
at com.microstar.xml.XmlParser.doParse(XmlParser.java:159)
at com.microstar.xml.XmlParser.parse(XmlParser.java:132)
at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1402)
at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1374)
at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1530)
at ptolemy.moml.MoMLChangeRequest._execute(MoMLChangeRequest.java:289)
at ptolemy.kernel.util.ChangeRequest.execute(ChangeRequest.java:171)
at ptolemy.kernel.util.NamedObj.executeChangeRequests(NamedObj.java:735)
at ptolemy.kernel.util.NamedObj.requestChange(NamedObj.java:1775)
at ptolemy.actor.CompositeActor.requestChange(CompositeActor.java:1921)
at ptolemy.vergil.basic.EditorDropTargetListener.drop(EditorDropTargetListener.java:365)
at java.awt.dnd.DropTarget.drop(DropTarget.java:434)
at sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(SunDropTargetContextPeer.java:519)
at sun.awt.X11.XDropTargetContextPeer.processDropMessage(XDropTargetContextPeer.java:165)
at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchDropEvent(SunDropTargetContextPeer.java:832)
at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchEvent(SunDropTargetContextPeer.java:756)
at sun.awt.dnd.SunDropTargetEvent.dispatch(SunDropTargetEvent.java:30)
at java.awt.Component.dispatchEventImpl(Component.java:4508)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4481)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
at java.awt.LightweightDispatcher.processDropTargetEvent(Container.java:4312)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4163)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4481)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:643)
at java.awt.EventQueue.access$000(EventQueue.java:84)
at java.awt.EventQueue$1.run(EventQueue.java:602)
at java.awt.EventQueue$1.run(EventQueue.java:600)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
at java.awt.EventQueue$2.run(EventQueue.java:616)
at java.awt.EventQueue$2.run(EventQueue.java:614)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:613)
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)
First ERROR DISPLAY
ptolemy.kernel.util.IllegalActionException: Error evaluating expression: /home/jmarcedwards/Downloads/JME Images/Questa_logo.jpg
in .SPAWAR_TSS_DC_WorkFlows_1.Digital Simulation.Image2.source
Because:
Cannot read file '/home/jmarcedwards/Downloads/JME Images/Questa_logo.jpg'
in .SPAWAR_TSS_DC_WorkFlows_1.Digital Simulation.Image2.source
Because:
Cannot read file '/home/jmarcedwards/Downloads/JME Images/Questa_logo.jpg' or '/home/jmarcedwards/Downloads/JME Images/Questa_logo.jpg'
at ptolemy.data.expr.Variable._evaluate(Variable.java:1656)
at ptolemy.data.expr.Variable.getToken(Variable.java:578)
at ptolemy.data.expr.StringParameter.stringValue(StringParameter.java:95)
at ptolemy.data.expr.FileParameter.asURL(FileParameter.java:238)
at ptolemy.vergil.kernel.attributes.ImageAttribute.attributeChanged(ImageAttribute.java:127)
at ptolemy.data.expr.Variable.validate(Variable.java:1471)
at ptolemy.moml.MoMLParser.endDocument(MoMLParser.java:666)
at com.microstar.xml.XmlParser.doParse(XmlParser.java:162)
at com.microstar.xml.XmlParser.parse(XmlParser.java:132)
at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1402)
at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1374)
at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1335)
at org.kepler.kar.handlers.ActorMetadataKAREntryHandler.open(ActorMetadataKAREntryHandler.java:252)
at org.kepler.kar.KARFile.open(KARFile.java:974)
at org.kepler.kar.KARFile.openKARContents(KARFile.java:742)
at org.kepler.gui.kar.OpenArchiveAction.openKAR(OpenArchiveAction.java:213)
at org.kepler.gui.kar.OpenArchiveAction.actionPerformed(OpenArchiveAction.java:179)
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.AbstractButton.doClick(AbstractButton.java:357)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:809)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:850)
at java.awt.Component.processMouseEvent(Component.java:6288)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6053)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4651)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4481)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
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:2478)
at java.awt.Component.dispatchEvent(Component.java:4481)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:643)
at java.awt.EventQueue.access$000(EventQueue.java:84)
at java.awt.EventQueue$1.run(EventQueue.java:602)
at java.awt.EventQueue$1.run(EventQueue.java:600)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
at java.awt.EventQueue$2.run(EventQueue.java:616)
at java.awt.EventQueue$2.run(EventQueue.java:614)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:613)
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)
Caused by: ptolemy.kernel.util.IllegalActionException: Cannot read file '/home/jmarcedwards/Downloads/JME Images/Questa_logo.jpg'
in .SPAWAR_TSS_DC_WorkFlows_1.Digital Simulation.Image2.source
Because:
Cannot read file '/home/jmarcedwards/Downloads/JME Images/Questa_logo.jpg' or '/home/jmarcedwards/Downloads/JME Images/Questa_logo.jpg'
at ptolemy.data.expr.FileParameter.asURL(FileParameter.java:244)
at ptolemy.vergil.kernel.attributes.ImageAttribute.attributeChanged(ImageAttribute.java:127)
at ptolemy.data.expr.Variable._setTokenAndNotify(Variable.java:1992)
at ptolemy.data.expr.Variable._evaluate(Variable.java:1646)
... 54 more
Caused by: java.io.IOException: Cannot read file '/home/jmarcedwards/Downloads/JME Images/Questa_logo.jpg' or '/home/jmarcedwards/Downloads/JME Images/Questa_logo.jpg'
at ptolemy.util.FileUtilities.nameToURL(FileUtilities.java:332)
at ptolemy.data.expr.FileParameter.asURL(FileParameter.java:241)
... 57 more
Caused by: ptolemy.kernel.util.IllegalActionException: Cannot read file '/home/jmarcedwards/Downloads/JME Images/Questa_logo.jpg'
in .SPAWAR_TSS_DC_WorkFlows_1.Digital Simulation.Image2.source
Because:
Cannot read file '/home/jmarcedwards/Downloads/JME Images/Questa_logo.jpg' or '/home/jmarcedwards/Downloads/JME Images/Questa_logo.jpg'
at ptolemy.data.expr.FileParameter.asURL(FileParameter.java:244)
at ptolemy.vergil.kernel.attributes.ImageAttribute.attributeChanged(ImageAttribute.java:127)
at ptolemy.data.expr.Variable._setTokenAndNotify(Variable.java:1992)
at ptolemy.data.expr.Variable._evaluate(Variable.java:1646)
at ptolemy.data.expr.Variable.getToken(Variable.java:578)
at ptolemy.data.expr.StringParameter.stringValue(StringParameter.java:95)
at ptolemy.data.expr.FileParameter.asURL(FileParameter.java:238)
at ptolemy.vergil.kernel.attributes.ImageAttribute.attributeChanged(ImageAttribute.java:127)
at ptolemy.data.expr.Variable.validate(Variable.java:1471)
at ptolemy.moml.MoMLParser.endDocument(MoMLParser.java:666)
at com.microstar.xml.XmlParser.doParse(XmlParser.java:162)
at com.microstar.xml.XmlParser.parse(XmlParser.java:132)
at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1402)
at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1374)
at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1335)
at org.kepler.kar.handlers.ActorMetadataKAREntryHandler.open(ActorMetadataKAREntryHandler.java:252)
at org.kepler.kar.KARFile.open(KARFile.java:974)
at org.kepler.kar.KARFile.openKARContents(KARFile.java:742)
at org.kepler.gui.kar.OpenArchiveAction.openKAR(OpenArchiveAction.java:213)
at org.kepler.gui.kar.OpenArchiveAction.actionPerformed(OpenArchiveAction.java:179)
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.AbstractButton.doClick(AbstractButton.java:357)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:809)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:850)
at java.awt.Component.processMouseEvent(Component.java:6288)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6053)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4651)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4481)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
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:2478)
at java.awt.Component.dispatchEvent(Component.java:4481)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:643)
at java.awt.EventQueue.access$000(EventQueue.java:84)
at java.awt.EventQueue$1.run(EventQueue.java:602)
at java.awt.EventQueue$1.run(EventQueue.java:600)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
at java.awt.EventQueue$2.run(EventQueue.java:616)
at java.awt.EventQueue$2.run(EventQueue.java:614)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:613)
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)
Caused by: java.io.IOException: Cannot read file '/home/jmarcedwards/Downloads/JME Images/Questa_logo.jpg' or '/home/jmarcedwards/Downloads/JME Images/Questa_logo.jpg'
at ptolemy.util.FileUtilities.nameToURL(FileUtilities.java:332)
at ptolemy.data.expr.FileParameter.asURL(FileParameter.java:241)
... 57 more
Caused by: java.io.IOException: Cannot read file '/home/jmarcedwards/Downloads/JME Images/Questa_logo.jpg' or '/home/jmarcedwards/Downloads/JME Images/Questa_logo.jpg'
at ptolemy.util.FileUtilities.nameToURL(FileUtilities.java:332)
at ptolemy.data.expr.FileParameter.asURL(FileParameter.java:241)
at ptolemy.vergil.kernel.attributes.ImageAttribute.attributeChanged(ImageAttribute.java:127)
at ptolemy.data.expr.Variable._setTokenAndNotify(Variable.java:1992)
at ptolemy.data.expr.Variable._evaluate(Variable.java:1646)
at ptolemy.data.expr.Variable.getToken(Variable.java:578)
at ptolemy.data.expr.StringParameter.stringValue(StringParameter.java:95)
at ptolemy.data.expr.FileParameter.asURL(FileParameter.java:238)
at ptolemy.vergil.kernel.attributes.ImageAttribute.attributeChanged(ImageAttribute.java:127)
at ptolemy.data.expr.Variable.validate(Variable.java:1471)
at ptolemy.moml.MoMLParser.endDocument(MoMLParser.java:666)
at com.microstar.xml.XmlParser.doParse(XmlParser.java:162)
at com.microstar.xml.XmlParser.parse(XmlParser.java:132)
at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1402)
at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1374)
at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1335)
at org.kepler.kar.handlers.ActorMetadataKAREntryHandler.open(ActorMetadataKAREntryHandler.java:252)
at org.kepler.kar.KARFile.open(KARFile.java:974)
at org.kepler.kar.KARFile.openKARContents(KARFile.java:742)
at org.kepler.gui.kar.OpenArchiveAction.openKAR(OpenArchiveAction.java:213)
at org.kepler.gui.kar.OpenArchiveAction.actionPerformed(OpenArchiveAction.java:179)
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.AbstractButton.doClick(AbstractButton.java:357)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:809)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:850)
at java.awt.Component.processMouseEvent(Component.java:6288)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6053)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4651)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4481)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
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:2478)
at java.awt.Component.dispatchEvent(Component.java:4481)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:643)
at java.awt.EventQueue.access$000(EventQueue.java:84)
at java.awt.EventQueue$1.run(EventQueue.java:602)
at java.awt.EventQueue$1.run(EventQueue.java:600)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
at java.awt.EventQueue$2.run(EventQueue.java:616)
at java.awt.EventQueue$2.run(EventQueue.java:614)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:613)
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)
Any thoughts?
Kind regards, Marc ----- Original Message -----
From: "Christopher Brooks" <cxh at eecs.berkeley.edu>
To: "J. Marc Edwards" <marc.edwards at nimbisservices.com>
Cc: kepler-users at kepler-project.org
Sent: Monday, October 17, 2011 5:51:38 PM
Subject: Re: [kepler-users] Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException...
Hi Marc,
I could not reproduce this, so I would need more information.
I'm on a Mac:
1. I removed my ~/.kepler and ~/KeplerData directories.
2. When I started up Kepler-2.2, I was prompted to upgrade some modules. The Module Manager does not allow copy and paste, but IIRC, they were some 2.2.1 modules.
3. I opened up a Ptolemy model and saved it as a .kar:
a. Help -> Kepler Documentation -> "background information on Ptolemy" -> Quick Tour
b. I then clicked on any model, in this case "Noise".
c. File -> Save As -> Save as Noise.kar
4. Quit Kepler, then restarted Kepler
5. File -> Open, selected Noise.kar and it opened successfully.
The offending line at
at org.kepler.gui.kar.OpenArchiveAction.actionPerformed(OpenArchiveAction.java:155)
is
_lastDirectoryUsed = LocalRepositoryManager.getInstance().getSaveRepository().getPath();
I checked in a change to the development trunk that prints a better message if this error occurs.
I'm not sure why it would occur for you. It looks
kepler/core/src/org/kepler/objectmanager/cache/LocalRepositoryManager.java
has a bug where the poorly named setLocalSaveRepo() method is not being called.
The best way to track this down would be to move to using the Kepler trunk and if the bug continues to occur, use the debugger.
One thing to try would be to remove the ~/.kepler and ~/KeplerData directories.
_Christopher
On 10/17/11 9:51 AM, J. Marc Edwards wrote:
I'm trying to open a Kepler workflow using the "File -> Open" on the GUI and am not receiving a file chooser window from which to select the workflow.
This worked with no problem on this server that I am using this version 2.2 of Kepler. However, I did notice that I was asked to upgrade a Kepler module last week when I was starting Kepler.
I notice a Java exception message that is being printed when I try to open a file. I've pasted the messages below.
Any thoughts?
Regards, Marc
jmedwards at beta:~$ [null] Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
[null] at org.kepler.gui.kar.OpenArchiveAction.actionPerformed(OpenArchiveAction.java:155)
[null] at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
[null] at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
[null] at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
[null] at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
[null] at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
[null] at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:809)
[null] at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:850)
[null] at java.awt.Component.processMouseEvent(Component.java:6288)
[null] at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
[null] at java.awt.Component.processEvent(Component.java:6053)
[null] at java.awt.Container.processEvent(Container.java:2041)
[null] at java.awt.Component.dispatchEventImpl(Component.java:4651)
[null] at java.awt.Container.dispatchEventImpl(Container.java:2099)
[null] at java.awt.Component.dispatchEvent(Component.java:4481)
[null] at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
[null] at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
[null] at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
[null] at java.awt.Container.dispatchEventImpl(Container.java:2085)
[null] at java.awt.Window.dispatchEventImpl(Window.java:2478)
[null] at java.awt.Component.dispatchEvent(Component.java:4481)
[null] at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:643)
[null] at java.awt.EventQueue.access$000(EventQueue.java:84)
[null] at java.awt.EventQueue$1.run(EventQueue.java:602)
[null] at java.awt.EventQueue$1.run(EventQueue.java:600)
[null] at java.security.AccessController.doPrivileged(Native Method)
[null] at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
[null] at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
[null] at java.awt.EventQueue$2.run(EventQueue.java:616)
[null] at java.awt.EventQueue$2.run(EventQueue.java:614)
[null] at java.security.AccessController.doPrivileged(Native Method)
[null] at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
[null] at java.awt.EventQueue.dispatchEvent(EventQueue.java:613)
[null] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
[null] at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
[null] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
[null] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
[null] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
[null] at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
J. Marc Edwards, Principal Consultant
Semiconductor Design Portals
Nimbis Services, Inc.
Cell - (919) 345-1021
Fax - (919) 882-8602
marc.edwards at nimbisservices.com
_______________________________________________
Kepler-users mailing list Kepler-users at kepler-project.org http://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-users
--
Christopher Brooks, PMP University of California
CHESS Executive Director US Mail: 337 Cory Hall
Programmer/Analyst CHESS/Ptolemy/Trust Berkeley, CA 94720-1774
ph: 510.643.9841 (Office: 545Q Cory)
home: (F-Tu) 707.665.0131 cell: 707.332.0670
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nceas.ucsb.edu/kepler/pipermail/kepler-users/attachments/20111017/6e5fa39e/attachment.html>
More information about the Kepler-users
mailing list