BT747 won't start.

Bild von bodypilot

I had BT747 running fine...until now.

This is what I get in the terminal (Ubuntu 10.04):

 javaws BT747_J2SE_Latest_AutoUpdate.jnlp
net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: Could not initialize application.
    at net.sourceforge.jnlp.Launcher.createApplication(Launcher.java:644)
    at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:418)
    at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:725)
Caused by: net.sourceforge.jnlp.LaunchException: Fatal: Application Error: Cannot grant permissions to unsigned jars.
    at net.sourceforge.jnlp.runtime.JNLPClassLoader.setSecurity(JNLPClassLoader.java:216)
    at net.sourceforge.jnlp.runtime.JNLPClassLoader.<init>(JNLPClassLoader.java:170)
    at net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:249)
    at net.sourceforge.jnlp.Launcher.createApplication(Launcher.java:634)
    ... 2 more
Caused by:
net.sourceforge.jnlp.LaunchException: Fatal: Application Error: Cannot grant permissions to unsigned jars.
    at net.sourceforge.jnlp.runtime.JNLPClassLoader.setSecurity(JNLPClassLoader.java:216)
    at net.sourceforge.jnlp.runtime.JNLPClassLoader.<init>(JNLPClassLoader.java:170)
    at net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:249)
    at net.sourceforge.jnlp.Launcher.createApplication(Launcher.java:634)
    at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:418)
    at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:725)

Is there something I can do about this?

 

Regards

Same problem, I don't know

Same problem,

I don't know much about java web start, but this new error message is probably due to:

* Omair Majid <omajid@...> [2010-07-19 13:54]:
> Hi,
>
> The attached patch makes netx throw exceptions if JNLP applications
> have unsigned jars but request permissions. This causes netx fail
> early and loudly rather than assuming sandbox permissions and
> leading to transient failures. This is similar to what Sun/Oracle's
> Web Start implementation does.
>
> Any comments?
>

Looks good! Please commit.

Cheers,
Deepak

http://permalink.gmane.org/gmane.comp.java.openjdk.distro-packaging.devel/9676

I downloaded the zip and

I downloaded the zip and started the program in the unzip folder:

./run_j2se.s

It worked fine.

Bild von mdeweerd

If the issue is a jar not

If the issue is a jar not being signed this can be solved by finding out which jar it is.  In principle they are all signed.  I can check that later, but I guess that somewhere in the messages there must be the anwser.

Bild von mdeweerd

I was able to reproduce this

I was able to reproduce this in a virtualbox Ubuntu setup (Latest update, so must be 10.04.1).

After a long search, the result is pretty 'strange' and surely a bug in the openjdk webstart system.

For 'reuse', the main 'jnlp' file includes other 'jnlp' files.  It turns out that due to a mistake, the http://soft.bt747.org/BT747_J2SE_Latest.jnlp still refered to the RXTX native jars that were also referenced in the included 'rxtx.jnlp' file.  Strangely enough, that works.

In the http://soft.bt747.org/BT747_J2SE_Latest_RXTX2.2_Install.jnlp there is no repeat, and strangely enough that does not work.  I've made some trials and changing the main jnlp to refer to the native library, it does work.
But in both cases, the same jar files are fetched by the webstart, they are all signed (I checked that explicitally) and hence there is no reason to not accept them.

My conclusion is that the openjdk webstart has an issue with the validation of signature of jars referenced by (some?) included jnlp files.

 

I've hacked two rxtx2.2 jnlp files to work around this bug.

Bild von bodypilot

Hi, sorry for being so late

Hi,

sorry for being so late in responding, I've been away on holiday. In fact, my first post on this subject was on the last evening before departure when I decided to check everything still worked, I'm glad I did! I used an installed version (BT747 V2.X.1772) during my holiday.

 

But back to the issue at hand: it still doesn't work for me.

 

I downloaded a new BT747_J2SE_Latest_AutoUpdate.jnlp (just to be sure). When running this it downloads new stuff (it probably downloads the V2.X.1781 version), shows the splaschscreen and the quits with the following message:

username@ubuntu-laptop:~$ javaws /home/username/Documenten/Navigatie/Software/BT747/BT747_J2SE_Latest_AutoUpdate.jnlp

net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: Could not initialize application.

at net.sourceforge.jnlp.Launcher.createApplication(Launcher.java:644)

at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:418)

at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:725)

Caused by: net.sourceforge.jnlp.LaunchException: Fatal: Application Error: Cannot grant permissions to unsigned jars.

at net.sourceforge.jnlp.runtime.JNLPClassLoader.setSecurity(JNLPClassLoader.java:216)

at net.sourceforge.jnlp.runtime.JNLPClassLoader.<init>(JNLPClassLoader.java:170)

at net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:249)

at net.sourceforge.jnlp.Launcher.createApplication(Launcher.java:634)

... 2 more

Caused by:

net.sourceforge.jnlp.LaunchException: Fatal: Application Error: Cannot grant permissions to unsigned jars.

at net.sourceforge.jnlp.runtime.JNLPClassLoader.setSecurity(JNLPClassLoader.java:216)

at net.sourceforge.jnlp.runtime.JNLPClassLoader.<init>(JNLPClassLoader.java:170)

at net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:249)

at net.sourceforge.jnlp.Launcher.createApplication(Launcher.java:634)

at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:418)http://soft.bt747.org/BT747_J2SE_Latest_AutoUpdate.jnlp

at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:725)

 

Running (by clicking the link on the website)  http://soft.bt747.org/BT747_J2SE_Latest.jnlp DOES work. Running http://soft.bt747.org/BT747_J2SE_Latest_AutoUpdate.jnlp does NOT work.

Let me know if you need more info for debugging this.

BTW. Do you know you can use a Ubunut LiveCD? Might save you time compared to using a virtualbox.

Bild von mdeweerd

Hi For clarity, I only

Hi

For clarity, I only "hacked" http://soft.bt747.org/BT747_J2SE_Latest_rxtx2_2p2.jnlp  and http://soft.bt747.org/BT747_J2SE_Latest_RXTX2.2_Install.jnlp .
According to me the issue is related to a bug in the Ubuntu Java Web Starter following a code change as hinted by a link in one of the previous posts.

I know about the liveCD and I also have a 'Wubi' installation.  Virtualbox is running fast on my machine.  Because memory is usually a bottleneck for me, I installed 8 GB of it and I can easily allocate a gigabyte to a Virtualbox machine.  I did not measure - but there is barely a difference running that 'natively'.
Using the liveCD would actually take more time as I need to reboot my machine to get in Ubuntu - I would not have my development environment in that case. 

I am getting the exact same

I am getting the exact same error trying to run javaws BT747_J2SE_Latest_AutoUpdate.jnlp.

Not only that but the install programisn't working for me under Ubuntu 11.04 which is why I downloaded it to use it directly.

Bild von mdeweerd

Hi John Can you try one of

Hi John

Can you try one of the two links that I mention above.

BT747 does not have an Installer other than the Javaws install system (i.e., using the web link).  Links to the BT747 may not be created due to security settings and also becvause the latest Ubuntu is no longer using Sun/Oracle's java as the default setup.

It is possible to install the Sun/Oracle java on Ubunto 11.04 with some hack.   Check out: installing-bt747-ubuntu-1104-natty-narwhal-installing-sun-java6