Skip to main content

Why Java Web Start doesn't work or works from time to time

16 replies [Last post]
vladakk
Offline
Joined: 2005-12-10
Points: 0

Since build 23 java web start doesn't work or works from time to time.
The last build we tried is b28.
Still the same happens.
JMX console shows (see snapshot) that javaws launcher is waiting for something but we can't find reason cause we are not able to get source.
Our enterprise application is based on JWS and this situation force us to limit java 6 use up to b22 !
We tried javaws with different PC configurations with Kubuntu 8.04 and different networks.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
vladakk
Offline
Joined: 2005-12-10
Points: 0

Answers to your questions!
Yes, we are able to reproduce the issue with other apps.
Yes, we are able to reproduce the issue on other computers.
No, we use only 32-bit Kubuntu Linux.
Yes, the same happens by launching a local JNLP file.

What we suggest to you is to try with PC with some P4 processor (3 or 4 years old). We are certain that speed of computer has influence in correct work of JWS. If you swap javaws.jar with b22, JWS will work always and age of computer doesn't matter!

rogyeu
Offline
Joined: 2006-07-30
Points: 0

I still cannot reproduce the issue. I tried the JPathReport attached in the above message locally, and I also tried to start it from jgoodies.com

Please turn on the tracing described below and try reproducing the issue:
- Open the deployment.properties files located:
Windows \Sun\Java\Deployment\deployment.properties
Unix ${user.home}/.java/deployment/deployment.properties
- Add these 3 lines to the file and save:
deployment.trace.level=all
deployment.user.logdir=
deployment.trace=true

After you've successfully reproduced the issue, please attach the log file that Java Web Start didn't launch the app.

Thanks,
Roger Y.

ghaneman
Offline
Joined: 2006-11-09
Points: 0

The log files are in the attached zip file. These were generated after first clearing the java cache and then re-downloading JPathReport from the jgoodies site. My Java console is disabled and tracing is set to all. Unfortunately, I can't see anything obviously wrong.

The thing is, it does launch. There is a java process created (that I end up having to kill). It's just that there is no window displayed. This happens on both XP and unbuntu. BTW, I'm running ubuntu in Sun's Virtual Box so vladakk may be onto something as far as slower machines are concerned. My PC is an AMD3500+. In my ignorance, this looks like some kind of threading issue reminiscent of the advice about ensuring a frame is only shown in the EDT.

rogyeu
Offline
Joined: 2006-07-30
Points: 0

The log looks legit.

Please try the following:
- Disable the Java Console (no show)
- right click "cmd" and open it as administrator
- copy javaw.exe javaw.exe.orig
- copy java.exe javaw.exe
- launch the jgoodies app

After a javaw process shows in task manager, but nothing shows (as your described issue). "Ctrl-Break" in the cmd to get the dump.

Please provide the dump so I can further investigate the issue.

Thanks,
Roger Y.

ghaneman
Offline
Joined: 2006-11-09
Points: 0

Did as you described, a new cmd window briefly opens, then disappears so I couldn't get the thread dump using a ctrl-break. Instead, I used the VisualVM to get the thread dump. I don't know if it will suffice but the file is attached. It shows the result of an unsuccessful launch.

Also, I verified vladakk's observation that b22 works fine.

pauldb
Offline
Joined: 2003-08-30
Points: 0

I would like to add my name to those that have experienced this bug.

In addition, as someone who develops commercial applications that are deployed using Java Web Start, I am quite anxious to stress that the Sun Java team really ought to be making this a higher priority with regards to fixing it. For me personally, I'd go so far as to say it's a showstopper.

Please vote for the bug report mentioned earlier in this thread: 6726716
Thanks to the people who began and contributed to this thread and who posted the report.

-Paul

pauldb
Offline
Joined: 2003-08-30
Points: 0

The bug report at the start of this thread:

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6726716

is now reporting that the fix is: "Incomplete, Need More Info"
and saying "please ask customer to retry with 6u10 b33 to confirm if it is fixed".

I am not the person who submitted the report but I am experiencing the problem and I'm very anxious to see it fixed. Therefore, I would be happy to try build 33 if someone could point me at it. It's not yet accessible from the latest builds page of jdk6.dev.java.net

Thank you,
-Paul

