Bug 778008 (SOA-535) - SOA-P/ESB with IBM MQ 6 = javax.naming.NotContextException
Summary: SOA-P/ESB with IBM MQ 6 = javax.naming.NotContextException
Keywords:
Status: CLOSED NEXTRELEASE
Alias: SOA-535
Product: JBoss Enterprise SOA Platform 4
Classification: JBoss
Component: JBossESB
Version: 4.2 CP01
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.2 CP02
Assignee: Len DiMaggio
QA Contact:
URL: http://jira.jboss.org/jira/browse/SOA...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-04-29 17:45 UTC by Len DiMaggio
Modified: 2008-06-10 18:07 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
CP01
Last Closed: 2008-06-10 18:07:26 UTC
Type: Bug


Attachments (Terms of Use)
server.log.zip (392.50 KB, application/zip)
2008-05-02 02:34 UTC, Len DiMaggio
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SOA-535 0 Major Closed SOA-P/ESB with IBM MQ 6 = javax.naming.NotContextException 2012-11-26 01:02:04 UTC

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=<JMS-ESBListener listenerClass="org.jboss.soa.esb.listeners.message.MessageAwareListener" maxThreads="1" service-category="HelloWorld_ActionESB" service-description="Hello World" service-name="SimpleListener">
<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"/>
<action action="displayAction" class="org.jboss.soa.esb.samples.quickstart.helloworldaction.MyJMSListenerAction" exceptionMethod="exceptionHandler" process="displayMessage"/>
<action action="playAction" class="org.jboss.soa.esb.samples.quickstart.helloworldaction.MyJMSListenerAction" exceptionMethod="exceptionHandler" process="playWithMessage"/>
<action action="notificationAction" class="org.jboss.soa.esb.actions.Notifier" okMethod="notifyOK">
   	 				   <NotificationList type="OK"> 
      				     <target class="NotifyConsole"/>
				    	 <target class="NotifyQueues">
				    	       <messageProp name="quickstart" value="hello_world_action"/>
				   	           <queue connection-factory="ConnectionFactory" jndiName="HELLO_WORLD_ACTION">
				   	           	<property name="java.naming.factory.initial" value="com.ibm.mq.jms.context.WMQInitialContextFactory"/>
				   	           </queue>
			 	     	 </target>
	    		   	   </NotificationList> 
	    		   </action>
</JMS-ESBListener>, 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





Note You need to log in before you can comment on or make changes to this bug.