Fix (APAR): JR27012 Status: Fix Release: 6.0.2.1 Operating System: AIX,HP-UX,Linux,Solaris,Windows Supersedes Fixes: CMVC Defect: xxxxxx Byte size of APAR: 7840 Date: 2007-07-09 Abstract: If a response form a web service includes an Array of XSD:anyy type, NullPointerException is being thrown for the response object in RPCEncodedMediator.java Description/symptom of problem: JR27012 resolves the following problem: ERROR DESCRIPTION: A Web service import creates a Null Pointer Exception when the response message contains an xsd:any type and the following error is thrown [7/2/07 18:42:00:359 CEST] 00000081 ExceptionUtil E CNTR0020E: EJB threw an unexpected (non-declared) exception during invocation of method "transactionNotSupportedActivitySessionNotSupported" on bean "BeanId(MyModuleApp#MyModuleEJB.jar#Module, null)". Exception data: java.lang.NullPointerException at com.ibm.ws.sca.internal.webservice.mediator.RPCEncodedMediator.r eadRPCStruct(RPCEncodedMediator.java:1000) at com.ibm.ws.sca.internal.webservice.mediator.RPCEncodedMediator.r eadRPCDataItem(RPCEncodedMediator.java:1088) at com.ibm.ws.sca.internal.webservice.mediator.RPCEncodedMediator.r eadRPCArray(RPCEncodedMediator.java:954) at com.ibm.ws.sca.internal.webservice.mediator.RPCEncodedMediator.r eadRPCDataItem(RPCEncodedMediator.java:1080) at com.ibm.ws.sca.internal.webservice.mediator.RPCEncodedMediator.r eadRPCStruct(RPCEncodedMediator.java:1021) at com.ibm.ws.sca.internal.webservice.mediator.RPCEncodedMediator.r eadRPCDataItem(RPCEncodedMediator.java:1088) at com.ibm.ws.sca.internal.webservice.mediator.RPCEncodedMediator.r eadDataObject(RPCEncodedMediator.java:902) at com.ibm.ws.sca.internal.webservice.mediator.DocumentMediator.des erialize(DocumentMediator.java:581) at com.ibm.ws.sca.internal.webservice.mediator.DocumentMediator.des erialize(DocumentMediator.java:537) at com.ibm.ws.sca.internal.webservice.mediator.DocumentMediator.des erialize(DocumentMediator.java:464) at com.ibm.ws.sca.internal.webservice.mediator.RPCEncodedMediator.d eserialize(RPCEncodedMediator.java:852) at com.ibm.ws.sca.internal.webservice.mediator.RPCEncodedMediator.d eserialize(RPCEncodedMediator.java:769) at com.ibm.ws.sca.internal.webservice.mediator.DocumentMediator.des erialize(DocumentMediator.java:372) at com.ibm.ws.sca.internal.webservice.util.WebServiceLazyParsingUti l.parseBody(WebServiceLazyParsingUtil.java:362) at com.ibm.ws.sca.internal.webservice.util.WebServiceLazyParsingUti l.setupLazyScaMessage(WebServiceLazyParsingUtil.java:415) at com.ibm.wsspi.sca.webservice.jaxrpc.ServiceImportHandler.handleR esponse(ServiceImportHandler.java:262) at com.ibm.ws.webservices.engine.handlers.jaxrpc.HandlerProxy.handl eResponse(HandlerProxy.java:152) at com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXRPCHandlerChain .oneHandleResponse(JAXRPCHandlerChain.java:697) at com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXRPCHandlerChain .handleResponse(JAXRPCHandlerChain.java:673) at com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXRPCHandlerChain .handleResponse(JAXRPCHandlerChain.java:666) at com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXRPCHandler.invo keClientResponseHandler(JAXRPCHandler.java:530) at com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXRPCSOAPHandler. invokeClientResponseHandler(JAXRPCSOAPHandler.java:192) at com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXRPCHandler$4.in voke(JAXRPCHandler.java:476) at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHa ndlerWrapper.java:329) at com.ibm.ws.webservices.engine.WebServicesEngine.invoke(WebServic esEngine.java:279) at com.ibm.ws.webservices.engine.client.Connection.invokeEngine(Con nection.java:798) at com.ibm.ws.webservices.engine.client.Connection.invoke(Connectio n.java:693) at com.ibm.ws.webservices.engine.client.Connection.invoke(Connectio n.java:644) at com.ibm.ws.webservices.engine.client.Connection.invoke(Connectio n.java:472) at com.ibm.ws.webservices.engine.client.Call.invoke(Call.java:1476) at com.ibm.ws.webservices.multiprotocol.AgnosticCall.invoke(Agnosti cCall.java:170) at com.ibm.ws.sca.internal.webservice.handler.PortHandler$Operation Handler.invoke(PortHandler.java:193) at com.ibm.ws.sca.internal.webservice.handler.PortHandler$Operation Handler.access$1200(PortHandler.java:106) at com.ibm.ws.sca.internal.webservice.handler.PortHandler.processMe ssage(PortHandler.java:584) at com.ibm.ws.sca.internal.webservice.handler.WebServiceImportHandl er.processMessage(WebServiceImportHandler.java:282) at com.ibm.ws.sca.internal.message.impl.MessageDispatcherImpl.proce ssMessageWithPCI(MessageDispatcherImpl.java:711) at com.ibm.ws.sca.internal.message.impl.MessageDispatcherImpl.proce ssMessage(MessageDispatcherImpl.java:1148) at com.ibm.ws.sca.internal.message.impl.ManagedMessageImpl.process( ManagedMessageImpl.java:586) at com.ibm.wsspi.sca.ejb.module.impl.ModuleSessionBean.processUOWMe ssage(ModuleSessionBean.java:336) at com.ibm.wsspi.sca.ejb.module.impl.ModuleSessionBean.transactionN otSupportedActivitySessionNotSupported(ModuleSessionBean.java:28 5) at com.ibm.wsspi.sca.ejb.module.EJSLocalStatelessModule_43132892.tr ansactionNotSupportedActivitySessionNotSupported LOCAL FIX: n/a PROBLEM SUMMARY USERS AFFECTED: Websphere Process Server v6.0.2.1 users using array of XSD:any type as a response in web service Import. PROBLEM DESCRIPTION: If a response form a web service includes an Array of XSD:anyy type, NullPointerException is being thrown for the response object in RPCEncodedMediator.java RECOMMENDATION: None SOAP body did not include information for array type. therefore nullPointerException was thrown when SCA was trying to retrieve this information form SOAP BODY PROBLEM CONCLUSION: A class check was added to SCA code while initializing SOAP Body from WAS webservices engine. Directions to apply fix: Before applying the iFix ensure that WebSphere Process Server 6.0.1 is installed on the system. Also download and follow Update Installer installation instructions. The Update Installer can be downloaded from the following link: http://www.ibm.com/support/docview.wss?rs=180&uid=swg21205991 1) Copy the pak file to the directory maintenance in the UpdateInstaller directory 2) Shutdown WebSphere Process Server. It is important that you perform a controlled and complete shutdown of the server to ensure that all transactions have completed, before installing the fix. 3) Run the UpdateInstaller and follow the prompts. 4) Restart WebSphere Directions to remove fix: NOTE: FIXES MUST BE REMOVED IN THE REVERSE ORDER IN WHICH THEY WERE APPLIED. DO NOT REMOVE A FIX UNLESS ALL FIXES APPLIED AFTER IT HAVE FIRST BEEN REMOVED. YOU MAY REAPPLY ANY REMOVED FIX. Example: If your system has fix1, fix2, and fix3 applied in that order and fix2 is to be removed, fix3 must be removed first, then fix2 may be removed 1) Shutdown WebSphere. It is important that you perform a controlled and complete shutdown of the server to ensure that all transactions have completed, before installing the fix. 2) Follow the Fix instructions that are packaged with the Fix Installer on how to uninstall and reinstall the Fix. 3) Restart WebSphere Directions to re-apply fix: 1) Shutdown WebSphere. It is important that you perform a controlled and complete shutdown of the server to ensure that all transactions have completed, before installing the fix. 2) Run the UpdateInstaller and follow the instructions. The Update Installer can be downloaded from the following link: http://www.ibm.com/support/docview.wss?rs=180&uid=swg21205991 3) Restart WebSphere Process Server Additional Information: