IBM Support

PI66635: NULLPOINTEREXCEPTION DURING OSGI LOADING PROCESS

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • NullPointerException during OSGi loading process.
    
    Augmentation of WebSphere profile with 1st feature pack went ok,
    but the 2nd one resulted in this exception:
    
    org.eclipse.core.runtime.CoreException: Plug-in com.ibm.ws.runti
    me was unable to load class com.ibm.wsspi.profile.WSProfileCLI.
    at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.
      throwException(RegistryStrategyOSGI.java:165)
    at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.
      createExecutableExtension(RegistryStrategyOSGI.java:149)
    at org.eclipse.core.internal.registry.ExtensionRegistry.
      createExecutableExtension(ExtensionRegistry.java:770)
    at org.eclipse.core.internal.registry.ConfigurationElement.
      createExecutableExtension(ConfigurationElement.java:243)
    ...
    org.eclipse.core.runtime.CoreException[1]:
    java.lang.NullPointerException
    at org.eclipse.osgi.framework.internal.core.BundleLoader.
      getLoaderProxy(BundleLoader.java:240)
    at org.eclipse.osgi.framework.internal.core.BundleLoader.
      createExportPackageSource(BundleLoader.java:212)
    at org.eclipse.osgi.framework.internal.core.BundleLoader.
      addImportedPackages(BundleLoader.java:203)
    at org.eclipse.osgi.framework.internal.core.BundleLoader.
      findImportedSource(BundleLoader.java:868)
    at org.eclipse.osgi.framework.internal.core.BundleLoader.
      findClass(BundleLoader.java:371)
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  WebSphere Application Server users of       *
    *                  Profile Augmentation.                       *
    ****************************************************************
    * PROBLEM DESCRIPTION: A NullPointerException is thrown by     *
    *                      OSGi while augmenting a profile.        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    While augmenting a profile the OSGi framework throws a
    CoreException, which contains a causal NullPointerException
    like the one shown here.
    org.eclipse.core.runtime.CoreException: Plug-in
    com.ibm.ws.runti
    me was unable to load class com.ibm.wsspi.profile.WSProfileCLI.
    at
    org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.
    throwException(RegistryStrategyOSGI.java:165)
    at
    org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.
    createExecutableExtension(RegistryStrategyOSGI.java:149)
    at org.eclipse.core.internal.registry.ExtensionRegistry.
    createExecutableExtension(ExtensionRegistry.java:770)
    at org.eclipse.core.internal.registry.ConfigurationElement.
    createExecutableExtension(ConfigurationElement.java:243)
    ...
    org.eclipse.core.runtime.CoreException[1]:
    java.lang.NullPointerException
    at org.eclipse.osgi.framework.internal.core.BundleLoader.
    getLoaderProxy(BundleLoader.java:240)
    at org.eclipse.osgi.framework.internal.core.BundleLoader.
    createExportPackageSource(BundleLoader.java:212)
    at org.eclipse.osgi.framework.internal.core.BundleLoader.
    addImportedPackages(BundleLoader.java:203)
    at org.eclipse.osgi.framework.internal.core.BundleLoader.
    findImportedSource(BundleLoader.java:868)
    at org.eclipse.osgi.framework.internal.core.BundleLoader.
    findClass(BundleLoader.java:371)
    The NullPointerException occurs when OSGi attempts to resolve
    a bundle fragment, where the fragment's host bundle is not yet
    resolved. The problem was fixed under IBM Eclipse SDK (IES)
    bugzilla bug 188199.
    https://bugs.eclipse.org/bugs/show_bug.cgi?id=188199
    APAR PI66635 applies the fix for IES bug 188199 to the OSGi
    implementation provided in WebSphere Application Server
    version 7.0.
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PI66635

  • Reported component name

    JPA OSGI FEATUR

  • Reported component ID

    5655N0257

  • Reported release

    700

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2016-07-28

  • Closed date

    2018-01-29

  • Last modified date

    2018-02-08

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    JPA OSGI FEATUR

  • Fixed component ID

    5655N0257

Applicable component levels

  • R700 PSY

       UP



Document information

More support for: WebSphere Application Server V7 Feature Pack for OSGi Applications and Java Persistence API 2.0
General

Software version: 1.0

Reference #: PI66635

Modified date: 08 February 2018