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

TRAFCOD2 demo does not start anymore

    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

      The error thrown is:

      java.lang.reflect.InvocationTargetException calling GTUGeneratorIndividual [lengthDist=ContinuousDistDoubleScalar.Rel [T=LengthUnit], widthDist=ContinuousDistDoubleScalar.Rel [T=LengthUnit], maximumSpeedDist=ContinuousDistDoubleScalar.Rel [T=SpeedUnit]].generate with arguments null
      nl.tudelft.simulation.dsol.SimRuntimeException: java.lang.reflect.InvocationTargetException
             at nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEvent.execute(SimEvent.java:121)
             at nl.tudelft.simulation.dsol.simulators.DEVSRealTimeClock.run(DEVSRealTimeClock.java:202)
             at nl.tudelft.simulation.language.concurrent.WorkerThread.run(WorkerThread.java:90)
      Caused by: java.lang.reflect.InvocationTargetException
             at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
             at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
             at java.lang.reflect.Method.invoke(Method.java:498)
             at nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEvent.execute(SimEvent.java:114)
             ... 2 more
      Caused by: java.lang.ClassCastException: org.djunits.value.vdouble.scalar.DoubleScalar$Rel cannot be cast to org.djunits.value.vdouble.scalar.Duration
             at org.opentrafficsim.road.gtu.generator.AbstractGTUGenerator.generate(AbstractGTUGenerator.java:231)
             ... 7 more
      

        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