From: wzhgao <wz...@ya...> - 2010-03-31 07:37:39
|
Hi, I've already build a repast model behind (using groovy), and use the method here http://old.nabble.com/How-to-programmatically-start-RepastS---td14351077.html#a14351077 to start the model programmatically. When I published the model as a server in Tomcat, that I put all the classes in webapp's folder with the libs. When there is only one session to call the model, it runs OK. But when I try to start a new session, the errors come: java.lang.RuntimeException: simplegamemodel.SimplePlayer class is frozen at javassist.CtClassType.checkModify(CtClassType.java:286) at javassist.CtBehavior.getMethodInfo(CtBehavior.java:98) at repast.simphony.engine.watcher.WatcheeInstrumentor.addFieldFromWatchers(WatcheeInstrumentor.java:168) at repast.simphony.engine.watcher.WatcheeInstrumentor.instrument(WatcheeInstrumentor.java:102) at repast.simphony.scenario.ScenarioLoader.load(ScenarioLoader.java:147) at defaultTest.TestRunner.load(TestRunner.java:72) at com.decisci.RepastModelService.<init>(RepastModelService.java:37) at com.decisci.RepastModelServlet.doPost(RepastModelServlet.java:34) at com.decisci.RepastModelServlet.doGet(RepastModelServlet.java:23) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) at java.lang.Thread.run(Unknown Source) --------- It seems the "frozen" class is used by the previous session. what is WatcheeInstrumentor for? How can begin a new instance of model( it should be the same model, so the path of 'rs' folder should be the same)? best regards, Weizhi -- View this message in context: http://old.nabble.com/multiton-of-a-Repast-model-tp28092386p28092386.html Sent from the repast-interest mailing list archive at Nabble.com. |