Anylogic Runtime error: Exception during discrete event execution, (… are in unnamed module of loader 'app')

huangapple go评论54阅读模式
英文:

Anylogic Runtime error: Exception during discrete event execution, (... are in unnamed module of loader 'app')

问题

我是Anylogic的新手,正在尝试使用传送带构建分拣和装箱模型...

在装箱部分,我使用了“装箱传送带”示例模型,并将相关模块与我的模型关联起来,但是当托盘进入装箱站或节点时,模型崩溃并抛出错误:

在离散事件执行期间的异常
类sorting_conveyors.Pallet无法转换为类sorting_conveyors.PalletLayer(sorting_conveyors.Pallet和sorting_conveyors.PalletLayer在加载器'app'的未命名模块中)
java.lang.ClassCastException: 类sorting_conveyors.Pallet无法转换为类sorting_conveyors.PalletLayer(sorting_conveyors.Pallet和sorting_conveyors.PalletLayer在加载器'app'的未命名模块中)
at sorting_conveyors.Main$22.agentLocation(Main.java:1)

在尝试链接中的我的模型后,可以阅读完整的日志:https://drive.google.com/file/d/1u84kvD9JbspLhUxaMcgHWrB2BocNSkmk/view?usp=sharing

不幸的是,错误消息似乎只针对Java专家,没有建议您去哪里解决它。

请提供任何提示或解决问题的方法,我花了一天多的时间搜索错误,但徒劳无功。

英文:

I am new to Anylogic and I am trying to build a sorting and palettizing model with conveyors ...

For the palettizing part, I used the "Palettizing Conveyor" example model and associated the relevant blocks to my model, but while the Pallet is entering the palettizing station or node, the model crashes and throws the error:

Exception during discrete event execution
class sorting_conveyors.Pallet cannot be cast to class sorting_conveyors.PalletLayer (sorting_conveyors.Pallet and sorting_conveyors.PalletLayer are in unnamed module of loader 'app')
java.lang.ClassCastException: class sorting_conveyors.Pallet cannot be cast to class sorting_conveyors.PalletLayer (sorting_conveyors.Pallet and sorting_conveyors.PalletLayer are in unnamed module of loader 'app')
at sorting_conveyors.Main$22.agentLocation(Main.java:1)

The entire log can be read after trying the my model in the link : https://drive.google.com/file/d/1u84kvD9JbspLhUxaMcgHWrB2BocNSkmk/view?usp=sharing

Unfortunately, the error messages seems to be targeted to Java geeks only and does not advise you where to go to solve it.

Please any hint or a solution to solve the problem, it took me a more than a day searching for a fault but in vain.

答案1

得分: 1

在 'emptyPalletConveyor' 上,将物料项类型更改为 'Pallet' 而不是 'Agent' 修复了我的错误。

Anylogic Runtime error: Exception during discrete event execution, (… are in unnamed module of loader 'app')

英文:

On 'emptyPalletConveyor', changing the Material item type to 'Pallet' rather than 'Agent' fixed the bug for me.

Anylogic Runtime error: Exception during discrete event execution, (… are in unnamed module of loader 'app')

huangapple
  • 本文由 发表于 2023年3月10日 01:13:00
  • 转载请务必保留本文链接:https://go.coder-hub.com/75687902.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定