This discussion is archived
4 Replies Latest reply: Jul 26, 2012 6:05 AM by 951763 RSS

Webstart engine crash on win7 java7, no logs, no console.

951763 Newbie
Currently Being Moderated
Hi guys,

We are facing a problem with a java webstart application we have in our company. What happens is that the java webstart simply wont start, it doesnt even launch the java console or any "pop-up" error, what happens is:

1. we click on a internal link in our website to generate the jnlp (its generated because some params change depending on the user session).
2. the "open with" dialog for the current browser appears, and we click on "open"
3. the "Java 7" logo appears and then nothing else happens.

This problem its consistently reproduced on machines with java7 and win7, we have tested this also on different win7 boxes and still crashes when its java7.
The application works flawleslly (for the same session and user) on any machine with java6 (winxp, win7 or mac).
The application also works with java7 on winxp and macosx boxes! So we thing could be a java webstart engine bug... (not an application bug, since we dont see the java console or any java exception).
The java cansole its shown properlly on macosx (java6,java7), winxp(java6,java7) and even win7(java6) attempts.

Here is a sample jnlp that does work on all specified platforms+jre versions, except win7 java7.

======================================================
<jnlp spec="6.0+" codebase="http://test-01.userlytics.com/sitetester/webstudio">
<information>
<title>Userlytics Recorder</title>
<vendor>Userlytics</vendor>
<homepage href="http://www.userlytics.com"/>
<description>Screen Recorder</description>
<description kind="short">Screen Recorder</description>
<offline-allowed />
<icon href="icon.png"/>
<icon kind="splash" href="splash.png"/>
</information>
<security>
<all-permissions/>
</security>
<application-desc main-class="com.userlytics.webstudio.WebStudio">
<argument>-id=06vkc2o</argument>
<argument>-httpUrl=https://freemium-wms-qa.userlytics.com:443</argument>
<argument>-rtmpUrl=rtmpe://freemium-wms-qa.userlytics.com:80/userlytics-wms</argument>
<argument>-captureSize=1280</argument>
<argument>-testUrl=http://goo.gl/6iW8b</argument>
<argument>-restBaseUrl=http://test-01.userlytics.com/sitetester/actions/</argument>
<argument>-taskDescription=hello test</argument>
<argument>-encoders=h264,svc1,svc2</argument>
<argument>-testDuration=10</argument>
<argument>-companyLogo=http://test-01.userlytics.com/sitetester/webstudio/studio_logo.png</argument>
<argument>-vidScaling=1</argument>
<argument>-redirectAfter=</argument>
<argument>-postQuestions=0</argument>
</application-desc>

<resources os="Mac OS X">
<j2se version="1.6+" initial-heap-size="64m" max-heap-size="512m" java-vm-args="-d32 -Dcom.apple.eawt.CocoaComponent.CompatibilityMode=false" />
<jar href="webstudio.jar" main="true"/>
<extension name="jxbrowser" href="jxbrowser.jnlp"/>
</resources>
<resources os="Windows">
<j2se version="1.6+" initial-heap-size="64m" max-heap-size="512m" />
<jar href="webstudio.jar" main="true"/>
<jar href="lib/x264-jna-win.jar"/>
<nativelib href="lib/x264-win.jar"/>
<extension name="jxbrowser" href="jxbrowser.jnlp"/>
</resources>
<component-desc />
</jnlp>
======================================================

again, this jnlp works perfectly (at least the app is launched) on any java6 box OR winxp/mac java7 box, but not win7 java7 box.

As I explained before, we are unable to start the application and we are a bit lost we have tried lots of different things and params on the jnlp to make it work on win7java7 without success.

We have parsed the jnlp with some validators like janela, with no major problems found (remember the jnlp works on the rest on platforms described anyway...).

The only "log" we manage to find its a temp file on the win7 box located on the c:\Users\user\AppData\Local\Temp\REG6218.tmp (the name change some times), with the following content:

