From: Nick C. <ntc...@ve...> - 2004-03-16 16:33:42
|
Hi, Its not that it tries to load the control bar under either one in batch mode. What it tries to do is query the event queue (mouse clicks etc.) and see if it needs to handle any of these. Under windows, this queue will always (I think) exist. On Unix machines without X11 installed or if you are connecting over a 'plain' ssh connection, this queue does not exist and so you get the error. This queue is provided by the X11 server so that's why you see the error. The latest code in CVS doesn't query this queue at all under batch mode. That it tries to in batch mode is bug that only surfaces on unix machines under the conditions mentioned above. Nick > -----Original Message----- > From: rep...@li... > [mailto:rep...@li...]On Behalf Of Athale, > Chaitanya A. > Sent: Tuesday, March 16, 2004 11:18 AM > To: 'Nick Collier '; 'rep...@li... '; > ''George Danner ' '; 'rep...@li... ' > Subject: RE: [Repast-interest] Help setting up batch version of model > > > Hi Nick, > thanks for the suggestion, and I had already looked through those > archives. I > have managed a workaround in the meantime. > > At the cost of sounding silly, I still have a question. Why does > Repast load the > repast control toolbar even in batch mode under Unix, when it > doesnt do so in > Windows? > > Regards, > Chaitanya > > -----Original Message----- > From: Nick Collier > To: Athale, Chaitanya A.; > rep...@li...; 'George > Danner '; rep...@li... > Sent: 3/15/04 5:30 PM > Subject: RE: [Repast-interest] Help setting up batch version of model > > This is fixed in the CVS version of the code. Hopefully, we'll do a > release > very soon. > > In the meantime, I think a work around was discussed on the mailing list > sometime ago. If you search for 'ssh', you should find it. > > Nick > > > -----Original Message----- > > From: Athale, Chaitanya A. [mailto:CATHALE@PARTNERS.ORG] > > Sent: Monday, March 15, 2004 5:24 PM > > To: 'Nick Collier '; 'rep...@li... '; > > 'George Danner '; 'rep...@li... ' > > Subject: RE: [Repast-interest] Help setting up batch version of model > > > > > > Hi, > > I have a similar problem running the batch version of my model > > under Unix. I > > typically code it in Jbuilder in Windows and wanted to try running > larger > > jobs under Unix. > > > > I do the following: > > 1. set the classpath for the compiler and interpreter. Demo code works > > (runs). > > > > 2. I can compile my source codes using > > javac -classpath /repast.jar .*java > > > > 3. I have tried running the batch file in windows in command line > > suppressing the GUI and it work (as mentioned in the documentation) > > > > "$ java -cp .:/home/cathale/repast/repast.jar > > uchicago.src.sim.engine.SimInit -b TumorIIIB.TumorModelBatch > > /home/cathale/code/TumorIIIB/params.txt" > > > > > > With the appropriate changes for WinXP syntax this runs perfectly. > Under > > Unix (I connect by ssh) it constantly tries to grab some kind of GUI > and > > since Im on ssh and have firewall issues (I guess) I get an ERROR > > message as > > follows: > > > > " java.lang.InternalError: Can't connect to X11 window server using > ':0.0' > > as the value of the DISPLAY variable." > > > > The initialization does appear to happen, so it does seem to be > running. > > > > If anybody has seen similar problems, Id much appreciate tips. > > > > Regards, > > Chaitanya > > > > > > > > > > > > -----Original Message----- > > From: rep...@li... > > To: George Danner; rep...@li... > > Sent: 3/15/04 4:19 PM > > Subject: RE: [Repast-interest] Help setting up batch version of model > > > > George, > > > > Can you provide some more details about how you start repast when you > go > > to load your model (e.g. double-click repast.jar, run from command > line, > > etc.). The loader does some tricky things with classpaths in order > show > > the demos etc., so there may be a bug here, although I can't easily > > reproduce it on my machine. > > > > By the way, if you are going to run in batch mode, then the preferred > > way to run the model is from the command line with something like: > > > > java -cp my_classpath uchicago.src.sim.engine.SimInit -b > my_model_class > > my_parameter_file > > > > replacing all the my_* with your equivalents of course. > > > > Nick > > > > -----Original Message----- > > From: rep...@li... > > [mailto:rep...@li...]On Behalf Of > George > > Danner > > Sent: Monday, March 15, 2004 9:50 AM > > To: rep...@li... > > Subject: [Repast-interest] Help setting up batch version of model > > > > > > Hi Repast Community- > > > > I have a question about setting up a batch version of my model. I am > > able to launch my model with no problem from my IDE (happens to be > > JBuilder). However, when I try to load the model (including a > parameter > > file) from the Repast toolbar I generate a whole batch of errors, all > > oddly relating to the demo models. Here is the first five lines of > the > > error thread I get: > > > > java.lang.ClassNotFoundException: uchicago.src.sim.heatBugs.HeatSpace > > at java.net.URLClassLoader$1.run(URLClassLoader.java:199) > > at java.security.AccessController.doPrivileged(Native Method) > > at java.net.URLClassLoader.findClass(URLClassLoader.java:187) > > at java.lang.ClassLoader.loadClass(ClassLoader.java:289) > > at java.lang.ClassLoader.loadClass(ClassLoader.java:235) > > . > > . > > . > > > > Any clues as to what is going on? > > > > Thanks for your help. > > > > George Danner > > > > > |