https://projects.ecoinformatics.org/ecoinfo/https://projects.ecoinformatics.org/ecoinfo/ecoinfo/favicon.ico?14691340362009-11-04T06:30:52ZEcoinformatics RedmineKepler - Bug #4529: NPE while saving KAR crashes Keplerhttps://projects.ecoinformatics.org/ecoinfo/issues/4529?journal_id=155312009-11-04T06:30:52ZOliver Soongsoong@nceas.ucsb.edu
<ul></ul><p>Incidentally, I can restart Kepler and open the saved KAR.</p> Kepler - Bug #4529: NPE while saving KAR crashes Keplerhttps://projects.ecoinformatics.org/ecoinfo/issues/4529?journal_id=155322009-11-04T06:42:49ZOliver Soongsoong@nceas.ucsb.edu
<ul></ul><p>I can reproduce this on 21316. I'm not sure which of these steps is absolutely necessary, but this is what I do:</p>
<p>1. clean-cache and run Kepler.<br />2. Create a trivial workflow. Opening an example workflow does not trigger the bug. This is what I use: <br /> a. SDF Director. Set iterations to 1<br /> b. Expression actor, set expression to 1<br /> c. Another Expression actor (Expression2), add an input port called in, set expression to in<br /> d. Hook Expression.output to Expression2.in<br />3. Save the workflow (I put it into kepler\workflows\test.xml)<br />4. Save Archive (KAR) (I put it into kepler\workflows\test.kar)</p>
<p>At that point, Kepler should abort with an NPE on the console. I have only tested this under Windows.</p> Kepler - Bug #4529: NPE while saving KAR crashes Keplerhttps://projects.ecoinformatics.org/ecoinfo/issues/4529?journal_id=155332009-11-04T16:59:13Zben leinfelderleinfelder@nceas.ucsb.edu
<ul></ul><p>aaron - can you take a look at this since the stack trace looks to be around ActorMetadataKAREntryHandler?</p> Kepler - Bug #4529: NPE while saving KAR crashes Keplerhttps://projects.ecoinformatics.org/ecoinfo/issues/4529?journal_id=155342009-11-18T16:59:59Zben leinfelderleinfelder@nceas.ucsb.edu
<ul></ul><p>The Configuration that was being retrieved ended up being null so the openModel() call failed with the NPE. I used a more direct method for retrieving a Configuration instance and that seems to work fine.</p>
<p>NB: I'm a litte worried about how there are GUI classes being invoked inside the KAREntryHandler. Especially since we are trying to use the handlers in both gui and non-gui contexts.<br />I think we are mostly dodging the bullet with KeplerConfigurationApplication in that it extracts the MOML and opens/runs it using it's own gui-less way while other pieces of the KAR are cached by their respective handlers so that they are available during wrapup().</p> Kepler - Bug #4529: NPE while saving KAR crashes Keplerhttps://projects.ecoinformatics.org/ecoinfo/issues/4529?journal_id=155352013-03-27T21:27:11ZRedmine Admin
<ul></ul><p>Original Bugzilla ID was 4529</p>