IBM Support

PI85587:java.lang.nullpointerexception when starting an eba containing an ejb

Download


Abstract

java.lang.nullpointerexception when starting an eba containing an ejb

Download Description

PI85587 resolves the following problem:

ERROR DESCRIPTION:
During startup, application fails with WSVR0067E: EJB container caught java.lang.NoClassDefFoundError:
com.ibm.websphere.models.extensions.helpers.impl.PMEEJBJarExtensionHelperImpl (initialization failure) with linked exception of
Caused by: java.lang.NullPointerException
at com.ibm.websphere.models.extensions.pmeext.commonext.serialization
.DocumentRootUtil.createDocumentRootEClass(DocumentRootUtil.java: 60)

LOCAL FIX:
none

PROBLEM SUMMARY

USERS AFFECTED:
WebSphere Application Server users of OSGi applications.

PROBLEM DESCRIPTION:
An EBA containing an EJB fails to start. A WSVR0067E message indicates NoClassDefFoundError caused by NullPointerException.

RECOMMENDATION:
None

When an Eclipse Modelling Framework (EMF) package is initialized, it is registered with the package registry associated with the thread's context class loader. When the EJB Container is first used it attempts to read its configuration data from the package registry. If the first application that uses the EJB Container is an OSGi application then the application startup will fail due to a failure while
accessing the EJB Container's configuration stored in the package registry.


The failure occurs because the context classloader set for the thread performing the start of the EJB Container for an OSGi application has been set to a classloader that is both different from, and not a parent of, the classloader that was used when the package was initially registered resulting in
the EJB Container being unable to locate its required configuration.

PROBLEM CONCLUSION:
The OSGi container was modified so that the correct classloader was set as the thread's context class loader while starting the EJB Container during OSGi application startup.

The fix for this APAR is currently targeted for inclusion in fix packs 8.5.5.13 and 9.0.0.6. Please refer to the Recommended Updates page for delivery information:
http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980

Prerequisites

None

Installation Instructions

Please review the readme.txt for detailed installation instructions.

[{"INLabel":"V85 Readme","INLang":"US English","INSize":"4475","INURL":"ftp://public.dhe.ibm.com/software/websphere/appserv/support/fixes/PI85587/8.5.5.12/readme.txt"}]
On
[{"DNLabel":"8.5.5.12-WS-WASProd-IFPI85587","DNDate":"10-19-2017","DNLang":"US English","DNSize":"264767","DNPlat":{"label":"AIX","code":"PF002"},"DNURL":"http://www.ibm.com/support/fixcentral/swg/selectFixes?parent=ibm%2FWebSphere&product=ibm/WebSphere/WebSphere+Application+Server&release=All&platform=All&function=fixId&fixids=8.5.5.12-WS-WASProd-IFPI85587&includeSupersedes=0","DNURL_FTP":null,"DDURL":null}]

Technical Support

Contact IBM Support using SR (http://www.ibm.com/software/support/probsub.html), visit the WebSphere Application Server support web site (http://www.ibm.com/software/webservers/appserv/was/support/), or contact 1-800-IBM-SERV (U.S. only).

[{"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"General","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF012","label":"IBM i"},{"code":"PF013","label":"Inspur K-UX"},{"code":"PF016","label":"Linux"},{"code":"PF022","label":"OS X"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"},{"code":"PF014","label":"iOS"},{"code":"PF035","label":"z\/OS"}],"Version":"8.5.5.12","Edition":"Base","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
15 June 2018

UID

swg24044192