[kepler-dev] Problem using the module-manager to restart Kepler

David Welker david.v.welker at gmail.com
Thu Jun 4 17:30:21 PDT 2009


Hi Aaron,

I am going to have to modify my earlier assertion that this change did 
not result in a fix. Actually, it did result in a fix, but only after I 
republished, because clearly my published module was handling things the 
old way.

David
> Aaron,
>
> This change hasn't fixed it for me. I am going to republish so that 
> the published version has the same LSID logic as the trunk and see if 
> that helps. Overall, we should try to figure out a way to handle these 
> LSIDs so that they handle failures more gracefully. Throwing a fatal 
> exception because an LSID is already in use strikes me as extreme.
>
> David
>>
>> Hi Chad,
>>
>> I just tried this by running
>>
>> ant update
>> ant clean-cache
>> ant clean-all
>> ant run
>> ant installer
>>
>> and got an error which I think boils down to:
>> Problem: failed to create task or type launch4j
>>
>>
>> The LSID issue you guys were getting was caused by the LastObjectId 
>> file being deleted most likely from doing a clean-cache operation.
>> A couple days ago I moved it into the .kepler directory from the 
>> common module without realizing that it was a bad thing to do...
>>
>> Last night I added some code that should now be updating that file if 
>> it is out of sync with the LSIDTree.
>>
>> Let me know if you're still seeing the problem after updating your 
>> LSIDGenerator class.
>>
>> Thanks,
>> Aaron
>>
>>
>> Chad Berkley wrote:
>>> These are the same errors I'm seeing when switching between an 
>>> installed version of kepler and the svn trunk version.  To recreate 
>>> it, build an installer (ant installer), run the installer, then run 
>>> kepler from /Applications/Kepler-1.XDev/.  Then try to run kepler 
>>> from the command line (e.g. 'ant run') (not sure if this works with 
>>> eclipse).
>>>
>>> chad
>>>
>>>
>>> Aaron Schultz wrote:
>>>>
>>>> Hi David, definitely a problem with the LSIDs.  I do not know how 
>>>> to recreate the error though.
>>>> You can try to turn on log4j Debugging for the LSIDGenerator class 
>>>> to see if that helps find the problem.
>>>>
>>>> Most likely the problem is that your 
>>>> .kepler/<instance>/modules/core/LastObjectId file is out of sync 
>>>> with the LSIDTree
>>>> Deleting the InstanceAuthNamespace and the LastObjectId files and 
>>>> restarting Kepler will likely solve the problem.
>>>>
>>>> Aaron
>>>>
>>>> David Welker wrote:
>>>>> Oh, and also this error prints to the command-line. The other 
>>>>> error was in the Kepler GUI. It definitely seems to be LSID 
>>>>> related. And, I know you love LSIDs, so I thought I would ask if 
>>>>> you knew what might be going on.
>>>>>
>>>>> [run] ERROR 
>>>>> (org.kepler.objectmanager.lsid.LSIDGenerator:getNewLSID:144) 
>>>>> java.lang.Exception: The LSID 
>>>>> urn:lsid:gamma.msi.ucsb.edu/OpenAuth/:223:14:1 is already in use.
>>>>>      [run] java.lang.Exception: The LSID 
>>>>> urn:lsid:gamma.msi.ucsb.edu/OpenAuth/:223:14:1 is already in use.
>>>>>      [run]     at 
>>>>> org.kepler.objectmanager.lsid.LSIDGenerator.registerLSID(LSIDGenerator.java:163) 
>>>>>
>>>>>      [run]     at 
>>>>> org.kepler.objectmanager.lsid.LSIDGenerator.getNewLSID(LSIDGenerator.java:135) 
>>>>>
>>>>>      [run]     at 
>>>>> org.kepler.objectmanager.lsid.LSIDGenerator.getNewLSID(LSIDGenerator.java:112) 
>>>>>
>>>>>      [run]     at 
>>>>> org.kepler.objectmanager.ObjectManager.assignIdTo(ObjectManager.java:242) 
>>>>>
>>>>>      [run]     at 
>>>>> org.kepler.gui.frame.KeplerGraphTableau.<init>(KeplerGraphTableau.java:152) 
>>>>>
>>>>>      [run]     at 
>>>>> org.kepler.gui.frame.KeplerGraphTableau$Factory.createTableau(KeplerGraphTableau.java:248) 
>>>>>
>>>>>      [run]     at 
>>>>> ptolemy.actor.gui.PtolemyTableauFactory.createTableau(PtolemyTableauFactory.java:100) 
>>>>>
>>>>>      [run]     at 
>>>>> ptolemy.actor.gui.TableauFactory.createTableau(TableauFactory.java:127) 
>>>>>
>>>>>      [run]     at 
>>>>> ptolemy.actor.gui.Configuration.createPrimaryTableau(Configuration.java:412) 
>>>>>
>>>>>      [run]     at 
>>>>> ptolemy.vergil.VergilApplication._createEmptyConfiguration(VergilApplication.java:376) 
>>>>>
>>>>>      [run]     at 
>>>>> ptolemy.actor.gui.MoMLApplication._parseArgs(MoMLApplication.java:1045) 
>>>>>
>>>>>      [run]     at 
>>>>> ptolemy.vergil.VergilApplication._parseArgs(VergilApplication.java:448) 
>>>>>
>>>>>      [run]     at 
>>>>> ptolemy.actor.gui.MoMLApplication.<init>(MoMLApplication.java:217)
>>>>>      [run]     at 
>>>>> ptolemy.vergil.VergilApplication.<init>(VergilApplication.java:103)
>>>>>      [run]     at 
>>>>> ptolemy.vergil.VergilApplication$1.run(VergilApplication.java:193)
>>>>>      [run]     at 
>>>>> java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
>>>>>      [run]     at 
>>>>> java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
>>>>>      [run]     at 
>>>>> java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269) 
>>>>>
>>>>>      [run]     at 
>>>>> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190) 
>>>>>
>>>>>      [run]     at 
>>>>> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
>>>>>      [run]     at 
>>>>> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
>>>>>      [run]     at 
>>>>> java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
>>>>>
>>>>>> Hi Aaron,
>>>>>>
>>>>>> I am getting the following problem trying to use the module 
>>>>>> manager trying to restart Kepler. I suspect it might be related 
>>>>>> to LSIDs. Maybe not. What do you think?
>>>>>>
>>>>>> David
>>>>>>
>>>>>>
>>>>>>
>>>>>> ptolemy.kernel.util.IllegalActionException: No Kepler ID was or 
>>>>>> could be assigned to model: java.lang.NullPointerException
>>>>>>    at 
>>>>>> org.kepler.gui.frame.KeplerGraphTableau.<init>(KeplerGraphTableau.java:173) 
>>>>>>
>>>>>>    at 
>>>>>> org.kepler.gui.frame.KeplerGraphTableau$Factory.createTableau(KeplerGraphTableau.java:248) 
>>>>>>
>>>>>>    at 
>>>>>> ptolemy.actor.gui.PtolemyTableauFactory.createTableau(PtolemyTableauFactory.java:100) 
>>>>>>
>>>>>>    at 
>>>>>> ptolemy.actor.gui.TableauFactory.createTableau(TableauFactory.java:127) 
>>>>>>
>>>>>>    at 
>>>>>> ptolemy.actor.gui.Configuration.createPrimaryTableau(Configuration.java:412) 
>>>>>>
>>>>>>    at 
>>>>>> ptolemy.vergil.VergilApplication._createEmptyConfiguration(VergilApplication.java:376) 
>>>>>>
>>>>>>    at 
>>>>>> ptolemy.actor.gui.MoMLApplication._parseArgs(MoMLApplication.java:1045) 
>>>>>>
>>>>>>    at 
>>>>>> ptolemy.vergil.VergilApplication._parseArgs(VergilApplication.java:448) 
>>>>>>
>>>>>>    at 
>>>>>> ptolemy.actor.gui.MoMLApplication.<init>(MoMLApplication.java:217)
>>>>>>    at 
>>>>>> ptolemy.vergil.VergilApplication.<init>(VergilApplication.java:103)
>>>>>>    at 
>>>>>> ptolemy.vergil.VergilApplication$1.run(VergilApplication.java:193)
>>>>>>    at 
>>>>>> java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
>>>>>>    at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
>>>>>>    at 
>>>>>> java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269) 
>>>>>>
>>>>>>    at 
>>>>>> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190) 
>>>>>>
>>>>>>    at 
>>>>>> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184) 
>>>>>>
>>>>>>    at 
>>>>>> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176) 
>>>>>>
>>>>>>    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
>>>>>>
>>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Kepler-dev mailing list
>>>>> Kepler-dev at kepler-project.org
>>>>> http://mercury.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-dev
>>>>
>>>> _______________________________________________
>>>> Kepler-dev mailing list
>>>> Kepler-dev at kepler-project.org
>>>> http://mercury.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-dev
>>>
>>
>> _______________________________________________
>> Kepler-dev mailing list
>> Kepler-dev at kepler-project.org
>> http://mercury.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-dev
>>
>
>



More information about the Kepler-dev mailing list