我需要你的帮助。我正在从另一个 Java 应用程序运行一个用餐模拟。我打算做的是将repast 1.2版升级到repast 2.0版。
我怎样才能做到这一点?
我试图用它的最新版本(repast 2.0)替换repast.simpony.bin_and_src.jar,但出现这样的错误:
repast.simphony.scenario.ScenarioLoadException: C:\workspace\.metadata\.plugins\...\score.rs\user_path.xml (The system cannot find the file specified)
at repast.simphony.scenario.ScenarioLoader.load(ScenarioLoader.java:219)
at lab.MyRunner.load(MyRunner.java:45)
at lab.MyExperiment.<init>(MyExperiment.java:39)
at servlets.SimServlet.doPost(SimServlet.java:126)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run (Unknown Source)
Caused by: java.io.FileNotFoundException: C:\workspace\.metadata\.plugins\...\score.rs\user_path.xml (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileReader.<init>(Unknown Source)
at repast.simphony.scenario.data.UserPathFileReader.read(UserPathFileReader.java:43)
at repast.simphony.scenario.ScenarioLoader.load(ScenarioLoader.java:108)