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.

Failed to read package in 106 milliseconds.

When I run the PetriNets project from eclipse, I get this error. What's the matter?















Comments

  • I also encountered this mistake. I don't know how to solve them..




  • Hi,

    Please check your ProM.ini file for the lines containing CONNECT_TIMEOUT and READ_TIMEOUT. Ik seems that at least one of these timeouts is set to 100 ms. Please set both timeouts either to a larger value, or to 0:
    CONNECT_TIMEOUT = 0
    READ_TIMEOUT = 0
    Setting both to 0 will have ProM wait until the data has arrived. Downside is that if the data got lost, ProM will wait indefinitely.

    Kind regards,
    Eric.


  • hverbeek said:
    Hi,

    Please check your ProM.ini file for the lines containing CONNECT_TIMEOUT and READ_TIMEOUT. Ik seems that at least one of these timeouts is set to 100 ms. Please set both timeouts either to a larger value, or to 0:
    CONNECT_TIMEOUT = 0
    READ_TIMEOUT = 0
    Setting both to 0 will have ProM wait until the data has arrived. Downside is that if the data got lost, ProM will wait indefinitely.

    Kind regards,
    Eric.


    Hi, Eric. Thank you. I have some other problems that I don't know how to solve. Have you ever seen this problem before? I want to run plug-in "Mine stochastic Petri net from log" and have the plug-in "JAXB" installed, which still shows this error.
  • and,is the prom running from eclipse the same as the prom opened from the local folder?
  • Hi,

    Yes, I've seen this error before, but it is a very general error. Basically, it means that an exception occurred in the plugin that you are trying to run.

    Typically, if you start ProM from Eclipse, then it takes all changes in the project you start ProM from into account. Depending on your settings in the ProM.ini file, the packages that either version of ProM are using may be different as well. Please check the setting for PROM_USER_FOLDER in both ProM.ini files. If they are identical, they should both use the same packages.

    Kind regards,
    Eric.

  • hverbeek said:
    Hi,

    Yes, I've seen this error before, but it is a very general error. Basically, it means that an exception occurred in the plugin that you are trying to run.

    Typically, if you start ProM from Eclipse, then it takes all changes in the project you start ProM from into account. Depending on your settings in the ProM.ini file, the packages that either version of ProM are using may be different as well. Please check the setting for PROM_USER_FOLDER in both ProM.ini files. If they are identical, they should both use the same packages.

    Kind regards,
    Eric.

    Hi, Eric. Thank you. First I open a project from https://svn.win.tue.nl/repos/prom/Packages/, I modify its code directly, and then the corresponding plug-in in the Prom panel is modified by me?
  • Hi,

    Yes, but make sure that you open the project from its Trunk folder. Like if you want to open a project for the Log package you need to open a project from https://svn.win.tue.nl/repos/prom/Packages/Log/Trunk. If you then start ProM from that project (from the launch file in the root folder), your changes will be taken into account.

    Kind regards,
    Eric.

  • hverbeek said:
    Hi,

    Yes, but make sure that you open the project from its Trunk folder. Like if you want to open a project for the Log package you need to open a project from https://svn.win.tue.nl/repos/prom/Packages/Log/Trunk. If you then start ProM from that project (from the launch file in the root folder), your changes will be taken into account.

    Kind regards,
    Eric.

    Hi, Eric. I noticed a symbol * on my modified java file icon, and learned that this was caused by not submitting to SVN. If I want to run the modified java file, do I need to submit the file to SVN?
  • Hi,

    No. If you run ProM using the launch file as mentioned before, there is no need to submit your changes to the repository. ProM will then use the source files from the project, and your modifications will be taken into account.

    Kind regards,
    Eric.
  • hverbeek said:
    Hi,

    No. If you run ProM using the launch file as mentioned before, there is no need to submit your changes to the repository. ProM will then use the source files from the project, and your modifications will be taken into account.

    Kind regards,
    Eric.
    Can you give me some suggestions to solve the problem of "it means that an exception occurred in the plugin that you are trying to run."?
  • When I download plug-ins, I often encounter this problem. My current operation is to wait for a period of time to download again. Occasionally, I can download successfully. There is no problem with my network. Do you have a better solution?
  • Hi,

    You need to get the original exception, the one that is now masked by the InvocationTargetException. If you have some idea of where the exception occurs, I would add a breakpoint just before that, and then go step-by-step to the exception. At some point, the InvocationTargetException is thrown, and then you need to view the contents of that exception. The "cause" field should contain information on the original exception.

    Kind regards,
    Eric.

  • hverbeek said:
    Hi,

    You need to get the original exception, the one that is now masked by the InvocationTargetException. If you have some idea of where the exception occurs, I would add a breakpoint just before that, and then go step-by-step to the exception. At some point, the InvocationTargetException is thrown, and then you need to view the contents of that exception. The "cause" field should contain information on the original exception.

    Kind regards,
    Eric.

    Thank you for your great help. Best wishes to you.
Sign In or Register to comment.