PQ70148: MIGRATION FROM 3.5 TO 4.0. NULLPOINTEREXCEPTION IS SEEN WHEN AN APP SERVER THAT IS CLONEED BUT NONE OF THE CHILD OBJECTS ARE. | |||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() APAR status Closed as program error. Error description The following null pointer exception is seen when migrating a co nfiguration from 3.5.x to 4.0.x that includes an app server that is cloned but none of the child objects under the app server ar e cloned (eg. containter, servlet-engine, web-app, session manag er..). java.lang.NullPointerException at com.ibm.websphere.migration.postupgrade.ApplicationServerCon fig.processChildrenForExport(ApplicationServerConfig.java:653)Local fix at com.ibm.websphere.migration.postupgrade.ApplicationServerConf at com.ibm.websphere.migration.postupgrade.NodeConfig.processCh at com.ibm.websphere.migration.postupgrade.NodeConfig.exportXML at com.ibm.websphere.migration.postupgrade.Restore.importDOM(Re at com.ibm.websphere.migration.postupgrade.Restore.importXMLFil at com.ibm.websphere.migration.postupgrade.Restore.doIt(Restore at com.ibm.websphere.migration.postupgrade.Restore.<init>(Resto at com.ibm.websphere.migration.postupgrade.WASPostUpgrade.doIt( at com.ibm.websphere.migration.postupgrade.WASPostUpgrade.<init at com.ibm.websphere.migration.postupgrade.WASPostUpgrade.main(W at java.lang.reflect.Method.invoke(Native Method) at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:158) java.lang.NullPointerExceptionProblem summary **************************************************************** * USERS AFFECTED: All users of WebSphere Application Server * * who migrate when their WebSphere 3.x * * configuration contain Application Servers * * that are cloned with no objects * * (Container, Servlet Engine, Web * * Applications, etc.) under the Application * * Server cloned. * **************************************************************** * PROBLEM DESCRIPTION: A NullPointerException is thrown when * * migrating an Application Server that is * * cloned with no objects under the * * Application Server cloned. * **************************************************************** * RECOMMENDATION: * **************************************************************** The migration code used the action attribute for the Servlet Engine object under an Application Server to determine if that object was cloned or not. If the action was "createclone" the Servlet Engine and all child objects were processed as objects of a cloned Application Server when migrating to WebSphere 4.x. If the action was not "createclone", the Servlet Engine and all child objects were processed as objects of a stand alone Application Server which resulted in a NullPointerException because the Application Server was processed as a cloned Application Server and not a stand alone Application Server.Problem conclusion Code was added to check the InstallApplicationServerClone list if the action on a Servlet Engine object was not "createclone" to determine if the Application Server that the Servlet Engine was under was a cloned Application Server or a stand alone Application Server. If the Application Server name was found in the list, the Servlet Engine and all child objects were processed as objects of a cloned Application Server. If the Application Server name was not found in the list, the Servlet Engine and all child objects were processed as objects of a stand alone Application Server.Temporary fix A test fix has been sent to Peter Kim to forward on to the custo mer.Comments
APAR is sysrouted FROM one or more of the following: APAR is sysrouted TO one or more of the following: Modules/Macros
SRLS
|
Document Information |
Product categories: Software > Application Servers >
Distributed Application & Web Servers > WebSphere Application
Server > General
Operating system(s):
Software version: 400
Software edition:
Reference #: PQ70148
IBM Group: Software Group
Modified date: Feb 19, 2003
(C) Copyright IBM Corporation 2000, 2006. All Rights Reserved.