debugging webstart with IDEA
Hi,
I need help with figuring out why I cannot debug locally run webstart apps.
In a gist, what happens is that once I start up an webstart application, I right
away get "Connected to the target VM at 'localhost:5005' using socket
transport." in the concel after which IDEA's debugger disengages before the
application has a chance to start.
The project's remote debug configuration is set up as socket/listen on port
5005.
The webstart app is started with the following command line:
"c:\program files\Java\jre1.5.0_02\bin\java.exe" \
-Xdebug -Xnoagent -Djava.compiler=NONE \
-Xrunjdwp:transport=dt_socket,server=n,address=5005 \
-Xbootclasspath/a:c:\program files\Java\jre1.5.0_02\lib\javaws.jar; \
c:\program files\Java\jre1.5.0_02\lib\deploy.jar \
-cp "c:\program files\Java\jre1.5.0_02\lib\deploy.jar" \
"-Djnlpx.home=c:\program files\Java\jre1.5.0_02\bin" \
-Djnlpx.splashport=4807 \
"-Djnlpx.jvm=c:\program files\Java\jre1.5.0_02\bin\javaw" \
-Djnlpx.remove=false \
-DtrustProxy=true -Xverify:remote -Djnlpx.heapsize=NULL,NULL \
com.sun.javaws.Main c:\onlinez.jnlp]]>
I've read about a "double launch" problem with webstart that can happen when the
initial J2SE environment doesn't match the environment specified in the jnlp
file. Judging from the trace generated with TraceBasic=true option (included
below), I don't think I have this problem (note "basic: continuing launch in
this VM" line towards the end of this trace fragment).
So, any ideas, hints, suggestions why I can't debug my webstart app with IDEA?
Thanks
Dmitry
----------------------------------------------------
basic: Java part started
basic: jnlpx.jvm: C:\Program Files\Java\jre1.5.0_02\bin\javaw.exe
basic: jnlpx.splashport: 4807
basic: jnlpx.remove: false
basic: jnlpx.heapsize: 33554432,134217728
basic: new Launcher:
Online Z Payments
UCSD, Health Sciences
basic: Loaded descriptor from cache at: http://xxxx.ucsd.edu/ws/onlinez/ws/OnlineZ.jnlp
basic: LaunchDesc location: http://xxxx.ucsd.edu/ws/onlinez/ws/OnlineZ.jnlp, version: null
basic: isCurrentRunningJREHeap: passed args: 33554432, 134217728
basic: JnlpxArgs is 33554432, 134217728
basic: isCurrentRunningJREHeap: passed args: 33554432, 134217728
basic: JnlpxArgs is 33554432, 134217728
basic: isCurrentRunningJREHeap: passed args: 33554432, 134217728
basic: JnlpxArgs is 33554432, 134217728
basic: isCurrentRunningJREHeap: passed args: 33554432, 134217728
basic: JnlpxArgs is 33554432, 134217728
basic: isCurrentRunningJREHeap: passed args: 33554432, 134217728
basic: JnlpxArgs is 33554432, 134217728
basic: LaunchSelection: findJRE: Match on current JRE
JNLPException[category: Download Error : Exception: java.io.IOException: HTTP response 404 : LaunchDesc: null ]
at com.sun.javaws.cache.DownloadProtocol.doDownload(Unknown Source)
at com.sun.javaws.cache.DownloadProtocol.isUpdateAvailable(Unknown Source)
at com.sun.javaws.cache.CacheImageLoader$DelayedImageLoader.run(Unknown Source)
basic: Offline mode: false
IsInCache: true
forceUpdate: false
Installed JRE: JREInfo for index 5:
platform is: 1.5
product is: 1.5.0_02
location is: http://java.sun.com/products/autodl/j2se
path is: C:\Program Files\Java\jre1.5.0_02\bin\javaw.exe
osname is: Windows
osarch is: x86
enabled is: true
registered is: true
system is: false
IsInstaller: false
basic: isCurrentRunningJREHeap: passed args: 33554432, 134217728
basic: JnlpxArgs is 33554432, 134217728
basic: continuing launch in this VM
JNLPException[category: Download Error : Exception: java.io.IOException: HTTP response 404 : LaunchDesc: null ]
at com.sun.javaws.cache.DownloadProtocol.doDownload(Unknown Source)
at com.sun.javaws.cache.DownloadProtocol.isUpdateAvailable(Unknown Source)
at com.sun.javaws.cache.CacheImageLoader$DelayedImageLoader.run(Unknown Source)
basic: Classpath: http://xxxx.ucsd.edu/ws/onlinez/ws/OnlineZ-0.1.0.jar:null
basic: Classpath: http://xxxx.ucsd.edu/ws/onlinez/ws/itext-1.02b.jar:null
basic: Classpath: http://xxxx.ucsd.edu/ws/onlinez/ws/jasperreports-0.6.7.jar:null]]>
Please sign in to leave a comment.