Issue Details (XML | Word | Printable)

Key: GLASSFISH-19624
Type: Sub-task Sub-task
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Sanjeeb Sahoo
Reporter: Sanjeeb Sahoo
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.

NPE while starting GF on Knopflerfish 3.5.0 with existing cache

Created: 03/Feb/13 06:00 AM   Updated: 03/Feb/13 03:00 PM   Resolved: 03/Feb/13 03:00 PM
Component/s: OSGi
Affects Version/s: 4.0_b70
Fix Version/s: 4.0_b73

Time Tracking:
Not Specified

Status Whiteboard:

This is a bug with Knopflerfish as described in

The work around is to start with fresh cache every time which can be done by setting the following property in system or in file:

Participants: Sanjeeb Sahoo

 Description  « Hide

We are running into an issue like this when we start GF on Knopflerfish 3.5.0 with existing cache:

Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at com.sun.enterprise.glassfish.bootstrap.GlassFishMain.main(
at com.sun.enterprise.glassfish.bootstrap.ASMain.main(
Caused by: org.glassfish.embeddable.GlassFishException: java.lang.NullPointerException
at org.glassfish.embeddable.GlassFishRuntime._bootstrap(
at org.glassfish.embeddable.GlassFishRuntime.bootstrap(
at com.sun.enterprise.glassfish.bootstrap.GlassFishMain$Launcher.launch(
... 6 more
Caused by: java.lang.NullPointerException
at org.knopflerfish.framework.ServiceURLStreamHandlerFactory.getServiceHandler(
at org.knopflerfish.framework.ServiceURLStreamHandlerFactory.createURLStreamHandler(
at sun.misc.URLClassPath$JarLoader.<init>(
at sun.misc.URLClassPath$
at sun.misc.URLClassPath$
at Method)
at sun.misc.URLClassPath.getLoader(
at sun.misc.URLClassPath.getLoader(
at sun.misc.URLClassPath.getResource(
at Method)
at java.lang.ClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(

Sanjeeb Sahoo added a comment - 03/Feb/13 03:00 PM

Applied the work around:
r59062 | ss141213 | 2013-02-03 20:15:06 +0530 (Sun, 03 Feb 2013) | 9 lines