======================================================
ParsingVersion to 1.6.4729
ParsingVersion to 1.7.0
ParsingVersion to 1.6.4729
ParsingVersion to 1.7.0
ParsingVersion to 1.6.4729
ParsingVersion to 1.7.0
check JRE registry to see if it's an corrupted webstart key
failed to recover webstart key when attempt to open ws key FAIL, error code[5]
ParsingVersion to 10.5.0
ParsingVersion to 1.7.0
ParsingVersion to 10.5.0
ParsingVersion to 10.0.0
ParsingVersion to 10.5.0
ParsingVersion to 1.7.0
ParsingVersion to 10.5.0
ParsingVersion to 10.0.0
ParsingVersion to 10.5.0
ParsingVersion to 1.7.0
ParsingVersion to 10.5.1
ParsingVersion to 1.7.0
ParsingVersion to 10.5.1
ParsingVersion to 10.0.0
ParsingVersion to 10.5.1
ParsingVersion to 1.7.0
ParsingVersion to 10.5.1
ParsingVersion to 10.0.0
ParsingVersion to 10.5.1
ParsingVersion to 1.7.0

Latest deploy version: 10.5.1
======================================================

If we try to launch this jnlp from the CMD console, something like:

c:\Program Files (x86)\Java\jre7\bin\javaws.exe file.jnlp

the same behaviour occurs, and the engine crashes.

If we make a double install of both java7 and java6 on the same machine, the app still crashes when launched from the browser (we notice the big red java7 webstart logo.. no java console, no java exception is thrown..) but with this double jre install if we select from the browser "Open with" and the explore to c:\Program Files (x86)\Java\jre6\bin\javaws.exe or if we execute the command in the windows console c:\Program Files (x86)\Java\jre6\bin\javaws.exe file.jnlp, it works!!!

I also forgot to mention, that all jars involved on our application are signed with a VeriSign certificate, which the browsers and computers detect correctly when running the "working" scenarios.

Anyone can suggest us how we could further debug this problem???

cheers!!

Edited by: 948760 on Jul 25, 2012 11:31 AM

Edited by: 948760 on Jul 25, 2012 11:32 AM

Edited by: 948760 on Jul 25, 2012 11:51 AM
  • 1. Re: Webstart engine crash on win7 java7, no logs, no console.
    951440 Newbie
    Currently Being Moderated
    Installed our app on Win7 to proof your issue with the following:


    java -version for install:
    java version "1.7.0"
    Java(TM) SE Runtime Environment (build 1.7.0-b147)
    Java HotSpot(TM) 64-Bit Server VM (build 21.0-b17, mixed mode)


    java -version to run app:
    Java Web Start 1.6.0_26
    Verwendung der JRE-Version 1.6.0_26-b03 Java HotSpot(TM) Client VM


    It works via batch -file and via command line:
    c:\Program Files\Java\jre7\bin\javaws.exe -import -association -shortcut file.jnlp



    You must reference jnlp:
    <jnlp spec="6.0+" codebase="http://test-01.userlytics.com/sitetester/webstudio" href="<path to jnlp>">



    you could also try to add something like

    <resources os="Windows" arch="x86">
    ...
    </resources>

    or

    <resources os="Windows" arch="x86_64">
    ...
    </resources>


    enable full tracing:
    type javaws -viewer on command line. got ot advanced --> debugging and activate everything.
    go to C:\Users\user\AppData\Sun\Java\Deployment\deployment.properties and add deployment.trace.level=all


    log-files in:
    C:\Users\user\AppData\Sun\Java\Deployment\Log
  • 2. Re: Webstart engine crash on win7 java7, no logs, no console.
    951763 Newbie
    Currently Being Moderated
    Hello Fabian!!

    THanks for the reply... I tried all the things you suggested me with out success...

    After a bit, I got the idea to start removing elements from the jnlp, to see if the behaviour I have changes. and I discovered that the CDATA element was causing us problems.


    After further research on the forums and bug database, I found it:

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


    the weird thing is this bug doesnt happen on java6 (or even java7 on xp or macosx)... anywaaays! Im happy to know what was wrong and now its fixed.


    Cheers!!
  • 3. Re: Webstart engine crash on win7 java7, no logs, no console.
    gimbal2 Guru
    Currently Being Moderated
    That bug report is really old and already closed so you should not be suffering from it. If you are having trouble with CDATA on Java 7 then it might be a regression and it needs to be reported.
  • 4. Re: Webstart engine crash on win7 java7, no logs, no console.
    951763 Newbie
    Currently Being Moderated
    I just reported it as a regression bug... :)

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points