activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Davies <rajdav...@gmail.com>
Subject Re: AMQ5.1 bridge to WebsphereMQ 5.3 -> javax.jms.IllegalStateException: MQJMS1112
Date Tue, 13 May 2008 09:38:06 GMT

On 13 May 2008, at 09:52, martyman wrote:

>
> Hi guys,
>
> based on examples I've found on the net I've configured a bridge  
> from AMQ
> 5.1.0 to Webphere MQ 5.3. Messages are forwarded thus the bridge  
> seems to
> work but I get lots of javax.jms.IllegalStateExceptions in the logs  
> (see
> below).
>
> Did I miss something? Any hints?
>
> Should I rather use Camel JMS Components?
>
> Thanks,
> Martin
>
>
>
> Relevant activemq.xml fragments:
> ...
> <jmsBridgeConnectors>
> <jmsQueueConnector name="activemq2webspheremq"
> outboundQueueConnectionFactory="#remoteFactory">
>  <outboundQueueBridges>
> 	 <outboundQueueBridge outboundQueueName="WIN.TEST"
> localQueueName="bridge2mq"/>
>  </outboundQueueBridges>
>   </jmsQueueConnector>
> </jmsBridgeConnectors>
> ...
> <bean id="remoteFactory"  
> class="com.ibm.mq.jms.MQQueueConnectionFactory">
> <property name="transportType" value="1"/>
> <property name="hostName" value="Test"/>
> <property name="port" value="1414"/>
> <property name="queueManager" value="CSQ"/>
> <property name="channel" value="CO.TEST"/>
> </bean>
> ....
>
>
>
>
> 2008-05-13 09:13:50,445 [enerContainer-1] ERROR
> efaultMessageListenerContainer - Setup of JMS message listener invoker
> failed - trying to recover
> javax.jms.IllegalStateException: MQJMS1112: JMS1.1 Ungültige  
> Operation für
> domänenspezifisches Objekt
> 	at com.ibm.mq.jms.MQQueueSession.createTopic(MQQueueSession.java:734)
> 	at
> org 
> .springframework 
> .jms 
> .support 
> .destination 
> .DynamicDestinationResolver 
> .resolveTopic(DynamicDestinationResolver.java:86)
> 	at
> org 
> .springframework 
> .jms 
> .support 
> .destination 
> .DynamicDestinationResolver 
> .resolveDestinationName(DynamicDestinationResolver.java:63)
> 	at
> org 
> .springframework 
> .jms 
> .support 
> .destination 
> .JmsDestinationAccessor 
> .resolveDestinationName(JmsDestinationAccessor.java:100)
> 	at
> org 
> .springframework 
> .jms 
> .listener 
> .AbstractPollingMessageListenerContainer 
> .createListenerConsumer(AbstractPollingMessageListenerContainer.java: 
> 215)
> 	at
> org.springframework.jms.listener.DefaultMessageListenerContainer 
> $ 
> AsyncMessageListenerInvoker 
> .initResourcesIfNecessary(DefaultMessageListenerContainer.java:903)
> 	at
> org.springframework.jms.listener.DefaultMessageListenerContainer 
> $ 
> AsyncMessageListenerInvoker 
> .invokeListener(DefaultMessageListenerContainer.java:886)
> 	at
> org.springframework.jms.listener.DefaultMessageListenerContainer 
> $ 
> AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java: 
> 822)
> 	at java.lang.Thread.run(Unknown Source)
> 2008-05-13 09:13:50,445 [enerContainer-1] INFO
> efaultMessageListenerContainer - Successfully refreshed JMS Connection
> 2008-05-13 09:13:50,492 [enerContainer-1] ERROR
> efaultMessageListenerContainer - Setup of JMS message listener invoker
> failed - trying to recover
> javax.jms.InvalidDestinationException: MQJMS2008: Fehler beim Öffnen  
> der
> MQ-Warteschlange
> 	at
> com 
> .ibm 
> .mq.jms.MQQueueServices.getQueueOpenException(MQQueueServices.java: 
> 408)
> 	at
> com 
> .ibm.mq.jms.JMSServicesMgr.getQueueOpenException(JMSServicesMgr.java: 
> 112)
> 	at com.ibm.mq.jms.MQSession.createQReceiver(MQSession.java:5995)
> 	at com.ibm.mq.jms.MQQueueSession.createReceiver(MQQueueSession.java: 
> 326)
> 	at com.ibm.mq.jms.MQQueueSession.createConsumer(MQQueueSession.java: 
> 382)
> 	at
> org 
> .springframework 
> .jms 
> .listener 
> .AbstractPollingMessageListenerContainer 
> .createConsumer(AbstractPollingMessageListenerContainer.java:449)
> 	at
> org 
> .springframework 
> .jms 
> .listener 
> .AbstractPollingMessageListenerContainer 
> .createListenerConsumer(AbstractPollingMessageListenerContainer.java: 
> 217)
> 	at
> org.springframework.jms.listener.DefaultMessageListenerContainer 
> $ 
> AsyncMessageListenerInvoker 
> .initResourcesIfNecessary(DefaultMessageListenerContainer.java:903)
> 	at
> org.springframework.jms.listener.DefaultMessageListenerContainer 
> $ 
> AsyncMessageListenerInvoker 
> .invokeListener(DefaultMessageListenerContainer.java:886)
> 	at
> org.springframework.jms.listener.DefaultMessageListenerContainer 
> $ 
> AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java: 
> 822)
> 	at java.lang.Thread.run(Unknown Source)
> 2008-05-13 09:13:50,539 [enerContainer-1] INFO
> efaultMessageListenerContainer - Successfully refreshed JMS Connection
> 2008-05-13 09:13:55,461 [enerContainer-2] ERROR
> efaultMessageListenerContainer - Setup of JMS message listener invoker
> failed - trying to recover
> javax.jms.IllegalStateException: MQJMS1112: JMS1.1 Ungültige  
> Operation für
> domänenspezifisches Objekt
> 	at com.ibm.mq.jms.MQQueueSession.createTopic(MQQueueSession.java:734)
> 	at
> org 
> .springframework 
> .jms 
> .support 
> .destination 
> .DynamicDestinationResolver 
> .resolveTopic(DynamicDestinationResolver.java:86)
> 	at
> org 
> .springframework 
> .jms 
> .support 
> .destination 
> .DynamicDestinationResolver 
> .resolveDestinationName(DynamicDestinationResolver.java:63)
> 	at
> org 
> .springframework 
> .jms 
> .support 
> .destination 
> .JmsDestinationAccessor 
> .resolveDestinationName(JmsDestinationAccessor.java:100)
> 	at
> org 
> .springframework 
> .jms 
> .listener 
> .AbstractPollingMessageListenerContainer 
> .createListenerConsumer(AbstractPollingMessageListenerContainer.java: 
> 215)
> 	at
> org.springframework.jms.listener.DefaultMessageListenerContainer 
> $ 
> AsyncMessageListenerInvoker 
> .initResourcesIfNecessary(DefaultMessageListenerContainer.java:903)
> 	at
> org.springframework.jms.listener.DefaultMessageListenerContainer 
> $ 
> AsyncMessageListenerInvoker 
> .invokeListener(DefaultMessageListenerContainer.java:886)
> 	at
> org.springframework.jms.listener.DefaultMessageListenerContainer 
> $ 
> AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java: 
> 822)
> 	at java.lang.Thread.run(Unknown Source)
> -- 
> View this message in context: http://www.nabble.com/AMQ5.1-bridge-to-WebsphereMQ-5.3--%3E-javax.jms.IllegalStateException%3A-MQJMS1112-tp17204001s2354p17204001.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>

Hi Martin,

I would use the camel JMS components for bridging - we will be  
depreciating the use of the ActiveMQ JMS bridge in favour of camel in  
the future




cheers,

Rob

http://open.iona.com/ -Enterprise Open Integration
http://rajdavies.blogspot.com/




Mime
View raw message