ghaneman
Offline
Joined: 2006-11-09
Points: 0

Some more info. I tested b28 webstart on 32bit ubuntu 8.04 by downloading the webstart link for jpathreport straight from the jgoodies website. With the Java console set to "Do not start", launching jpathreport resulted in very few successful launches. When I set the console to "Show", the reliability was far better. In fact, I couldn't get it to fail.

Tried the same for XP. Reliability better but still had the occasional failure.

vladakk
Offline
Joined: 2005-12-10
Points: 0

Additional info!

We have found that JWS works if it is started with konqueror!

konqueror https://www.a-asoft.com/users/777777-1/Asoftjnlp.html

rogyeu
Offline
Joined: 2006-07-30
Points: 0

I've tried to load your app more than 30 times and I still cannot reproduce the issue. Your app launches every time. Couple questions:

Can you reproduce the issue with other apps?
Can you reproduce the issue on other computers?
Can you reproduce the issue on other OS? Please check the official supported platform for Java 6: http://java.sun.com/javase/6/webnotes/install/system-configurations.html
Are you using a 64-bit OS or 32-bit?
Can you reproduce the issue by launching a local JNLP file to eliminate the network issue?
We need to be able to reproduce the issue in house in order to investigate the issue, any information to reproduce the issue is appreciated.

My test env:
6u10-b28
FF3.0
Vista

Thanks,
Roger Y.

ghaneman
Offline
Joined: 2006-11-09
Points: 0

Hi Roger. I haven't tested the webstart app mentioned above but I have attached a small wmv showing the behavior while launching the free jgoodies JPathReport. You can see that the 1st launch doesn't work but the javaw.exe process is there.

The 2nd attachment is a zip file that contains a directory you can extract into c:\temp. That way, you won't need to edit the jnlp file. There should be no network activity because everything is defined locally. You need only dbl click the jnlp file. I hope Karsten doesn't mind but it is his jdiskreport freebie. When I launch it, it also shows this intermittent behavior. This behavior happens with jqs enabled and disabled.

If I run with 1.6.0_07, they launch 100% of the time.

My pc is a plain Windows XP 32 bit system while you are on Vista, so perhaps that might explain something.

vladakk
Offline
Joined: 2005-12-10
Points: 0

Thank you very much for your response.

We have set Java network preferences to use a direct connection.
We have tried starting JWS with strace and result is opposite to regular JWS start.
JWS started 19 out of 20 times.
For that 1 unsuccessful attempt we send strace log file.

We started JWS with strace:
strace -f -F -o /tmp/strace-out.log javaws https://www.a-asoft.com/users/777777-1/Asoftjnlp.html

Test case to reproduce the bug:
javaws https://www.a-asoft.com/users/777777-1/Asoftjnlp.html

rogyeu
Offline
Joined: 2006-07-30
Points: 0

Hi Vladakk,

Is your network setting similar to CR 6726716? If not, please submit a bug at http://bugreport.sun.com . Please include steps and test case for reproducing the issue.

Thanks,
Roger Y.

ghaneman
Offline
Joined: 2006-11-09
Points: 0

Roger, this bug may be related to the same intermittent problems reported with the Java plugin (see 6723194 and 6727020). This bug was introduced in recent builds and only half fixed in b28. The Sun developer said he couldn't find the root cause of the problem so he changed some error checks to stop throwing exceptions. This may have worked for applets - I don't know since I haven't tested - but webstart is still broken.

ghaneman
Offline
Joined: 2006-11-09
Points: 0

I submitted a bug about this last week. 6726716

Sun have assigned it a MEDIUM priority, but IMO, it would be insane for them to do a final release with this bug unfixed. There are hundreds of thousands of users in corporate land running webstart apps and when they find their applications do not reliably launch, we as developers will be swamped with complaints.

In addition, Sun's credibility for releasing well tested software will take a nose dive (if it hasn't already). Sun, I urge you to make this a high priority fix.

vladakk
Offline
Joined: 2005-12-10
Points: 0

We posted a thread on June 6th, almost two months ago, about this problem but we haven't received any answer yet. It looks that nobody from Sun reads this 6uN Early Access forum, rarely I can find answered questions.
Obviously Sun has no interest in resolving and that is a huge mistake.