In TIBCO ActiveMatrix(R) Adapter for Siebel 6.0.1, the EAI TIBCO JMS Agent is not able to send and receive messages when calling its sendRecieve method.
book
Article ID: KB0094534
calendar_today
Updated On:
Products
Versions
TIBCO ActiveMatrix BusinessWorks Plug-in for Siebel
-
Not Applicable
-
Description
Resolution: Description: ============ EAI TIBCO JMS Agent is used for TIBCO ActiveMatrix(R) Adapter for Siebel outbound service(i.e. Publication and request response invocation service). When an outbound event happens, a notification message will be sent to the adapter through EAI TIBCO JMS Agent business service. This notification is a message which packages a set of query conditions. Once the adapter receives this notification message , it will stage the query based on this message. EAI TIBCO JMS Agent business service is provided by TIBCO. When calling the method SendReceive of EAI TIBCO JMS Agent, the message cannot be sent to the adapter by EAI TIBCO JMS Agent, or more specifically, the message cannot be sent to the JMS Queue for the adapter to receive. The reason behind this is that there is a type error happening in the method called validateData4SendReceiveMethod (this method is called to validate the input arguments), and this type error is caught by the catch block at the end of the code. It makes the sendRecieve return immediately with sending the message to the queue for the adapter to take.
Symptoms: ======== Notification messages cannot be sent to the adapter with EAI TIBCO JMS Agent sendReceive method.
Cause: ===== Inside the sendReceive method, the code is calling the validateData4SendReceiveMethod used to validate the input arguments. The problem is that in the validateData4SendReceiveMethod, the intObj is set to null, but within the method the intObj has not been defined and initialized with a type before it is set to null. It is syntactically incorrect to set it when its type is not yet defined. An exception will be thrown which will be caught directly by the catch block at the end of the code. The following snippet is copied from the validateData4SendReceiveMethod of "EAI TIBCO JMS Agent". You can see the intObj is set to null in the 'finally' block in the in validateData4SendReceiveMethod but nowhere in the method is its type defined. .... finally { eventName= null; keyName= null; keyValue= null; intObj= null; keySet= null; } ...
Workaround: ========== The workaround is to remove the line of " intObj = null" in the validateData4SendReceiveMethod or comment out the line i.e. "//intObj= null;" and compile it to take effect. PFA: intObj= null.JPG
Attachments: =========== File: calling the validateData4SendReceiveMethod.JPG File: PFA: intObj= null.JPG
Issue/Introduction
In TIBCO ActiveMatrix(R) Adapter for Siebel 6.0.1, the EAI TIBCO JMS Agent is not able to send and receive messages when calling its sendRecieve method.