Menu

Tons of IllegalArgumentExceptions are thrown when opening the OpenPowerlink "Demo_3CN" example project.

2017-01-31
2017-01-31
  • Clemens Eisserer

    Sorry for the flood of reports, even if this is a low-severity issue I thought it would be a good idea to have it reported somewhere.

    When opening the "Demo_3CN" example project, I see a lot of IllegalArgumentExceptions thrown:

    java.lang.IllegalArgumentException: No enum class org.epsg.openconfigurator.lib.wrapper.PlkDataType with value 1081
        at org.epsg.openconfigurator.lib.wrapper.PlkDataType.swigToEnum(PlkDataType.java:53)
        at org.epsg.openconfigurator.util.OpenConfiguratorLibraryUtils.getObjectDatatype(OpenConfiguratorLibraryUtils.java:4163)
        at org.epsg.openconfigurator.util.OpenConfiguratorLibraryUtils.addObjectDictionary(OpenConfiguratorLibraryUtils.java:1823)
        at org.epsg.openconfigurator.util.OpenConfiguratorLibraryUtils.importProfileBodyCommunicationNetworkPowerlink(OpenConfiguratorLibraryUtils.java:4358)
        at org.epsg.openconfigurator.util.OpenConfiguratorLibraryUtils.importXddModel(OpenConfiguratorLibraryUtils.java:4602)
        at org.epsg.openconfigurator.util.OpenConfiguratorLibraryUtils.createNode(OpenConfiguratorLibraryUtils.java:3366)
        at org.epsg.openconfigurator.util.OpenConfiguratorLibraryUtils.addNode(OpenConfiguratorLibraryUtils.java:1633)
        at org.epsg.openconfigurator.model.PowerlinkRootNode.importNodes(PowerlinkRootNode.java:399)
        at org.epsg.openconfigurator.editors.project.IndustrialNetworkProjectEditor$4.run(IndustrialNetworkProjectEditor.java:538)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
    java.lang.IllegalArgumentException: No enum class org.epsg.openconfigurator.lib.wrapper.PlkDataType with value 1068
        at org.epsg.openconfigurator.lib.wrapper.PlkDataType.swigToEnum(PlkDataType.java:53)
        at org.epsg.openconfigurator.util.OpenConfiguratorLibraryUtils.getObjectDatatype(OpenConfiguratorLibraryUtils.java:4163)
        at org.epsg.openconfigurator.util.OpenConfiguratorLibraryUtils.addObjectDictionary(OpenConfiguratorLibraryUtils.java:1823)
        at org.epsg.openconfigurator.util.OpenConfiguratorLibraryUtils.importProfileBodyCommunicationNetworkPowerlink(OpenConfiguratorLibraryUtils.java:4358)
        at org.epsg.openconfigurator.util.OpenConfiguratorLibraryUtils.importXddModel(OpenConfiguratorLibraryUtils.java:4602)
        at org.epsg.openconfigurator.util.OpenConfiguratorLibraryUtils.createNode(OpenConfiguratorLibraryUtils.java:3366)
        at org.epsg.openconfigurator.util.OpenConfiguratorLibraryUtils.addNode(OpenConfiguratorLibraryUtils.java:1633)
        at org.epsg.openconfigurator.model.PowerlinkRootNode.importNodes(PowerlinkRootNode.java:399)
        at org.epsg.openconfigurator.editors.project.IndustrialNetworkProjectEditor$4.run(IndustrialNetworkProjectEditor.java:538)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
    
     
  • Christoph Ruecker

    Hi Clemens,

    Do you use the Demo_3CN from the openPOWERLINK stack? If not please attach the zipped project to this post because I'm not able to reproduce this issue on my side using the latest stack demo project.

    br
    Christoph

     
  • Clemens Eisserer

    Yes, I was using the unmodified Demo_3CN xsd files.

    The exceptions are visible when starting eclipse with the flag "-consolelog" (I am currently using the win32-version of eclipse with wine, so I accidentially saw stdout/stderr by default).

    I've recorded a short screencast:
    https://www.youtube.com/watch?v=yzTXyUNhoFk&feature=youtu.be

    As mentioned this does not affect us in any way, I just thought reporting it wouldn't hurt.

    Br, Clemens

    btw greetings from vienna ;)

     
  • Christoph Ruecker

    Hi Clemens,

    Thx for the report. The issue has been fixed and will be incorporated in the next release.

    br
    Christoph

     

Log in to post a comment.