Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » WebStart doesnt work in Java 6.0
WebStart doesnt work in Java 6.0 [message #461193] Sat, 06 January 2007 06:33 Go to next message
Eclipse UserFriend
Hello,

I have a WebStarted RCP app that works under 5.0, but under 6.0 I get exception:

java.lang.NullPointerException
at java.util.Hashtable.put(Unknown Source)
at org.eclipse.core.launcher.WebStartMain.basicRun(WebStartMain .java:58)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.WebStartMain.main(WebStartMain.jav a:40)

It seems searchFor method returns null here:

//Set the fwk location since the regular lookup would not find it
String fwkURL = searchFor(framework, null);
System.getProperties().put(PROP_FRAMEWORK, fwkURL);
super.basicRun(args);

My JNLP is:

<?xml version="1.0" encoding="UTF-8"?>
<jnlp
spec="1.0+"
codebase="file:///c:\temp\win32.win32.x86"
href="josephine.jnlp">

<information>
<title>Josephine</title>
<vendor>CEPAC Morava</vendor>
<homepage href="http://www.cepac.cz" />
<description>Výukový software pro deskriptivu</description>
<icon kind="splash" href="splash.jpg"/>
</information>

<security>
<all-permissions/>
</security>

<application-desc main-class="org.eclipse.core.launcher.WebStartMain">
<argument>-nosplash</argument>
</application-desc>

<resources>
<jar href="startup.jar"/>

<extension
name="cz.upol.jo_feature"
href="features/cz.upol.jo_feature_1.0.0.jnlp"/>

<!-- Information usually specified in the config.ini -->
<property
name="eclipse.product"
value="cz.upol.jo.product"/>
<property
name="osgi.bundles"
value="org.eclipse.equinox.common@2:start,org.eclipse.update.configurator@3:start,org.eclipse.core.runtime@start"/>
<property
name="osgi.bundles.defaultStartLevel"
value="4"/>

<property name="osgi.instance.area" value="@user.home/.josephine"/>
<property name="osgi.configuration.area" value="@user.home/.josephine"/>
</resources>

<!-- Indicate on a platform basis which JRE to use -->
<resources os="Windows">
<j2se version="1.5+"/>
</resources>

<resources os="Linux">
<j2se version="1.5+"/>
<property name="osgi.ws" value="gtk"/>
</resources>
</jnlp>

And the feature JNLP is:

<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="file:///c:\temp\win32.win32.x86">
<information>
<title>Jo_feature Feature</title>
<vendor>Cepac</vendor>
<offline-allowed/>
</information>
<security>
<all-permissions/>
</security>
<component-desc/>
<resources>
<j2se version="1.5.0+" />
</resources>
<resources>
<jar href="plugins/com.ibm.icu_3.4.4.1.jar"/>
<jar href="plugins/cz.upol.jo_1.0.1.jar"/>
<jar href="plugins/org.eclipse.core.commands_3.2.0.I20060605-1400.jar "/>
<jar href="plugins/org.eclipse.core.contenttype_3.2.0.v20060603.jar "/>
<jar href=" plugins/org.eclipse.core.expressions_3.2.0.v20060605-1400.ja r "/>
<jar href="plugins/org.eclipse.core.jobs_3.2.0.v20060603.jar"/>
<jar href="plugins/org.eclipse.core.runtime_3.2.0.v20060603.jar"/ >
<jar href=" plugins/org.eclipse.core.runtime.compatibility.auth_3.2.0.v2 0060601.jar "/>
<jar href="plugins/org.eclipse.equinox.common_3.2.0.v20060603.jar "/>
<jar href="plugins/org.eclipse.equinox.preferences_3.2.0.v20060601.jar "/>
<jar href="plugins/org.eclipse.equinox.registry_3.2.0.v20060601.jar "/>
<jar href="plugins/org.eclipse.help_3.2.0.v20060602.jar"/>
<jar href="plugins/org.eclipse.jface_3.2.0.I20060605-1400.jar"/ >
<jar href=" plugins/org.eclipse.jface.databinding_1.0.0.I20060605-1400.j ar "/>
<jar href="plugins/org.eclipse.opengl_0.5.0.jar"/>
<jar href="plugins/org.eclipse.osgi_3.2.0.v20060601.jar"/>
<jar href="plugins/org.eclipse.rcp_3.2.0.v20060605.jar"/>
<jar href="plugins/org.eclipse.swt_3.2.0.v3232o.jar"/>
<jar href="plugins/org.eclipse.ui_3.2.0.I20060605-1400.jar"/>
<jar href="plugins/org.eclipse.ui.views_3.2.0.I20060605-1400.jar "/>
<jar href="plugins/org.eclipse.ui.workbench_3.2.0.I20060605-1400.jar "/>
<jar href="plugins/org.eclipse.update.configurator_3.2.0.v20060605.jar "/>
<jar href="plugins/org.eclipse.update.core_3.2.0.v20060605.jar"/ >
<jar href="plugins/org.eclipse.update.scheduler_3.2.0.v20060605.jar "/>
<jar href="plugins/org.eclipse.update.ui_3.2.0.v20060605.jar"/>
<jar href="plugins/org.eclipse.opengl.selectbuffer_0.5.0.jar"/>
</resources>
<resources os="Windows" arch="x86">
<jar href=" plugins/org.eclipse.opengl.selectbuffer.win32.win32.x86_0.5. 0.jar "/>
<jar href="plugins/org.eclipse.opengl.win32.x86_0.5.0.jar"/>
<jar href="plugins/org.eclipse.swt.win32.win32.x86_3.2.0.v3232m.jar "/>
<jar href="plugins/org.eclipse.update.core.win32_3.2.0.v20060605.jar "/>
</resources>
<resources os="Linux" arch="x86">
<jar href="plugins/org.eclipse.swt.gtk.linux.x86_3.2.0.v3232m.jar "/>
<jar href="plugins/org.eclipse.update.core.linux_3.2.0.v20060605.jar "/>
<jar href="plugins/org.eclipse.opengl.linux.x86_0.5.0.jar"/>
<jar href="plugins/org.eclipse.opengl.selectbuffer.gtk.linux_0.5.0.jar "/>
</resources>
<resources>
<jar href="plugins/org.eclipse.ui.forms_3.2.0.v20060602.jar"/>
</resources>
</jnlp>

Anyone? :-(
Re: WebStart doesnt work in Java 6.0 [message #461195 is a reply to message #461193] Sat, 06 January 2007 07:26 Go to previous messageGo to next message
Eclipse UserFriend
This message has come up before. Search the EclipseZone forum for the hashtable put null message. I believe that it's a missing property such as osgi.framework that's not being said. That aside, I believe that there's also an open bug report at bugs.eclipse.org about JavaWebStart and Java 6 that you might want to search for at https://bugs.eclipse.org.

Alex.
Re: WebStart doesnt work in Java 6.0 [message #461201 is a reply to message #461195] Sat, 06 January 2007 10:54 Go to previous messageGo to next message
Eclipse UserFriend
Thanks. I have also filled a bugreport since NullPointerEx is not a good thing :-)
Re: WebStart doesnt work in Java 6.0 [message #461202 is a reply to message #461201] Sat, 06 January 2007 14:06 Go to previous messageGo to next message
Eclipse UserFriend
To save anyone else searching for this (or reporting it) it's been reported as https://bugs.eclipse.org/bugs/show_bug.cgi?id=162097 and has been fixed for the 3.3 stream, and will be available in 3.2.2 as well.

Alex.
Re: WebStart doesnt work in Java 6.0 [message #461210 is a reply to message #461202] Sat, 06 January 2007 15:27 Go to previous messageGo to next message
Eclipse UserFriend
Well I have donwloaded the "fixed start.jar" and it didnt help. I am still geting NPE... :-( What to do? Whats wrong?
Re: WebStart doesnt work in Java 6.0 [message #461220 is a reply to message #461210] Sun, 07 January 2007 04:37 Go to previous messageGo to next message
Eclipse UserFriend
I believe that Eclipse 3.2.2 is nearing release, so waiting for that might be the right thing to do. I'm not sure what else to advise in your case. You could also try running on 3.2.0; the problem (IIRC) was introduced with a renaming of the equinox bundle in 3.2.1.

Alex.
Re: WebStart doesnt work in Java 6.0 [message #461221 is a reply to message #461220] Sun, 07 January 2007 05:57 Go to previous messageGo to next message
Eclipse UserFriend
Ok thank you for your support and have a nice weekend. Btw what do you mean by "try running"? To use startup.jar from that release or to downgrade/upgrade all RCP plugins?
Re: WebStart doesnt work in Java 6.0 [message #461227 is a reply to message #461210] Sun, 07 January 2007 09:33 Go to previous messageGo to next message
Eclipse UserFriend
I also have tried 3.2.0 RCP with no luck. Still getting NPE with JRE 6.0.
Re: WebStart doesnt work in Java 6.0 [message #461228 is a reply to message #461227] Sun, 07 January 2007 09:46 Go to previous messageGo to next message
Eclipse UserFriend
Yes with WebStart from 1.5.0_10 it works. The provided patch probably doesnt work well with WebStart 1.6.

javawebstart.version=javaws-1.5.0_10
java.version=1.6.0
Re: WebStart doesnt work in Java 6.0 [message #461231 is a reply to message #461202] Sun, 07 January 2007 10:55 Go to previous messageGo to next message
Eclipse UserFriend
This bug is not the java 6.0 bug. It is about a problem when trying to find
the osgi bundle by parsing its filename.
The java 6 bug is: https://bugs.eclipse.org/bugs/show_bug.cgi?id=169691
I have attached a version of startup.jar containing the patch attached in
the bug.

PaScaL

"Alex Blewitt" <alex_blewitt@yahoo.com> wrote in message
news:1589686.1168110444513.JavaMail.root@cp1.javalobby.org...
> To save anyone else searching for this (or reporting it) it's been
> reported as https://bugs.eclipse.org/bugs/show_bug.cgi?id=162097 and has
> been fixed for the 3.3 stream, and will be available in 3.2.2 as well.
>
> Alex.
Re: WebStart doesnt work in Java 6.0 [message #461232 is a reply to message #461210] Sun, 07 January 2007 10:55 Go to previous message
Eclipse UserFriend
Please see bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=169691

"Lukas Zapletal" <lukas.zapletal@gmail.com> wrote in message
news:14962661.1168115263267.JavaMail.root@cp1.javalobby.org...
> Well I have donwloaded the "fixed start.jar" and it didnt help. I am still
> geting NPE... :-( What to do? Whats wrong?
Previous Topic:views are not initialized on startup
Next Topic:forms text control validation
Goto Forum:
  


Current Time: Fri Mar 21 20:13:14 EDT 2025

Powered by FUDForum. Page generated in 0.05648 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top