To prevent spam users, you can only post on this forum after registration, which is by invitation. If you want to post on the forum, please send me a mail (h DOT m DOT w DOT verbeek AT tue DOT nl) and I'll send you an invitation in return for an account.

Cannot import pnml file

Dear Community,

I tried to import a .pnml file into Prom 6.13 but it doesn't work. I always get a Java NullPointer Exception.

It doesn't matter which import plugin I select, it always throws an exception.

How can I import pnml files successfully in order to analyze them with ProM 6.13?

Best regards

Thomas

Best Answer

  • hverbeek
    Accepted Answer

    Hi Thomas,

    The problem is caused by the fact that your PNML file contains empty inscriptions for arcs. Like follows:

         <arc id="arc0" source="p1" target="B">
           <graphics/>
           <inscription/>
         </arc>
    

     As far as we know, an arc inscription should have a text. Replacing every instance of

    <inscription/>
    

    with

    <inscription><text>1</text></inscription>
    

    does the trick. The alternative is to remove all these empty inscriptions.

    Kind regards, Eric.

Answers

  • Hi Thomas,

    Would it be able for you so share the PNML file that you are trying to import?

    Many thanks in advance,

    Eric.

  • Hi Eric,

    Many thanks for your help.

    I've attached the pnml file, or at least the content of it as I am not allowed to upload .pnml files.

    I hope this helps.


    Best regards

    Thomas

  • Dear Eric,

    Now it works. Thanks a lot!

    Best regards

    Thomas

Sign In or Register to comment.