Menu

#31 NullPointerException

build 1.3.39
open-accepted
5
2007-03-14
2006-12-09
No

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

Discussion

  • Maxim Mazin

    Maxim Mazin - 2006-12-10
    • assigned_to: vadim_gurov --> mazine
    • status: open --> open-accepted
     
  • Maxim Mazin

    Maxim Mazin - 2006-12-10

    Logged In: YES
    user_id=965989
    Originator: NO

    Please, provide us with the project. You may attached it zipped to this bug.

     
  • Giovanni Azua

    Giovanni Azua - 2006-12-12

    Eclipse project that demonstrates the defect

     
  • Giovanni Azua

    Giovanni Azua - 2006-12-12

    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

     
  • Giovanni Azua

    Giovanni Azua - 2006-12-26

    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

     
  • Maxim Mazin

    Maxim Mazin - 2007-03-14
    • assigned_to: mazine --> byaminov
     

Log in to post a comment.

MongoDB Logo MongoDB