|
Author |
Topic: network or j2sdk problem (Read 699 times) |
|
pollux
|
network or j2sdk problem
« on: Nov 30th, 2003, 10:48pm » |
|
i've been having trouble with j2sdk and processing in my machine. i need j2sdk since i'm running apache+tomcat+jboss, but it seems that when i have it, my applets open as a java window, and whenever i start getting a file through an URL, the applet hangs until i click the stop button, and then it shows all the parsing and the events that happened while hanged!! two pics of it: http://www.00forward.com/images/applet_hanging_1.gif http://www.00forward.com/images/applet_hanging_2.gif - the applet hangs, and the clock cursor appears when in the applet area. - after pushing stop button on P5, all the output comes out, both in the applet (text) and the console. - i noticed the java logo on the applet window, as far as i remember it used to appear a P5 logo before, am i wrong? [dell inspiron laptop, W2K, 650MHz, P5_0067, running an internet shared connection from another PC, but it worked previously] so, i would like to know four things: - any known issue with j2sdk1.4.2_02? - does anyone know of any port conflict? i mean, i've been assigning ports to tomcat and jboss, 8009->8019 plus the 8080 default, could it be the problem? - is there any way of debugging the applet window? any output file? - any particular environment variable that may not be configured well? i've been hacking those too, but everything else reagrding j2sdk work well, though. here is the code, it works perfectly on my other computer [dell desktop, 700MHz, WinXP, P5_0067] Code://////////////////////////////////////////// //// xml parser | file testing //// 00forward.com //////////////////////////////////////////// String stream; boolean once = false; boolean debug = true; boolean parsed = false; BFont U65; void setup() { size(300, 100); U65 = loadFont("Univers65.vlw.gz"); if (!once) println("applet inited"); } void loop() { background(255); output("START ====================="); getData(10, 1, 36, 38); } public void output(String screenText) { fill(0); textFont(U65, 18); text( screenText, 30, 50 ); } void getData(int s, int r1, int r2, int r3) { stream = setStream(s, r1, r2, r3); if (!once) println( "stream: "+ stream); //// parser init String[] lines; //// parser run lines = loadStrings(stream); if (!once) println("lines: " + lines.length + " lines"); // it ran once once = true; } String setStream(int stop1, int route1, int route2, int route3) { String output; output = "http://81.114.121.228:8080/"; output += "fluidTime/servlet/ViewController?app=PTT"; output += "&cmd=getInfo&stop="+stop1; output += "&route="+route1; output += "&route="+route2; output += "&route="+route3; if (debug) output = "http://www.00forward.com/PTT1.xml"; return output; } |
| any help would be highly appreciated, i am on a deadline for the applets! thanks.
|
pollux | www.frwrd.net
|
|
|
Martin
|
Re: network or j2sdk problem
« Reply #1 on: Dec 1st, 2003, 1:56pm » |
|
hi, for some reason or another, it runs on my machine. winxp, 0067e, jre1.4.1_03, direct 'net connxn
|
|
|
|
fry
|
Re: network or j2sdk problem
« Reply #2 on: Dec 1st, 2003, 6:01pm » |
|
try using the 'standard' release of p5 instead of the expert one. that way, it'll use its own version of the j2sdk, rather than getting horked up with the newer one that you have installed.
|
|
|
|
pollux
|
Re: network or j2sdk problem
« Reply #3 on: Dec 9th, 2003, 4:53am » |
|
thanks fry, but it did not work. i think i've messed up too much with my java, environmental vars and classpaths to solve it right now.
|
pollux | www.frwrd.net
|
|
|
|