You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can run the example of the Stock Management Game from the GitHub file, but when I want to run the same model exported myself, it builds the client and opens the Alpyneserver but has a problem with running the create_reinforcement_learning(). The same problem occurs when I run the Python script for my self-made model. I tried to Google the error, but I had a hard time finding the cause of the error.
Included is the Alpyne.log I do not know how to fix this error.
thanks in advance!
[2023-09-12 11:40:14] INFO @ com.anylogic.alpyne.AlpyneServer main
| [PID=18654] Initializing @ '/private/var/folders/62/vzld3k1966jgkw__hvrkmxc00000gn/T/alpyne_48626_0fwjgz5o' with arguments: {path=., port=51150, dev_mode=false}
[2023-09-12 11:40:19] WARNING @ org.glassfish.jersey.server.wadl.WadlFeature configure
| JAX-B API not found . WADL feature is disabled.
[2023-09-12 11:40:19] INFO @ org.glassfish.grizzly.http.server.NetworkListener start
| Started listener bound to [localhost:51150]
[2023-09-12 11:40:19] INFO @ org.glassfish.grizzly.http.server.HttpServer start
| [HttpServer] Started.
[2023-09-12 11:40:21] SEVERE @ BonsaiBrainLearningPlatform.processExperimentError
| executing model
java.lang.ClassCastException: class [Lcom.anylogic.engine.presentation.ModelElementDescriptor; cannot be cast to class [Lcom.anylogic.engine.presentation.ModelElementDescriptorUtils; ([Lcom.anylogic.engine.presentation.ModelElementDescriptor; and [Lcom.anylogic.engine.presentation.ModelElementDescriptorUtils; are in unnamed module of loader 'app')
at validation_model.Main.doCreate(Main.java:1243)
at com.anylogic.engine.Agent.createAsEmbedded(Unknown Source)
at com.anylogic.engine.Agent.create(Unknown Source)
at com.anylogic.engine.Engine.start(Unknown Source)
at com.anylogic.rl.connector.bonsai.BonsaiBrainLearningPlatform.run(BonsaiBrainLearningPlatform.java:239)
at com.anylogic.alpyne.sim.api.ModelRunPlatform.run(ModelRunPlatform.java:224)
Exception in thread "Thread-0" java.lang.RuntimeException: root:
Error - executing model
at com.anylogic.engine.Engine.error(Unknown Source)
at com.anylogic.engine.Agent.error(Unknown Source)
at com.anylogic.engine.Utilities.error(Unknown Source)
at com.anylogic.rl.connector.bonsai.BonsaiBrainLearningPlatform.processExperimentError(BonsaiBrainLearningPlatform.java:710)
at com.anylogic.rl.connector.bonsai.BonsaiBrainLearningPlatform.run(BonsaiBrainLearningPlatform.java:304)
at com.anylogic.alpyne.sim.api.ModelRunPlatform.run(ModelRunPlatform.java:224)
Caused by: java.lang.ClassCastException: class [Lcom.anylogic.engine.presentation.ModelElementDescriptor; cannot be cast to class [Lcom.anylogic.engine.presentation.ModelElementDescriptorUtils; ([Lcom.anylogic.engine.presentation.ModelElementDescriptor; and [Lcom.anylogic.engine.presentation.ModelElementDescriptorUtils; are in unnamed module of loader 'app')
at validation_model.Main.doCreate(Main.java:1243)
at com.anylogic.engine.Agent.createAsEmbedded(Unknown Source)
at com.anylogic.engine.Agent.create(Unknown Source)
at com.anylogic.engine.Engine.start(Unknown Source)
at com.anylogic.rl.connector.bonsai.BonsaiBrainLearningPlatform.run(BonsaiBrainLearningPlatform.java:239)
... 1 more
[2023-09-12 11:40:21] INFO @ com.anylogic.alpyne.AlpyneServer main
| Terminating app...
[2023-09-12 11:40:21] INFO @ org.glassfish.grizzly.http.server.NetworkListener shutdownNow
| Stopped listener bound to [localhost:51150]
[2023-09-12 11:40:21] WARNING @ com.anylogic.alpyne.AlpyneServer main
| Alpyne terminated.
[2023-09-12 11:40:14] INFO @ AlpyneServer.main
| [PID=18654] Initializing @ '/private/var/folders/62/vzld3k1966jgkw__hvrkmxc00000gn/T/alpyne_48626_0fwjgz5o' with arguments: {path=., port=51150, dev_mode=false}
[2023-09-12 11:40:21] INFO @ AlpyneServer.main
| Terminating app...
[2023-09-12 11:40:21] WARNING @ AlpyneServer.main
| Alpyne terminated.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I can run the example of the Stock Management Game from the GitHub file, but when I want to run the same model exported myself, it builds the client and opens the Alpyneserver but has a problem with running the create_reinforcement_learning(). The same problem occurs when I run the Python script for my self-made model. I tried to Google the error, but I had a hard time finding the cause of the error.
Included is the Alpyne.log I do not know how to fix this error.
thanks in advance!
[2023-09-12 11:40:14] INFO @ com.anylogic.alpyne.AlpyneServer main
| [PID=18654] Initializing @ '/private/var/folders/62/vzld3k1966jgkw__hvrkmxc00000gn/T/alpyne_48626_0fwjgz5o' with arguments: {path=., port=51150, dev_mode=false}
[2023-09-12 11:40:19] WARNING @ org.glassfish.jersey.server.wadl.WadlFeature configure
| JAX-B API not found . WADL feature is disabled.
[2023-09-12 11:40:19] INFO @ org.glassfish.grizzly.http.server.NetworkListener start
| Started listener bound to [localhost:51150]
[2023-09-12 11:40:19] INFO @ org.glassfish.grizzly.http.server.HttpServer start
| [HttpServer] Started.
[2023-09-12 11:40:21] SEVERE @ BonsaiBrainLearningPlatform.processExperimentError
| executing model
java.lang.ClassCastException: class [Lcom.anylogic.engine.presentation.ModelElementDescriptor; cannot be cast to class [Lcom.anylogic.engine.presentation.ModelElementDescriptorUtils; ([Lcom.anylogic.engine.presentation.ModelElementDescriptor; and [Lcom.anylogic.engine.presentation.ModelElementDescriptorUtils; are in unnamed module of loader 'app')
at validation_model.Main.doCreate(Main.java:1243)
at com.anylogic.engine.Agent.createAsEmbedded(Unknown Source)
at com.anylogic.engine.Agent.create(Unknown Source)
at com.anylogic.engine.Engine.start(Unknown Source)
at com.anylogic.rl.connector.bonsai.BonsaiBrainLearningPlatform.run(BonsaiBrainLearningPlatform.java:239)
at com.anylogic.alpyne.sim.api.ModelRunPlatform.run(ModelRunPlatform.java:224)
Exception in thread "Thread-0" java.lang.RuntimeException: root:
Error - executing model
at com.anylogic.engine.Engine.error(Unknown Source)
at com.anylogic.engine.Agent.error(Unknown Source)
at com.anylogic.engine.Utilities.error(Unknown Source)
at com.anylogic.rl.connector.bonsai.BonsaiBrainLearningPlatform.processExperimentError(BonsaiBrainLearningPlatform.java:710)
at com.anylogic.rl.connector.bonsai.BonsaiBrainLearningPlatform.run(BonsaiBrainLearningPlatform.java:304)
at com.anylogic.alpyne.sim.api.ModelRunPlatform.run(ModelRunPlatform.java:224)
Caused by: java.lang.ClassCastException: class [Lcom.anylogic.engine.presentation.ModelElementDescriptor; cannot be cast to class [Lcom.anylogic.engine.presentation.ModelElementDescriptorUtils; ([Lcom.anylogic.engine.presentation.ModelElementDescriptor; and [Lcom.anylogic.engine.presentation.ModelElementDescriptorUtils; are in unnamed module of loader 'app')
at validation_model.Main.doCreate(Main.java:1243)
at com.anylogic.engine.Agent.createAsEmbedded(Unknown Source)
at com.anylogic.engine.Agent.create(Unknown Source)
at com.anylogic.engine.Engine.start(Unknown Source)
at com.anylogic.rl.connector.bonsai.BonsaiBrainLearningPlatform.run(BonsaiBrainLearningPlatform.java:239)
... 1 more
[2023-09-12 11:40:21] INFO @ com.anylogic.alpyne.AlpyneServer main
| Terminating app...
[2023-09-12 11:40:21] INFO @ org.glassfish.grizzly.http.server.NetworkListener shutdownNow
| Stopped listener bound to [localhost:51150]
[2023-09-12 11:40:21] WARNING @ com.anylogic.alpyne.AlpyneServer main
| Alpyne terminated.
[2023-09-12 11:40:14] INFO @ AlpyneServer.main
| [PID=18654] Initializing @ '/private/var/folders/62/vzld3k1966jgkw__hvrkmxc00000gn/T/alpyne_48626_0fwjgz5o' with arguments: {path=., port=51150, dev_mode=false}
[2023-09-12 11:40:21] INFO @ AlpyneServer.main
| Terminating app...
[2023-09-12 11:40:21] WARNING @ AlpyneServer.main
| Alpyne terminated.
Beta Was this translation helpful? Give feedback.
All reactions