Fix (APAR): JR28507 Status: Fix Release: 6.0.2.3 Operating System: AIX,HP-UX,Linux,Solaris,Windows Supersedes Fixes: CMVC Defect: xxxxxx Byte size of APAR: 11537 Date: 2008-03-07 Abstract: Artifact Resolver throws NullPointerException when deploy applications including BPEL process. Description/symptom of problem: JR28507 resolves the following problem: ERROR DESCRIPTION: During deployment when WSDL files are merged and one of the WSDL files has no target namespace in the 'types' section, an NPE is seen in the FFDCs and deployment failed with a BPEL validation error. This was occuring on WebSphere Process Server 6.0.2.3 LOCAL FIX: add a target namespace to the wsdl lacking one. L3 provided test fix that is working well PROBLEM SUMMARY USERS AFFECTED: WebSphere Process Server 6.0.2 users who deploy applications including BPEL process. PROBLEM DESCRIPTION: Artifact Resolver throws NullPointerException when deploy applications including BPEL process. RECOMMENDATION: None The issue happened when Artifact Resolver merges two WSDL files having same target namespaces. During the merge of WSDL files, Artifact Resolver will merge 'types' section in the WSDL files. If the target namespace is null in the schema of 'types' section, Artifact Resolver will throw NullPointerException: java.lang.NullPointerException at com.ibm.ws.ar.WSDLMerger.mergeTypes(WSDLMerger.java:226) at com.ibm.ws.ar.WSDLMerger.merge(WSDLMerger.java:129) at com.ibm.ws.ar.WSDLArtifactResourceImpl.mergeDefinitions(WSDL ArtifactResourceImpl.java:239) at com.ibm.ws.ar.WSDLArtifactResourceImpl.doLoad(WSDLArtifactRe sourceImpl.java:130) at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:884) at com.ibm.etools.wsdl.impl.ImportImpl.resolve(ImportImpl.java: 500) at com.ibm.etools.wsdl.impl.ImportImpl.importDefinitionOrSchema (ImportImpl.java:469) at com.ibm.etools.wsdl.impl.DefinitionImpl.getImportedDefinitio ns(DefinitionImpl.java:2020) at com.ibm.etools.wsdl.impl.DefinitionImpl.resolveWSDLElement(D efinitionImpl.java:1642) at com.ibm.etools.wsdl.impl.DefinitionImpl.resolveWSDLElement(D efinitionImpl.java:1578) at com.ibm.etools.wsdl.impl.DefinitionImpl.getPortType(Definiti onImpl.java:1005) at com.ibm.wbit.bpel.services.partnerlinktype.impl.RolePortType Impl.reconcileReferences(RolePortTypeImpl.java:264) at com.ibm.etools.wsdl.impl.WSDLElementImpl.reconcileReferences (WSDLElementImpl.java:1429) at com.ibm.etools.wsdl.impl.WSDLElementImpl.reconcileReferences (WSDLElementImpl.java:1429) at com.ibm.wbit.bpel.services.partnerlinktype.impl.PartnerLinkT ypeImpl.reconcileReferences(PartnerLinkTypeImpl.java:352) at com.ibm.etools.wsdl.impl.WSDLElementImpl.reconcileReferences (WSDLElementImpl.java:1429) at com.ibm.etools.wsdl.util.WSDLResourceImpl.handleDefinitionEl ement(WSDLResourceImpl.java:314) at com.ibm.etools.wsdl.util.WSDLResourceImpl.findDefinition(WSD LResourceImpl.java:277) at com.ibm.etools.wsdl.util.WSDLResourceImpl.doLoad(WSDLResourc eImpl.java:180) at com.ibm.ws.ar.WSDLArtifactResourceImpl.doLoad(WSDLArtifactRe sourceImpl.java:138) at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:884) at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:741) at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo ad(ResourceSetImpl.java:247) at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo adHelper(ResourceSetImpl.java:262) at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou rce(ResourceSetImpl.java(Compiled Code)) at com.ibm.wbit.bpel.util.WSDLUtil.resolve(WSDLUtil.java:436) at com.ibm.wbit.bpel.resource.BPELResourceImpl.getEObjectExtend ed(BPELResourceImpl.java:272) PROBLEM CONCLUSION: The fix for this APAR is currently targeted for inclusion in fixpack 6.0.2.4. Directions to apply fix: 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 Process Server. 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 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. 2) Follow the Fix instructions that are packaged with the Fix Installer on how to uninstall and reinstall the Fix. 3) Restart WebSphere Process Server. 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: