Menu

#42 Error loading Producer & Consumer example file

PIPEv4.3.0
closed
nobody
None
5
2013-10-10
2013-04-18
No

I am trying to open Producer & Consumer example file and I get NullPointerException.

Java(TM) SE Runtime Environment (build 1.7.0_13-b20) 64-bit
Debian Squeeze
PIPE v4.2.1

Discussion

  • Michał Niedźwiecki

    Stack trace

     
  • Michał Niedźwiecki

    This problem occurs since version 4.2. Version 4.1 works ok.

     
  • Michał Niedźwiecki

    I fix this problem. I change in PetriNetView.java:2129

    for(TokenView tc : _tokenViews)

    to

    for(TokenView tc : getTokenViews())

    and it works.

     
  • Michał Niedźwiecki

    My fix provide to load file correctly but in Annimation Mode crash. Cause of this is lack of definition of token in file. When I add:
    <token id="Default" enabled="true" red="0" green="0" blue="0"/>
    as a first child of net tag, Producer & Consumer load correctly and work correctly.

    When token is not defined in file, appliaction should create default black token definition. Pleas fix it because without fix it I do not open PNML files created in other applications.

     
  • Sarah Tattersall

    This appears to have been fixed in v4.3.0. Please reopen on GitHub issues if you suffer anymore problems.

    https://github.com/sarahtattersall/PIPE/issues?page=1&state=open

     
  • Sarah Tattersall

    • status: open --> closed
    • Group: --> PIPEv4.3.0
     

Log in to post a comment.

Auth0 Logo