我已经建立了一个模拟,该模拟应该为登上飞机的人们建模。我希望多次运行它,以获取用于登机的各种方法所需的时间。该模型在正常运行时完全可以正常工作,并且模型输出正常工作。但是,当我尝试进行批处理时,它会在控制台中给我这个错误,而它给出的最终模型输出只是一个空文件。另外,控制台发出此消息:
警告[swingworker-pool-2-thread-2] 17:40:56,274 outputfinder-未找到模型输出匹配地球:{**/,,} mode Model output*.batch_param_map.txt in/var/var/var/var/var/var/var/var/var/var/var/var/var/文件夹/NH/8K546JQ14L5GNWKJGXVCH81800GN/T/T/SIMPHONY_MODEL_1651246794058/instance_2
warn [swingworker-pool-2-thread-2] 17:40:40:40:40:40:40:56,274 Uppoftfinder-doupptfinder-doupptfinder-doupt Found Found-inter-Outs Indut ottagt of of FORING of Motted Glot: /文件夹/NH/8K546JQ14L5GNWKJGXVCH8180000GN/t/t/simphony_model_1651246794058/instance_2
警告[swingworker-pool-2-thread-2] 17:40:40:40:40:40:40:56,275输出finder-douptfind-douptfind-docuts uptive founting-docuts toff interfirn-dobled optuct'在/var/folder/nh/8k546jq14l5gnwkjgxvch8180000gn/t/simphony_model_1651246794058/instance_1
warn [swingworker-pool-2-thread-2] 17:40:40:40:56,275输出finder-note-node输出范围内, txt in/var/folder/nh/8k546jq14l5gnwkjgxvch8180000gn/t/t/simphony_model_1651246794058/instance_1,我
从我所看到的东西中可以从我所看到的,可以从我所看到的,为什么有四个问题在何时正常工作时不起作用。
- 它不是自我释放的。
但是,我确定我的模型是这样做的,它一旦所有乘客都坐下来终止,而且我知道它在所有正常运行中都可以做到这一点。
- 显示元素
我删除了显示,并且在模拟
- 模型输出 中没有显示元素
我的模型输出每次都会写入文件模型output.txt,每次都有相同的名称,并且在正常运行时可以正常工作。
- 外部库
我认为这可能是问题。我导入的唯一库是标准Java库,例如Java.util.random或Java.util.list,以及许多Repast库。这些都可以是问题吗?如果是这样,我该如何将它们移动到其他能够访问它们的同时将它们移动到其他地方?我看到了一些有关将它们移入Lib目录的东西,但不太了解如何将其移动。
谢谢您的任何帮助!
I have set up a simulation in Repast that is supposed to model people boarding an airplane. I wish to run it multiple times to get an average of how much time it takes to board the airplane for various methods. The model works completely fine when running normally, and the model output works just fine then. However, when I try to do a batch run it gives me this error in the console, and the final model output it gives is just an empty file. Also, the console gives this message:
WARN [SwingWorker-pool-2-thread-2] 17:40:56,274 OutputFinder - No model output found matching glob:{**/,}ModelOutput*.batch_param_map.txt in /var/folders/nh/8k546jq14l5gnwkjgxvch8180000gn/T/simphony_model_1651246794058/instance_2
WARN [SwingWorker-pool-2-thread-2] 17:40:56,274 OutputFinder - No model output found matching glob:{**/,}ModelOutput*.txt in /var/folders/nh/8k546jq14l5gnwkjgxvch8180000gn/T/simphony_model_1651246794058/instance_2
WARN [SwingWorker-pool-2-thread-2] 17:40:56,275 OutputFinder - No model output found matching glob:{**/,}ModelOutput*.batch_param_map.txt in /var/folders/nh/8k546jq14l5gnwkjgxvch8180000gn/T/simphony_model_1651246794058/instance_1
WARN [SwingWorker-pool-2-thread-2] 17:40:56,275 OutputFinder - No model output found matching glob:{**/,}ModelOutput*.txt in /var/folders/nh/8k546jq14l5gnwkjgxvch8180000gn/T/simphony_model_1651246794058/instance_1
From what I have seen, there could be four issues why a model doesn't work in batch when it works normally.
- It doesn't self-terminate.
However, I am certain my model does this, it terminates as soon as all passengers are seated, and I know it does this in all normal runs.
- Display elements
I have removed the display, and have no display elements in my simulation
- Model output
My model output is written to a file ModelOutput.txt, with the same name each time, and it works fine when running normally.
- External libraries
This is what I believe might be the issue. The only libraries I am importing are standard java libraries such as java.util.Random or java.util.list, as well as a lot of repast libraries. Could any of these be the issue? If so, how do I move them somewhere else while still being able to access them? I saw something about moving them into the lib directory but didn't quite understand how.
Thank you for any help!
发布评论
评论(1)
使用JRE&GT时会导致此错误; 11。(请注意,进行批处理时,使用路径中的第一个“ Java”,这可能不是Eclipse使用的。)
请参阅此处的FAQ条目以获取解决方案:
https://repast.github.io/docs/RepastFAQ/RepastFAQ.html#_fatal_java_lang_exceptionininitializererror_caused_by_java_lang_reflect_inaccessibleobjectexception
The arguments specified there can在批处理运行GUI中的JVM参数文本框中添加。
This error results when using a JRE > 11. (Note that when doing a batch run, the first "java" in the PATH is used which may not be what Eclipse is using.)
See the FAQ entry here for a solution:
https://repast.github.io/docs/RepastFAQ/RepastFAQ.html#_fatal_java_lang_exceptionininitializererror_caused_by_java_lang_reflect_inaccessibleobjectexception
The arguments specified there can be added in the JVM Arguments text box in the batch run GUI.