Bug 778008 (SOA-535)

Summary: SOA-P/ESB with IBM MQ 6 = javax.naming.NotContextException
Product: [JBoss] JBoss Enterprise SOA Platform 4 Reporter: Len DiMaggio <ldimaggi>
Component: JBossESBAssignee: Len DiMaggio <ldimaggi>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 4.2 CP01   
Target Milestone: ---   
Target Release: 4.2 CP02   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/SOA-535
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
CP01
Last Closed: 2008-06-10 18:07:26 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
server.log.zip none

Description Len DiMaggio 2008-04-29 17:45:48 UTC
project_key: SOA

See user forum post for details:  http://www.jboss.com/index.html?module=bb&op=viewtopic&t=134669

What's happening is that a test is performed for a non-existent name (__dummy2@#$%) - a NameNotFoundException should be raised, but IBM MQ is returning a NotContextException exception.

Comment 1 Len DiMaggio 2008-04-29 17:47:57 UTC
Link: Added: This issue is a dependency of JBESB-1698


Comment 2 Len DiMaggio 2008-04-29 17:48:39 UTC
Link: Added: This issue is a dependency of JBQA-1581


Comment 3 Len DiMaggio 2008-05-02 02:34:17 UTC
Hey Kevin,

   Do you have a second to look at this again - http://www.jboss.com/index.html?module=bb&op=viewtopic&t=134669 - I commented out the test for __dummy2@#$% - the .esb deploys cleanly now - and runs without an error. But the listener never receives the message.

   I did notice the following in the server.log (attached) - what's happening here? - Thx!

2008-05-01 12:09:46,743 DEBUG [org.hibernate.pretty.Printer] org.jboss.soa.esb.monitoring.pojo.JMXData{attribute=org.jboss.soa.esb.monitoring.pojo.JMXAttribute#130, countvalue=null, timevalue=null, textvalue=&lt;JMS-ESBListener listenerClass="org.jboss.soa.esb.listeners.message.MessageAwareListener" maxThreads="1" service-category="HelloWorld_ActionESB" service-description="Hello World" service-name="SimpleListener"&gt;
&lt;EPR acknowledge-mode="AUTO_ACKNOWLEDGE" connection-factory="ConnectionFactory" destination-name="B" destination-type="queue" jndi-URL="localhost:1414/SYSTEM.DEF.SVRCONN" jndi-context-factory="com.ibm.mq.jms.context.WMQInitialContextFactory" persistent="true" protocol="jms" transacted="false"/&gt;
&lt;action action="displayAction" class="org.jboss.soa.esb.samples.quickstart.helloworldaction.MyJMSListenerAction" exceptionMethod="exceptionHandler" process="displayMessage"/&gt;
&lt;action action="playAction" class="org.jboss.soa.esb.samples.quickstart.helloworldaction.MyJMSListenerAction" exceptionMethod="exceptionHandler" process="playWithMessage"/&gt;
&lt;action action="notificationAction" class="org.jboss.soa.esb.actions.Notifier" okMethod="notifyOK"&gt;
   	 				   &lt;NotificationList type="OK"&gt; 
      				     &lt;target class="NotifyConsole"/&gt;
				    	 &lt;target class="NotifyQueues"&gt;
				    	       &lt;messageProp name="quickstart" value="hello_world_action"/&gt;
				   	           &lt;queue connection-factory="ConnectionFactory" jndiName="HELLO_WORLD_ACTION"&gt;
				   	           	&lt;property name="java.naming.factory.initial" value="com.ibm.mq.jms.context.WMQInitialContextFactory"/&gt;
				   	           &lt;/queue&gt;
			 	     	 &lt;/target&gt;
	    		   	   &lt;/NotificationList&gt; 
	    		   &lt;/action&gt;
&lt;/JMS-ESBListener&gt;, statdate=2008-05-01 12:09:46, server=stacks2.lab.bos.redhat.com:1099, id=316}


Comment 4 Len DiMaggio 2008-05-02 02:34:17 UTC
Attachment: Added: server.log.zip


Comment 6 Len DiMaggio 2008-06-10 18:07:26 UTC
Verified resolved in CR1 build for CP02.

  <jms-provider 
                name="JBossMQ" 
                jndi-URL="localhost:1414/SYSTEM.DEF.SVRCONN"
                jndi-context-factory="com.ibm.mq.jms.context.WMQInitialContextFactory"
                connection-factory="ConnectionFactory" >

And IBM MQ:

-bash-3.2$ runmqlsr -m ConnectionFactory -t tcp
5724-H72 (C) Copyright IBM Corp. 1994, 2005.  ALL RIGHTS RESERVED.
MQSeriesClient-6.0.0-0
MQSeriesClient-U808001-6.0.2-1
MQSeriesConfig-6.0.0-0
MQSeriesConfig-U808001-6.0.2-1
MQSeriesFTA-6.0.0-0
MQSeriesFTA-U808001-6.0.2-1
MQSeriesIES30-6.0.0-0
MQSeriesIES30-U808001-6.0.2-1
MQSeriesJava-6.0.0-0
MQSeriesJava-U808001-6.0.2-1
MQSeriesKeyMan-6.0.0-0
MQSeriesKeyMan-U808001-6.0.2-1
MQSeriesMan-6.0.0-0
MQSeriesMan-U808001-6.0.2-1
MQSeriesMsg_de-6.0.0-0
MQSeriesMsg_de-U808001-6.0.2-1
MQSeriesMsg_es-6.0.0-0
MQSeriesMsg_es-U808001-6.0.2-1
MQSeriesMsg_fr-6.0.0-0
MQSeriesMsg_fr-U808001-6.0.2-1
MQSeriesMsg_it-6.0.0-0
MQSeriesMsg_it-U808001-6.0.2-1
MQSeriesMsg_ja-6.0.0-0
MQSeriesMsg_ja-U808001-6.0.2-1
MQSeriesMsg_ko-6.0.0-0
MQSeriesMsg_ko-U808001-6.0.2-1
MQSeriesMsg_pt-6.0.0-0
MQSeriesMsg_pt-U808001-6.0.2-1
MQSeriesMsg_Zh_CN-6.0.0-0
MQSeriesMsg_Zh_CN-U808001-6.0.2-1
MQSeriesMsg_Zh_TW-6.0.0-0
MQSeriesMsg_Zh_TW-U808001-6.0.2-1
MQSeriesRuntime-6.0.0-0
MQSeriesRuntime-U808001-6.0.2-1
MQSeriesSamples-6.0.0-0
MQSeriesSamples-U808001-6.0.2-1
MQSeriesSDK-6.0.0-0
MQSeriesSDK-U808001-6.0.2-1
MQSeriesServer-6.0.0-0
MQSeriesServer-U808001-6.0.2-1
MQSeriesTXClient-6.0.0-0
MQSeriesTXClient-U808001-6.0.2-1

And the changed version of helloworld referenced here:
   http://jira.jboss.com/jira/browse/JBQA-1581