Uploaded image for project: 'OpenTrafficSim'
  1. OpenTrafficSim
  2. OTS-329

N201 XML Parser demo throws error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Unresolved
    • Labels:
      None
    • Epic Link:
    • Sprint:
      Sprint 10 (Version 0.15)
    • Java Project:
      ots-demo

      Description

      When running the N201 XML parser demo, the following error is thrown:

      org.opentrafficsim.core.network.NetworkException: SENSOR: CLASS NAME org.opentrafficsim.road.network.lane.object.sensor.SimpleReportingSensor for sensor 239_12.2 on lane Lane A1 of L239_in_a -- class not found or constructor not right
      	at org.opentrafficsim.road.network.factory.xml.Links.applyRoadTypeToLink(Links.java:728)
      	at org.opentrafficsim.road.network.factory.xml.XmlNetworkLaneParser.build(XmlNetworkLaneParser.java:258)
      	at org.opentrafficsim.road.network.factory.xml.XmlNetworkLaneParser.build(XmlNetworkLaneParser.java:175)
      	at org.opentrafficsim.road.network.factory.xml.XmlNetworkLaneParser.build(XmlNetworkLaneParser.java:135)
      	at org.opentrafficsim.road.network.factory.xml.test.TestXMLParserN201$TestXMLModelN201.constructModel(TestXMLParserN201.java:170)
      	at nl.tudelft.simulation.dsol.simulators.DEVSSimulator.initialize(DEVSSimulator.java:85)
      	at org.opentrafficsim.core.dsol.OTSDEVSRealTimeClock.initialize(OTSDEVSRealTimeClock.java:44)
      	at org.opentrafficsim.simulationengine.SimpleAnimator.<init>(SimpleAnimator.java:54)
      	at org.opentrafficsim.simulationengine.AbstractWrappableAnimation.buildSimpleAnimator(AbstractWrappableAnimation.java:96)
      	at org.opentrafficsim.simulationengine.AbstractWrappableAnimation.buildAnimator(AbstractWrappableAnimation.java:142)
      	at org.opentrafficsim.road.network.factory.xml.test.TestXMLParserN201$1.run(TestXMLParserN201.java:72)
      

      Apparently, the SimpleReportingSensor class cannot be found or has a changed signature.

        Attachments

          Activity

            People

            • Assignee:
              averbraeck Alexander Verbraeck
              Reporter:
              averbraeck Alexander Verbraeck
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - 30 minutes
                30m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 30 minutes
                30m