Hi,
I defined a model that well because of the previously explained defects generates code that does not compile so I tried running the FSM from a memory model loaded from XML. It seems to work fine as my controlled printer is notified of the state change.
The problem is in the calling of:
engine.getEventManager().handleAndWait(event, context);
produces an unchecked exception:
Caused by: java.lang.NullPointerException
at com.evelopers.unimod.runtime.interpretation.InterpretationEventProcessor.transiteToStableState(InterpretationEventProcessor.java:99)
at com.evelopers.unimod.runtime.interpretation.InterpretationEventProcessor.process(InterpretationEventProcessor.java:148)
at com.evelopers.unimod.runtime.AbstractEventProcessor.process(AbstractEventProcessor.java:119)
at com.evelopers.unimod.runtime.AbstractEventProcessor.process(AbstractEventProcessor.java:81)
at com.evelopers.unimod.runtime.ModelEngine.process(ModelEngine.java:199)
at com.evelopers.unimod.runtime.StrictHandler.handle(StrictHandler.java:45)
at com.evelopers.unimod.runtime.StrictHandler.handleAndWait(StrictHandler.java:52)
If I just catch the exception and ignore then I get the result I wanted from the context produced from my controlled printer. Seems there is a situation not being handled correctly in the UniMod core.
I am willing to provide the example project if required.
Regards,
Giovanni
Logged In: YES
user_id=965989
Originator: NO
Please, provide us with the project. You may attached it zipped to this bug.
Eclipse project that demonstrates the defect
Logged In: YES
user_id=1118640
Originator: YES
Execute the defect.Start class, Exception occurs in line 126
Great work! many thanks!
Best Regards,
Giovanni
File Added: Bug1612327NullPointerException.zip
Logged In: YES
user_id=1118640
Originator: YES
Hi,
Have you received the demo project? feasible solving the bug
for next release?
Best regards,
Giovanni