From: Gaurav G. <gan...@re...> - 2004-05-08 18:50:29
|
=0AGreetings,=0A=0AI was trying to debug oscar code running on kaffe.=0A=0A= I found, variable startLevel is always zero (which is a not expected) as i= n shutdown routine startlevel is set 0 to stop bundles.=0A=0AIn Oscar.java/= setStartLevelInternal() routine just before =0A=0A startB= undleForStartLevel(impl); //line number 724=0A=0Ai inserted =0A = setStartLevelInternal(1); =0A=0Ato set startlevel to 1.=0A=0AWith thi= s modification it is not giving me DEADLOCK error( i don't know why startle= vel was always zero)=0A=0ABut now it is giving me stackOverFlowError.=0A=0A= I tried to increase stack size with =0A=0A java -jar -ss 64M lib/= oscar.jar=0A=0Abut then is gives me OutOfMemoryError. =0A=0AI tried with = =0A=0A java -jar -ss 64M -ms32M -mx 256[512]M lib/oscar.jar=0A=0A= but again same OutOfMemoryError.=0A=0AMay be i should look forward to upgra= de my system, but i just wanted to give feedback on startLevel problem.=0A= =0AAny Suggestions ? =0A=0AThanks & Regards,=0AGaurav Ganeriwal =0A=0A=0AOn= Thu, 06 May 2004 Richard S. Hall wrote :=0A>>I am trying to port OSCAR on = KAFFE-1.0.7 (http://wwww.kaffe.org).=0A>>As kaffe donot have swing package = support, i decided to use SwingWT package. I have made necessary changes in= the OSCAR source code.=0A>>=0A>=0A>Oscar does not require Swing, although = some bundles may. You should be able to run Oscar unchanged; for example, I= have run it on J2ME Personal Profile, which doesn't have Swing either.=0A>= =0A>>I have also added various bundles required to run oscar. With this set= up i am able to build oscar.jar through ant, but when i try to run oscar i= t gives me following error:=0A>>=0A>>Welcome to Oscar.=0A>>=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A>>=0A>>Enter profile name: my_profil= e=0A>>=0A>>Oscar: Error starting file:bundle/shell.jar=0A>>Oscar: Error sta= rting file:bundle/shelltui.jar=0A>>Oscar: Error starting file:bundle/bundle= repository.jar=0A>>Dumping live threads:=0A>>`OscarStartLevel' tid 0x841901= 0, status SUSPENDED flags=0A>>blocked@0x8400fa8 (0x8419010->|)=0A>>`OscarPa= ckageAdmin' tid 0x840e010, status SUSPENDED flags=0A>>blocked@0x8400b88 (0x= 840e010->|)=0A>>`OscarDispatchQueue' tid 0x83c9010, status SUSPENDED flags= =0A>>blocked@0x83beac8 (0x83c9010->|)=0A>>`gc' tid 0x828e010, status SUSPEN= DED flags DONTSTOP=0A>>blocked@0x827ea98 (0x828e010->|)=0A>>`finaliser' tid= 0x8285010, status SUSPENDED flags DONTSTOP=0A>>blocked@0x81ac3c0 (0x828501= 0->|)=0A>>Deadlock: all threads blocked on internal events=0A>>Aborted=0A>>= =0A>>=0A>>What can be the reason for this error?=0A>> =0A>=0A>I don't know= , I have never seen it before. All Oscar internal threads should be blocked= (i.e., waiting), since there isn't any work for them to do. The only threa= d that should be doing anything is the main thread used to call the static = main. Since there were errors starting all of the bundles, you will never g= et a shell.=0A>=0A>I would be willing to take a quick look at this, if it d= oesn't take too much effort to work with Kaffe...this doesn't necessarily s= ound like an Oscar problem, since it runs on many JVMs.=0A>=0A>>For buildin= g oscar i unjar oscar_20031127.jar and bundlesrc.jar added jar files accord= ing to build.xml. I am using default system.properties file and example.poi= lcy file.=0A>>=0A>=0A>If you are using the policy file, try to run without = the security manager.=0A>=0A>-> richard=0A>=0A>=0A>=0A>=0A>----------------= ---------------------------------------=0A>This SF.Net email is sponsored b= y Sleepycat Software=0A>Learn developer strategies Cisco, Motorola, Ericsso= n & Lucent use to deliver=0A>higher performing products faster, at low TCO.= =0A>http://www.sleepycat.com/telcomwpreg.php?From=3Dosdnemail3=0A>_________= ______________________________________=0A>oscar-osgi-devel mailing list=0A>= osc...@li...=0A>https://lists.sourceforge.net/lis= ts/listinfo/oscar-osgi-devel=0A |