Fix (APAR): PI48971 Status: Fix Release: 8.5.5.9 Operating System: AIX,HP-UX,IBM i,Inspur K-UX,Linux,Solaris,Windows,iOS,z/OS Supersedes Fixes: CMVC Defect: xxxxxx Byte size of APAR: 3218411 Date: 2016-04-19 Abstract: ActiveMQ properties not being honored in JMSActivationSpec in Liberty Description/symptom of problem: PI48971 resolves the following problem: ERROR DESCRIPTION: javax.resource.spi.InvalidPropertyException errors occur during startup when Websphere Liberty server attempts to connect to ActiveMQ, The following error is written to the SystemOut.log: J2CA8802E: The message endpoint activation failed for resource adapter activemq-rar-5.11.1 due to exception: javax.resource. spi.InvalidPropertyException: Invalid settings: destination is a required field and must be set to the destination name. at org.apache.activemq.ra.ActiveMQActivationSpec.validate (ActiveMQActivationSpec.java:137) at com.ibm.ws.jca.service.EndpointActivationService.create ActivationSpec(EndpointActivationService.java:255) at com.ibm.ws.jca.service.EndpointActivationService.activate Endpoint(EndpointActivationService.java:397) at com.ibm.ws.ejbcontainer.mdb.internal.MessageEndpoint FactoryImpl.activateEndpointInternal(MessageEndpoint FactoryImpl.java:167) at com.ibm.ws.ejbcontainer.mdb.internal.MDBRuntimeImpl. activateEndpoint(MDBRuntimeImpl.java:524) at com.ibm.ws.ejbcontainer.mdb.internal.MDBRuntimeImpl. activatePendingEndpoints(MDBRuntimeImpl.java:389) at com.ibm.ws.ejbcontainer.mdb.internal.MDBRuntimeImpl. setServerStarted(MDBRuntimeImpl.java:263) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:94) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:55) at java.lang.reflect.Method.invoke(Method.java:619) at org.apache.felix.scr.impl.helper.BaseMethod.invoke Method(BaseMethod.java:231) LOCAL FIX: Add the element in the Message Driven Bean(MDB) deployment descriptor PROBLEM SUMMARY USERS AFFECTED: All users of IBM WebSphere Application Server Liberty using third party JMS resource adapters PROBLEM DESCRIPTION: Various problems seen when using destination property configured on activation specification RECOMMENDATION: None The server.xml contains a resource adapter entry for a third party JMS resource adapter such as ActiveMQ or Solace. Various problems may be seen in the logs including: 1. Error J2CA8802E in the console or message log. For example J2CA8802E: The message endpoint activation failed for resource adapter activemq-rar-5.11.1 due to exception: javax.resource.spi.InvalidPropertyException: Invalid settings: destination is a required field and must be set to the destination name. at org.apache.activemq.ra.ActiveMQActivationSpec.validate (ActiveMQActivationSpec.java:137) at com.ibm.ws.jca.service.EndpointActivationService.createActivatio nSpec(EndpointActivationService.java:255) 2. Warning about NullPointerException in the logs, for example [2/18/16 11:37:13:307 CST] 00000027 com.ibm.ws.jca.internal.BootstrapContextImpl W J2CA8500E: An error occurred while attempting to configure a property destination of configuration element com.ibm.ws.jca.adminObject.supertype[MyQueue1] on the class com.solacesystems.jms.ra.outbound.QueueProxy: java.lang.NullPointerException at com.ibm.ws.jca.internal.BootstrapContextImpl.getDestination(Boot strapContextImpl.java:696) at com.ibm.ws.jca.internal.BootstrapContextImpl.configure(Bootstrap ContextImpl.java:401) at com.ibm.ws.jca.service.AdminObjectService.createResource(AdminOb jectService.java:148) at com.ibm.ws.jca.internal.BootstrapContextImpl.getDestination(Boot strapContextImpl.java:729) at com.ibm.ws.jca.internal.BootstrapContextImpl.configure(Bootstrap ContextImpl.java:401) at com.ibm.ws.jca.service.EndpointActivationService.createActivatio nSpec(EndpointActivationService.java:322) at com.ibm.ws.jca.service.EndpointActivationService.activateEndpoin t(EndpointActivationService.java:514) ... 3. destination property value on an activation specification does not match the id or jndiName of an administered object causes CNTR4015W, for example: [WARNING ] CNTR4015W: The message endpoint for the InventoryAdvertiserMDB message-driven bean cannot be activated because the jcastore/InventoryAdvertiserMDB activation specification is not available. The message endpoint will not receive messages until the activation specification becomes available. PROBLEM CONCLUSION: The code has been updated to correctly process the destination property on activation specifications to eliminate errors and exceptions. While a destination value on an activation specification can still be used to cause an administered object to be configured on the resource adapter by matching the id or jndiName on an administered object, it is no longer required that the destination value match the id or jndiName on an administered object. The fix for this APAR is currently targeted for inclusion in fix pack 8.5.5.10. Please refer to the Recommended Updates page for delivery information: http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980 Directions to apply fix: Fix applies to Editions: Release 8.5 __ Application Server (BASE) __ Network Deployment (ND) X Liberty Core Install Fix to all WebSphere Virtual Enterprise installations unless special instructions are included below. Special Instructions: None NOTE: The user must: * Logged in with the same authority level when unpacking a fix, fix pack or refresh pack. * Be at V1.4.3 or newer of the Installation Manager. Certain iFixes may require a newer version of the Installation Manager and the Installation Manager will inform you during the installation process if a newer version is required. The IBM Knowledge Center can provide details, if needed, on the use of the Installation Manager to apply the iFixes. http://publib.boulder.ibm.com/infocenter/install/v1r4/index.jsp. Shutdown WebSphere Application Server before applying the iFixes. Restart WebSphere Application Server after applying the iFixes. Directions to remove fix: The IBM Knowledge Center can provide details, if needed, on the use of the Installation Manager to remove the iFixes. http://publib.boulder.ibm.com/infocenter/install/v1r4/index.jsp. Shutdown WebSphere Application Server before removing the iFixes. Restart WebSphere Application Server after removing the iFixes. Directions to re-apply fix: 1) Shutdown WebSphere Application Server. 2) Follow the Fix instructions to apply the fix. 3) Restart WebSphere Application Server. Additional Information: