Error?????

32 views
Skip to first unread message

Rob Cushard

unread,
Mar 25, 2025, 4:48:51 PM3/25/25
to JaamSim Users Discussion Group
receiving this error message...any thoughts.

JaamSim has detected the following runtime error condition:

class com.jaamsim.ProcessFlow.SimEntity cannot be cast to class com.jaamsim.ProcessFlow.EntContainer (com.jaamsim.ProcessFlow.SimEntity and com.jaamsim.ProcessFlow.EntContainer are in unnamed module of loader 'app')

Time = 265464.000000 seconds

Programmers can find more information by opening the Log Viewer.
The simulation run must be reset to zero simulation time before it can be restarted.
SMI Paint Process.cfg
SMI Paint Process.log

Harry King

unread,
Mar 29, 2025, 8:41:17 PM3/29/25
to JaamSim Users Discussion Group
Hi Rob,

The error occurs because 'RemoveFrom4' receives 'EntityGeneratorRackGenerator_1' which is a SimEntity instead of an EntityContainer. I notice that your model does not create any EntityContainers, so something is missing. Perhaps, the 'Racks' object should be an EntityContainer instead of a SimEntity. 

Also, you need to add SimEntities to an EntityContainer with an AddTo object before you can remove them with a RemoveFrom object. Should you be using the AddTo object instead of Combine?

The next release of JaamSim will include a useful error message in this case instead of an obscure Java error.

Harry

Harry King

unread,
Apr 3, 2025, 9:06:56 PM4/3/25
to JaamSim Users Discussion Group
Hi Rob,

Release 2025-02 provides a useful error message for this situation that will help you to debug your model.

Harry

Reply all
Reply to author
Forward
0 new messages