Flash (Alert)
Abstract
After WebSphere Application Server V7.0 Fix Pack 21 (V7.0.0.21) is installed, a problem may occur for any application that uses a data source to get a database connection or a J2C connection factory to get a connection to a messaging system or enterprise information system. A NullPointerException may be thrown when WebSphere Application Server attempts to bind the data source or connection factory to the JNDI namespace during the startup of the application server. Then, because the data source or connection factory was not bound to the namespace, a NameNotFoundException occurs when the application attempts to perform a JNDI lookup. This is due to a change that was made for APAR PM42263, which is included in V7.0.0.21.
Content
Versions affected:
Version 7.0.0.21 only.
Problem Description:
WebSphere Application Server V7.0.0.21 includes the fix for APAR PM42263. A change introduced by the fix for this APAR may cause a java.lang.NullPointerException to be thrown when WebSphere Application Server attempts to bind the data source or connection factory to the JNDI namespace during the startup of the application server. Then, because the data source or connection factory was not bound to the namespace, a javax.naming.NameNotFoundException occurs when the application attempts to perform a JNDI lookup.of the data source or connection factory.
The NullPointerException will appear in the SystemOut.log during the application server startup with a Java stack trace similar to the following:
java.lang.NullPointerException
at com.ibm.ws.runtime.component.binder.J2CBinder.addConnectionPoolProperties(J2CBinder.java:478)
at com.ibm.ws.runtime.component.binder.J2CConnectionFactoryBinder.getBindingObject(J2CConnectionFactoryBinder.java:294)
at com.ibm.ws.runtime.component.ResourceMgrImpl.bind(ResourceMgrImpl.java:506)
at com.ibm.ws.runtime.component.ResourceMgrImpl.installResourceProvider(ResourceMgrImpl.java:1528)
at com.ibm.ws.runtime.component.ResourceMgrImpl.installResource(ResourceMgrImpl.java:1375)
at com.ibm.ws.runtime.component.ResourceMgrImpl.installResources(ResourceMgrImpl.java:1316)
at com.ibm.ws.runtime.component.ResourceMgrImpl.loadResources(ResourceMgrImpl.java:1060)
at com.ibm.ws.runtime.component.ResourceMgrImpl.start(ResourceMgrImpl.java:740)
...
The NameNotFoundException will also appear in the SystemOut.log after the application attempts to perform the JNDI lookup. The Java stack trace will be similar to the following:
javax.naming.NameNotFoundException: Context: myCell/clusters/myCluster, name: jdbc/myDS: First component in name myDS not found. [Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0]]
at com.ibm.ws.naming.util.Helpers.processSerializedObjectForLookupExt(Helpers.java:1013)
at com.ibm.ws.naming.urlbase.UrlContextHelper.processBoundObjectForLookup(UrlContextHelper.java:179)
at com.ibm.ws.naming.java.javaURLContextRoot.processBoundObjectForLookup(javaURLContextRoot.java:408)
...
Solutions:
Applying Interim Fix APAR PM57566, which replaces the original APAR PM42263 (as specified below), or a Fix Pack containing the APAR (as specified below), resolves this issue.
For IBM WebSphere Application Server for Distributed:
For V7.0.0.21:
- Apply Interim Fix APAR PM57566 <link to be added after the i-fix is published>
--OR-- - Apply Fix Pack 23 or later
For IBM WebSphere Application Server for z/OS:
For V7.0.0.21:
- Contact IBM support and request a ++APAR for this problem (PM57566) on z/OS
--OR-- - Apply Fix Pack 23 or later
For IBM WebSphere Application Server for IBM i:
For V7.0.0.21:
- Apply Interim Fix APAR PM57566 <link to be added after the i-fix is published>
--OR-- - Apply the WebSphere Application Server PTF group which includes Fix Pack 19, or later, when available (V7.0.0.19 targeted to be available in September 2011)
Additional documentation:
For additional details and information on WebSphere Application Server product updates:
- For Distributed, see Recommended fixes for WebSphere Application Server.
- For i5/OS, see WebSphere Application Server for i5/OS.
- For z/OS, see WebSphere Application Server for z/OS.
| Segment | Product | Component | Platform | Version | Edition |
|---|---|---|---|---|---|
| Application Servers | WebSphere Application Server for z/OS | DB Connections/Connection Pooling | z/OS | 7.0.0.19 |
Rate this page:
Copyright and trademark information
IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.