Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » NullPointerException in launcher.WebStartMain.findBundle()
NullPointerException in launcher.WebStartMain.findBundle() [message #97584] Wed, 19 September 2007 07:44 Go to next message
Augusto Sellhorn is currently offline Augusto SellhornFriend
Messages: 1
Registered: July 2009
Junior Member
This one has me stumped ...

I can start the Equinox runtime from JNLP, up to a point. I turn on debug,
try to turn on the console (it doesn't work), and this is what I get in a
log file whenever the runtime tries to start:

!SESSION Wed Sep 19 03:28:10 EDT 2007
------------------------------------------
!ENTRY org.eclipse.equinox.launcher 4 0 2007-09-19 03:28:10.740
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.NullPointerException
at
org.eclipse.equinox.launcher.WebStartMain.findBundle(WebStar tMain.java:124)
at
org.eclipse.equinox.launcher.WebStartMain.buildOSGiBundleLis t(WebStartMain.java:260)
at
org.eclipse.equinox.launcher.WebStartMain.beforeFwkInvocatio n(WebStartMain.java:86)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:446)
at
org.eclipse.equinox.launcher.WebStartMain.basicRun(WebStartM ain.java:79)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
at org.eclipse.equinox.launcher.WebStartMain.main(WebStartMain. java:57)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.javaws.Launcher.executeApplication(Unknown Source)
at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

I tried looking at the WebStartMain code, but I don't think the code I
have accessed matches the line numbers in this stack trace (I know because
line 260 should be calling findBundle, but it's not).

I have tried:
* Java 1.4, 1.5, 1.6 (using the 1.6 webstart launcher)
* a config.ini with specified osgi.bundles and an empty one too
* Default signed jars and self signed jars

Here is what my JNLP looks like

----

<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="file:/D:/dev/test/dist/" href="launch.jnlp">
<information>
<title>test</title>
<vendor>test</test>
<description>Calculator</description>
<description kind="short">test</description>
<homepage href=""/>
<icon href="test.png" kind="default"/>
<offline-allowed/>
</information>
<security>
<all-permissions/>
</security>

<resources>
<j2se version="1.5+"/>
<jar href="lib/org.eclipse.equinox.ds_1.0.0.v20070226.jar"
download="eager"/>
<!--jar
href="lib/org.eclipse.equinox.launcher_1.0.0.v20070606.jar" main="true"
download="eager"/-->
<jar href="lib/org.eclipse.equinox.launcher_1.0.100.v20070803.jar "
main="true" download="eager"/>
<jar href="lib/org.eclipse.osgi.services_3.1.200.v20070605.jar"
download="eager"/>
<jar href="lib/org.eclipse.osgi_3.3.0.v20070530.jar"
download="eager"/>
</resources>
<application-desc
main-class="org.eclipse.equinox.launcher.WebStartMain">
<argument>-debug</argument>
<argument>-noExit</argument>
<argument>-ignoreApp</argument>
<argument>-console</argument>
<argument>5555</argument>
</application-desc>
</jnlp>

-------------

Any ideas why I get the NPE, I was thinking it might be a missing
dependency. But I can't figure it out. Any help would be appreciated.

Thanks
Augusto
Re: NullPointerException in launcher.WebStartMain.findBundle() [message #97634 is a reply to message #97584] Wed, 19 September 2007 15:55 Go to previous message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
Line 124 from 3.3 corresponds to line 115 from HEAD.

It looks like you have a bundle listed in your osgi.bundles list that wasn't
found in the WebStartMain class loader (see discoverBundles)

I raised https://bugs.eclipse.org/bugs/show_bug.cgi?id=203999

-Andrew
Augusto wrote:
> This one has me stumped ...
>
> I can start the Equinox runtime from JNLP, up to a point. I turn on
> debug, try to turn on the console (it doesn't work), and this is what I
> get in a log file whenever the runtime tries to start:
>
> !SESSION Wed Sep 19 03:28:10 EDT 2007
> ------------------------------------------
> !ENTRY org.eclipse.equinox.launcher 4 0 2007-09-19 03:28:10.740
> !MESSAGE Exception launching the Eclipse Platform:
> !STACK
> java.lang.NullPointerException
> at
> org.eclipse.equinox.launcher.WebStartMain.findBundle(WebStar tMain.java:124)
> at
> org.eclipse.equinox.launcher.WebStartMain.buildOSGiBundleLis t(WebStartMain.java:260)
>
> at
> org.eclipse.equinox.launcher.WebStartMain.beforeFwkInvocatio n(WebStartMain.java:86)
>
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:446)
> at
> org.eclipse.equinox.launcher.WebStartMain.basicRun(WebStartM ain.java:79)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
> at org.eclipse.equinox.launcher.WebStartMain.main(WebStartMain. java:57)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at com.sun.javaws.Launcher.executeApplication(Unknown Source)
> at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
> at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
> at com.sun.javaws.Launcher.run(Unknown Source)
> at java.lang.Thread.run(Unknown Source)
>
> I tried looking at the WebStartMain code, but I don't think the code I
> have accessed matches the line numbers in this stack trace (I know
> because line 260 should be calling findBundle, but it's not).
>
> I have tried:
> * Java 1.4, 1.5, 1.6 (using the 1.6 webstart launcher)
> * a config.ini with specified osgi.bundles and an empty one too
> * Default signed jars and self signed jars
>
> Here is what my JNLP looks like
>
> ----
>
> <?xml version="1.0" encoding="UTF-8"?>
> <jnlp spec="1.0+" codebase="file:/D:/dev/test/dist/" href="launch.jnlp">
> <information>
> <title>test</title>
> <vendor>test</test>
> <description>Calculator</description>
> <description kind="short">test</description>
> <homepage href=""/>
> <icon href="test.png" kind="default"/>
> <offline-allowed/>
> </information>
> <security>
> <all-permissions/>
> </security>
> <resources>
> <j2se version="1.5+"/>
> <jar href="lib/org.eclipse.equinox.ds_1.0.0.v20070226.jar"
> download="eager"/>
> <!--jar
> href="lib/org.eclipse.equinox.launcher_1.0.0.v20070606.jar" main="true"
> download="eager"/-->
> <jar
> href="lib/org.eclipse.equinox.launcher_1.0.100.v20070803.jar "
> main="true" download="eager"/>
> <jar href="lib/org.eclipse.osgi.services_3.1.200.v20070605.jar"
> download="eager"/>
> <jar href="lib/org.eclipse.osgi_3.3.0.v20070530.jar"
> download="eager"/>
> </resources>
> <application-desc
> main-class="org.eclipse.equinox.launcher.WebStartMain">
> <argument>-debug</argument>
> <argument>-noExit</argument>
> <argument>-ignoreApp</argument>
> <argument>-console</argument>
> <argument>5555</argument>
> </application-desc>
> </jnlp>
>
> -------------
>
> Any ideas why I get the NPE, I was thinking it might be a missing
> dependency. But I can't figure it out. Any help would be appreciated.
>
> Thanks
> Augusto
>
>
Previous Topic:Synchronizing with OSGi SCR Work Queue Thread
Next Topic:jsp compile issue when running in tomcat6
Goto Forum:
  


Current Time: Thu Apr 25 15:01:38 GMT 2024

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

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

Back to the top