IBM Support

PK48446; 6.0.2.19: Nullpointer exception in cscope code when starting server

Download


Abstract

A null pointer exception is thrown from cscope code when attempting to perform recovery on a server that is started in RecoveryOnly mode.

Download Description

PK48446 resolves the following problem:

ERROR DESCRIPTION:
Nullpointer exception in cscope code when starting server in recovery mode after a crash.

Here is an example of the exception when this takes place

[7/3/07 18:45:48:985 GMT+01:00] 0000000a RecoveryManag E
CSCP0014E: During Compensation Scope recovery a recreation attempt failed. The cause of the failure was java.lang.
NullPointerException
at com.ibm.ws.cscope.RecoveryManager.processRecoveredData
(RecoveryManager.java:538)
at com.ibm.ws.cscope.RecoveryManager.setServerStatus
(RecoveryManager.java:405)
at com.ibm.ws.cscope.CScopeRecoveryAgent.setServerStatus
(CScopeRecoveryAgent.java:295)
at com.ibm.ws.cscope.CScopeComponentImpl.propertyChange
(CScopeComponentImpl.java:586)
at java.beans.PropertyChangeSupport.firePropertyChange
(PropertyChangeSupport.java:330)
at java.beans.PropertyChangeSupport.firePropertyChange
(PropertyChangeSupport.java:257)
at com.ibm.ws.runtime.component.ComponentImpl.setState
(ComponentImpl.java:401)
at com.ibm.ws.runtime.component.ComponentImpl.setStartState
(ComponentImpl.java:421)
at com.ibm.ws.runtime.component.ServerImpl.start
(ServerImpl.java:415)
at com.ibm.ws.runtime.WsServerImpl.bootServerContainer
(WsServerImpl.java:187)
at com.ibm.ws.runtime.WsServerImpl.start(WsServerImpl.java:133)
at com.ibm.ws.runtime.WsServerImpl.main(WsServerImpl.java:387)
at com.ibm.ws.runtime.WsServer.main(WsServer.java:53)
at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.ibm.ws.bootstrap.WSLauncher.run(WSLauncher.java:219)
at java.lang.Thread.run(Thread.java:534)


LOCAL FIX:
N/A

PROBLEM SUMMARY

USERS AFFECTED:
All IBM® WebSphere® Application Server versions 6.0.2 and 6.1 users of the
Compensation Service.

PROBLEM DESCRIPTION:
A null pointer exception is thrown from cscope code when attempting to perform recovery on a server that is started in RecoveryOnly mode.

RECOMMENDATION:
None

As part of cscope recovery, the recovery service attempts to drive all recovered compensation's to completion after recording transaction outcomes in the cscopes that require recovery.
When a server is started in RecoveryOnly mode, only those services required by the application server for recovery processing are started. This precludes starting the Activity Service, and any applications. The null pointer exception was thrown because the recovering cscope was attempting to reference the non-started Activity Service.

Here is an example of the exception when this takes place.

[7/3/07 18:45:48:985 GMT+01:00] 0000000a RecoveryManag E
CSCP0014E: During Compensation Scope recovery a recreation attempt failed. The cause of the failure was java.lang.
NullPointerException
at com.ibm.ws.cscope.RecoveryManager.processRecoveredData
(RecoveryManager.java:538)
at com.ibm.ws.cscope.RecoveryManager.setServerStatus
(RecoveryManager.java:405)
at com.ibm.ws.cscope.CScopeRecoveryAgent.setServerStatus
(CScopeRecoveryAgent.java:295)
at com.ibm.ws.cscope.CScopeComponentImpl.propertyChange
(CScopeComponentImpl.java:586)
at java.beans.PropertyChangeSupport.firePropertyChange
(PropertyChangeSupport.java:330)
at java.beans.PropertyChangeSupport.firePropertyChange
(PropertyChangeSupport.java:257)
at com.ibm.ws.runtime.component.ComponentImpl.setState
(ComponentImpl.java:401)
at com.ibm.ws.runtime.component.ComponentImpl.setStartState
(ComponentImpl.java:421)
at com.ibm.ws.runtime.component.ServerImpl.start
(ServerImpl.java:415)
at com.ibm.ws.runtime.WsServerImpl.bootServerContainer
(WsServerImpl.java:187)
at com.ibm.ws.runtime.WsServerImpl.start(WsServerImpl.java:133)
at com.ibm.ws.runtime.WsServerImpl.main(WsServerImpl.java:387)
at com.ibm.ws.runtime.WsServer.main(WsServer.java:53)
at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.ibm.ws.bootstrap.WSLauncher.run(WSLauncher.java:219)
at java.lang.Thread.run(Thread.java:534)

PROBLEM CONCLUSION:
If the server is started in RecoveryOnly mode, transaction outcomes are recorded (as normal) in cscopes that require recovery, but no attempt is made to drive the outstanding compensation's to completion. This prevents the recovering cscope from attempting to reference the non-existent Activity Service.

The fix for this APAR is currently targeted for inclusion in fix packs 6.0.2.23 and 6.1.0.13.

Please refer to the Recommended Fixes page for delivery information:
http://www.ibm.com/support/docview.wss?uid=swg27004980

Prerequisites

Please download the UpdateInstaller below to install this fix.

[{"PRLabel":"UpdateInstaller","PRLang":"US English","PRSize":"7250000","PRPlat":{"label":"AIX","code":"PF002"},"PRURL":"http://www.ibm.com/support/docview.wss?rs=180&uid=swg21205991"}]

Installation Instructions

Please review the readme.txt for detailed installation instructions.

[{"INLabel":"Readme","INLang":"US English","INSize":"11698","INURL":"ftp://public.dhe.ibm.com/software/websphere/appserv/support/fixes/PK48446/readme.txt"}]

Download Package

Off
[{"DNLabel":"6.0.2.19-WS-WAS-IFPK48446","DNDate":"07-31-2007","DNLang":"US English","DNSize":"18000","DNPlat":{"label":"AIX","code":"PF002"},"DNURL":"ftp://public.dhe.ibm.com/software/websphere/appserv/support/fixes/PK48446/6.0.2.19-WS-WAS-IFPK48446.pak","DNURL_FTP":null,"DDURL":"http://public.dhe.ibm.com:7618;sw_websphere;appserv/support/fixes/PK48446/6.0.2.19-WS-WAS-IFPK48446.pak"}]

Technical Support

Contact IBM Support using Service Request, visit the WebSphere Application Server Support Web site, 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":"Java Transaction Service (JTS)","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF012","label":"IBM i"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"6.0.2.19","Edition":"Base","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

More support for:
WebSphere Application Server

Software version:
6.0.2.19

Operating system(s):
AIX, HP-UX, IBM i, Linux, Solaris, Windows

Document number:
574273

Modified date:
20 July 2018

UID

swg24016539

Manage My Notification Subscriptions