NullPointerException seen in a RAD console while debugging an IN-ONLY MEP service with JMS binding.

NullPointerException seen in a RAD console while debugging an IN-ONLY MEP service with JMS binding.

book

Article ID: KB0094634

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix Service Grid -
TIBCO ActiveMatrix BusinessWorks Service Engine -
Not Applicable -

Description

Description:
While debugging a IN-ONLY MEP service with JMS binding, a java.lang.NullPointerException can be seen as illustrated in the Symptoms section. The same project works fine if deployed to runtime node.
Symptoms:
The exception stack trace:
**************
[pool-4-thread-1] [ERROR] com.tibco.amx.bt.jms.JMSGenericReplyCallback - TIBCO-AMX-BT-JMS-200007: onException(): Service Runtime Exception when invoking wire, endpointContext is "EndpointContext: environment name: rad_154513_Missa,node name: Node,application name: Missa,component name: ScridEvent/EnterpriseInstanceEventServicePortbinding name: ScridEventJMSService_Binding"
[pool-4-thread-1] [ERROR] com.tibco.amx.bt.jms.JMSGenericReplyCallback - TIBCO-AMX-BT-JMS-100007: Exception stacktrace is "org.osoa.sca.ServiceRuntimeException: org.osoa.sca.ServiceRuntimeException: com.tibco.amf.platform.runtime.extension.databinding.ConversionException: java.lang.NullPointerException
  
.....

com.tibco.amf.runtime.bindingtype.jms.core.transport.JMSBindingMessageEndpointFactory$MessageEndpointInvocationHandler.invoke(JMSBindingMessageEndpointFactory.java:202)
    at $Proxy60.onMessage(Unknown Source)
    at com.stc.jmsjca.core.XMessageEndpoint.onMessage(XMessageEndpoint.java:60)
    at com.stc.jmsjca.core.Delivery.deliverToEndpoint(Delivery.java:1088)
    at com.stc.jmsjca.core.WorkContainer.deliver(WorkContainer.java:309)
    at com.stc.jmsjca.core.WorkContainer.run(WorkContainer.java:233)
    at org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java:290)
    at org.apache.geronimo.connector.work.pool.NamedRunnable.run(NamedRunnable.java:32)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)
Caused by: org.osoa.sca.ServiceRuntimeException: com.tibco.amf.platform.runtime.extension.databinding.ConversionException: java.lang.NullPointerException
    at com.tibco.amf.platform.runtime.componentframework.internal.proxies.BusinessTargetProxyAdapter$InternalTargetProxyOperationAdapter.mapToFault(BusinessTargetProxyAdapter.java:303)
    at com.tibco.amf.platform.runtime.componentframework.internal.proxies.operation.AsyncToSyncOperationHandler.handleException(AsyncToSyncOperationHandler.java:271)
    ... 21 more
Caused by: com.tibco.amf.platform.runtime.extension.databinding.ConversionException: java.lang.NullPointerException
    at com.tibco.amf.runtime.bindingtype.jms.databinding.JMS2AbstractMsgPullConverter.convert(JMS2AbstractMsgPullConverter.java:65)
    at com.tibco.amf.runtime.bindingtype.jms.databinding.JMS2AbstractMsgPullConverter.convert(JMS2AbstractMsgPullConverter.java:35)
    at com.tibco.amf.runtime.bindingtype.jms.databinding.JMS2AbstractMsgPullConverter.convert(JMS2AbstractMsgPullConverter.java:1)
    at com.tibco.amf.platform.runtime.componentframework.internal.core.DataBindingController.convert(DataBindingController.java:676)
    at com.tibco.amf.platform.runtime.componentframework.internal.proxies.operation.OperationHandler.beforeTargetRequest(OperationHandler.java:199)
    at com.tibco.amf.platform.runtime.componentframework.internal.proxies.operation.AsyncToSyncOperationHandler.invoke(AsyncToSyncOperationHandler.java:80)
    ... 20 more
Caused by: java.lang.NullPointerException
    at com.tibco.amf.runtime.bindingtype.jms.core.util.DomConversionHelpers.xmltextMessageToDom(DomConversionHelpers.java:49)
    at com.tibco.amf.runtime.bindingtype.jms.databinding.JMS2AbstractMsgPullConverter.convert(JMS2AbstractMsgPullConverter.java:48)
    ... 25 more
**************
Cause:
This is a defect of the RAD debugger referred as BJMS-815, which applies to IN-ONLY MEP service with JMS binding.

Issue/Introduction

NullPointerException seen in a RAD console while debugging an IN-ONLY MEP service with JMS binding.

Resolution

The defect BJMS-815 is already fixed in TIBCO ActiveMatrix 3.2 and later versions. For TIBCO ActiveMatrix 3.1.x users, it is recommended to upgrade to the latest version of the applicable product. 

A workaround is also available. Use “Run Configuration” instead of “Debug Configuration”.

1). Click “Run-->Run Configuration”, create a new Run Configuration.
 
2). Provision the composite as well as the required feature. 

3). Apply and Run.

Additional Information

BJMS-815