com.ibm.msg.client.jms.DetailedJMSException: MQJCA1026: An operation on a domain specific object was not valid. A JMS application attempted to perform an operation on a domain specific object, but the operation is valid only on cross domain objects or in the other messaging domain. Make sure that the JMS objects used by your application are relevant to the required messaging domain.

geronimo-dev | kknd (JIRA) | 4 years ago
  1. 0

    [jira] [Commented] (GERONIMO-6405) websphere mq issue: MQJCA1026: An operation on a domain specific object was not valid.

    geronimo-dev | 4 years ago | kknd (JIRA)
    com.ibm.msg.client.jms.DetailedJMSException: MQJCA1026: An operation on a domain specific object was not valid. A JMS application attempted to perform an operation on a domain specific object, but the operation is valid only on cross domain objects or in the other messaging domain. Make sure that the JMS objects used by your application are relevant to the required messaging domain.
  2. 0

    We will retrive/send jms message via spring jms support, the jms provider is jboss middleware, the destination MQ is IBM WebSphereMQ. env: Spring 3.0.5 + JBoss eap 5.0 + WebSphere MQ v6.0 1. Firstly, copy the resource adapter "wmq.jmsra.rar"(retrived from wmq6.0 client) to jboss's "deploy" directory, and write *-ds.xml to register the connectioFactory and queue via jndi name. 2. In Spring, a DMLC bean is registerd: <jee:jndi-lookup id="tums.cf" jndi-name="java:jms/tumsConnectionFactory" expected-type="javax.jms.QueueConnectionFactory" proxy-interface="javax.jms.QueueConnectionFactory" lookup-on-startup="true" cache="true" /> <jee:jndi-lookup id="tums.queue" jndi-name="jms/tumsGetQueue" expected-type="javax.jms.Queue" proxy-interface="javax.jms.Queue" lookup-on-startup="true" cache="true" /> <bean id="messageListener" class="org.springframework.jms.listener.adapter.MessageListenerAdapter"> <constructor-arg ref="messageListenerService" /> <property name="defaultListenerMethod" value="onMessage" /> </bean> <bean id="messageListenerService" class="com.travelsky.espeed.eds.jms.handler.MessageListener"> </bean> <bean id="listenerContainer" class="org.springframework.jms.listener.DefaultMessageListenerContainer"> <property name="connectionFactory" ref="tums.cf" /> <property name="destination" ref="tums.queue" /> <property name="messageListener" ref="messageListener" /> <property name="idleTaskExecutionLimit" value="1" /> <property name="maxConcurrentConsumers" value="1" /> <property name="concurrentConsumers" value="1" /> <property name="cacheLevelName" value="CACHE_CONSUMER" /> </bean> 3. When jboss is starting, we confirm that the JNDI is bounded successfully! But when spring attempt to create connection, the exception is thrown as below: 2012-10-09 13:28:49,564 DEBUG [org.springframework.jms.listener.DefaultMessageListenerContainer] (main) Could not establish shared JMS Connection - leaving it up to asynchronous invokers to establish a Connection as soon as possible javax.jms.JMSException: MQJCA1026:Invalid operation for a domain specific object. at com.ibm.mq.connector.services.JCAExceptionBuilder.buildException(JCAExceptionBuilder.java:113) at com.ibm.mq.connector.services.JCAExceptionBuilder.buildException(JCAExceptionBuilder.java:78) at com.ibm.mq.connector.outbound.QueueConnectionFactoryImpl.createConnection(QueueConnectionFactoryImpl.java:75) at org.springframework.jms.support.JmsAccessor.createConnection(JmsAccessor.java:184) at org.springframework.jms.listener.AbstractJmsListeningContainer.createSharedConnection(AbstractJmsListeningContainer.java:403) at org.springframework.jms.listener.AbstractJmsListeningContainer.establishSharedConnection(AbstractJmsListeningContainer.java:371) at org.springframework.jms.listener.DefaultMessageListenerContainer.establishSharedConnection(DefaultMessageListenerContainer.java:749) at org.springframework.jms.listener.AbstractJmsListeningContainer.doStart(AbstractJmsListeningContainer.java:278) at org.springframework.jms.listener.AbstractJmsListeningContainer.start(AbstractJmsListeningContainer.java:263) at org.springframework.jms.listener.DefaultMessageListenerContainer.start(DefaultMessageListenerContainer.java:555) at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:166) at org.springframework.context.support.DefaultLifecycleProcessor.access$1(DefaultLifecycleProcessor.java:154) at org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:335) at org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:143) at org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:108) at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:908) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:428) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4389) at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310) at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142) at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461) at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118) at org.jboss.web.deployers.WebModule.start(WebModule.java:97) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96) at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668) at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206) at $Proxy38.start(Unknown Source) at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42) at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37) at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348) at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:297) at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1633) at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:935) at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1083) at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:985) at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:823) at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553) at org.jboss.system.ServiceController.doChange(ServiceController.java:688) at org.jboss.system.ServiceController.start(ServiceController.java:460) at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163) at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99) at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46) at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62) at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50) at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171) at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1440) at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1158) at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1179) at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1099) at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348) at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1633) at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:935) at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1083) at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:985) at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:823) at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553) at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:782) at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702) at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117) at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70) at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53) at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:403) at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348) at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1633) at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:935) at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1083) at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:985) at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:775) at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540) at org.jboss.system.server.profileservice.repository.AbstractProfileService.registerProfile(AbstractProfileService.java:308) at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:256) at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461) at org.jboss.Main.boot(Main.java:221) at org.jboss.Main$1.run(Main.java:556) at java.lang.Thread.run(Thread.java:662) and then Spring attempt to refresh connections repeatly: 2012-10-09 13:28:54,732 WARN [org.springframework.jms.listener.DefaultMessageListenerContainer] (listenerContainer-1) Could not refresh JMS Connection for destination 'queue://QM_TUMS/QL_PUBSUB_OUT_ESPEED' - retrying in 5000 ms. Cause: MQJCA1026:Invalid operation for a domain specific object. javax.jms.JMSException: MQJCA1026:Invalid operation for a domain specific object. ....... ps-1: We debug spring DMLC and related classes, we find that Spring always getConnectionFactory() from the container, and invoke createConnection() mehtod to create a single or share connection. But the wmq's connector in mqconnector.jar in "wmq.jmsra.rar", we recompile the connector classes (sorry to IBM), find: QueueConnectionFactoryImpl.class public Connection createConnection() throws JMSException { throw ((JMSException)JCAExceptionBuilder.buildException(3, "MQJCA1026")); } So we think THAT is the reason for the exceptions above. ps-2: We don't know wmq's connector's behaivor about createConnection() method, maybe it's available for JMS 1.0.2 only, not JMS 1.1? So we update wmq's connector, using "wmq.jmsra.rar" retrived from WebSphere MQ v7.5, but the error reoccurs: 2012-10-12 10:00:59,382 WARN [org.springframework.jms.listener.DefaultMessageListenerContainer] (listenerContainer-1) Could not refresh JMS Connection for destination 'queue://QM_TUMS/QL_PUBSUB_OUT_ESPEED' - retrying in 5000 ms. Cause: MQJCA1026: 对特定于域的对象的操作无效。 com.ibm.msg.client.jms.DetailedJMSException: MQJCA1026: 对特定于域的对象的操作无效。 JMS 应用程序试图对特定于域的对象执行操作,但该操作仅对跨域对象或在其他消息传递域中有效。 确保应用程序使用的 JMS 对象与所需的消息传递域相关。 at com.ibm.mq.connector.services.JCAExceptionBuilder.buildException(JCAExceptionBuilder.java:146) at com.ibm.mq.connector.services.JCAExceptionBuilder.buildException(JCAExceptionBuilder.java:91) at com.ibm.mq.connector.outbound.QueueConnectionFactoryImpl.createConnection(QueueConnectionFactoryImpl.java:119) at com.ibm.mq.connector.outbound.QueueConnectionFactoryImpl.createConnection(QueueConnectionFactoryImpl.java:98) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196) at $Proxy148.createConnection(Unknown Source) at org.springframework.jms.support.JmsAccessor.createConnection(JmsAccessor.java:184) at org.springframework.jms.listener.AbstractJmsListeningContainer.createSharedConnection(AbstractJmsListeningContainer.java:403) at org.springframework.jms.listener.AbstractJmsListeningContainer.refreshSharedConnection(AbstractJmsListeningContainer.java:388) at org.springframework.jms.listener.DefaultMessageListenerContainer.refreshConnectionUntilSuccessful(DefaultMessageListenerContainer.java:856) at org.springframework.jms.listener.DefaultMessageListenerContainer.recoverAfterListenerSetupFailure(DefaultMessageListenerContainer.java:838) at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:969) at java.lang.Thread.run(Thread.java:662) We recompile the connector classes com.ibm.mq.connector.jar (same as mqconnector.jar)(sorry to IBM), find: QueueConnectionFactoryImpl.class public Connection createConnection() throws JMSException { return createConnection(null, null); } public Connection createConnection(String username, String password) throws JMSException { if (ResourceAdapterImpl.getJCARuntimeHelper().getEnvironment() != 1) { return createQueueConnection(username, password); } throw ((JMSException)JCAExceptionBuilder.buildException(3, "MQJCA1026")); } But how we can make "ResourceAdapterImpl.getJCARuntimeHelper().getEnvironment() != 1"? If you run the application in WAS container, it will not be 1! My God, that is the reason why I play the application successfully in WAS v6.0 but NOT in JBoss or any other containers, faint! ps-3: Now we try to use DMLC102 to test because DMLC102 explicitly invoke createQueueConnection() method but createConnection() for generic JMS 1.1 spec. It worked. But XX102 is deprecated by spring... Can Spring make the createConnection() or createQueueConnection() compatible? or resolve the wmq connector's incompatible?

    Spring JIRA | 4 years ago | dzmonkey
    com.ibm.msg.client.jms.DetailedJMSException: MQJCA1026: 对特定于域的对象的操作无效。 JMS 应用程序试图对特定于域的对象执行操作,但该操作仅对跨域对象或在其他消息传递域中有效。 确保应用程序使用的 JMS 对象与所需的消息传递域相关。
  3. 0

    We will retrive/send jms message via spring jms support, the jms provider is jboss middleware, the destination MQ is IBM WebSphereMQ. env: Spring 3.0.5 + JBoss eap 5.0 + WebSphere MQ v6.0 1. Firstly, copy the resource adapter "wmq.jmsra.rar"(retrived from wmq6.0 client) to jboss's "deploy" directory, and write *-ds.xml to register the connectioFactory and queue via jndi name. 2. In Spring, a DMLC bean is registerd: <jee:jndi-lookup id="tums.cf" jndi-name="java:jms/tumsConnectionFactory" expected-type="javax.jms.QueueConnectionFactory" proxy-interface="javax.jms.QueueConnectionFactory" lookup-on-startup="true" cache="true" /> <jee:jndi-lookup id="tums.queue" jndi-name="jms/tumsGetQueue" expected-type="javax.jms.Queue" proxy-interface="javax.jms.Queue" lookup-on-startup="true" cache="true" /> <bean id="messageListener" class="org.springframework.jms.listener.adapter.MessageListenerAdapter"> <constructor-arg ref="messageListenerService" /> <property name="defaultListenerMethod" value="onMessage" /> </bean> <bean id="messageListenerService" class="com.travelsky.espeed.eds.jms.handler.MessageListener"> </bean> <bean id="listenerContainer" class="org.springframework.jms.listener.DefaultMessageListenerContainer"> <property name="connectionFactory" ref="tums.cf" /> <property name="destination" ref="tums.queue" /> <property name="messageListener" ref="messageListener" /> <property name="idleTaskExecutionLimit" value="1" /> <property name="maxConcurrentConsumers" value="1" /> <property name="concurrentConsumers" value="1" /> <property name="cacheLevelName" value="CACHE_CONSUMER" /> </bean> 3. When jboss is starting, we confirm that the JNDI is bounded successfully! But when spring attempt to create connection, the exception is thrown as below: 2012-10-09 13:28:49,564 DEBUG [org.springframework.jms.listener.DefaultMessageListenerContainer] (main) Could not establish shared JMS Connection - leaving it up to asynchronous invokers to establish a Connection as soon as possible javax.jms.JMSException: MQJCA1026:Invalid operation for a domain specific object. at com.ibm.mq.connector.services.JCAExceptionBuilder.buildException(JCAExceptionBuilder.java:113) at com.ibm.mq.connector.services.JCAExceptionBuilder.buildException(JCAExceptionBuilder.java:78) at com.ibm.mq.connector.outbound.QueueConnectionFactoryImpl.createConnection(QueueConnectionFactoryImpl.java:75) at org.springframework.jms.support.JmsAccessor.createConnection(JmsAccessor.java:184) at org.springframework.jms.listener.AbstractJmsListeningContainer.createSharedConnection(AbstractJmsListeningContainer.java:403) at org.springframework.jms.listener.AbstractJmsListeningContainer.establishSharedConnection(AbstractJmsListeningContainer.java:371) at org.springframework.jms.listener.DefaultMessageListenerContainer.establishSharedConnection(DefaultMessageListenerContainer.java:749) at org.springframework.jms.listener.AbstractJmsListeningContainer.doStart(AbstractJmsListeningContainer.java:278) at org.springframework.jms.listener.AbstractJmsListeningContainer.start(AbstractJmsListeningContainer.java:263) at org.springframework.jms.listener.DefaultMessageListenerContainer.start(DefaultMessageListenerContainer.java:555) at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:166) at org.springframework.context.support.DefaultLifecycleProcessor.access$1(DefaultLifecycleProcessor.java:154) at org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:335) at org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:143) at org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:108) at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:908) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:428) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4389) at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310) at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142) at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461) at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118) at org.jboss.web.deployers.WebModule.start(WebModule.java:97) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96) at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668) at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206) at $Proxy38.start(Unknown Source) at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42) at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37) at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348) at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:297) at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1633) at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:935) at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1083) at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:985) at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:823) at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553) at org.jboss.system.ServiceController.doChange(ServiceController.java:688) at org.jboss.system.ServiceController.start(ServiceController.java:460) at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163) at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99) at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46) at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62) at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50) at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171) at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1440) at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1158) at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1179) at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1099) at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348) at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1633) at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:935) at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1083) at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:985) at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:823) at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553) at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:782) at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702) at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117) at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70) at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53) at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:403) at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348) at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1633) at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:935) at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1083) at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:985) at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:775) at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540) at org.jboss.system.server.profileservice.repository.AbstractProfileService.registerProfile(AbstractProfileService.java:308) at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:256) at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461) at org.jboss.Main.boot(Main.java:221) at org.jboss.Main$1.run(Main.java:556) at java.lang.Thread.run(Thread.java:662) and then Spring attempt to refresh connections repeatly: 2012-10-09 13:28:54,732 WARN [org.springframework.jms.listener.DefaultMessageListenerContainer] (listenerContainer-1) Could not refresh JMS Connection for destination 'queue://QM_TUMS/QL_PUBSUB_OUT_ESPEED' - retrying in 5000 ms. Cause: MQJCA1026:Invalid operation for a domain specific object. javax.jms.JMSException: MQJCA1026:Invalid operation for a domain specific object. ....... ps-1: We debug spring DMLC and related classes, we find that Spring always getConnectionFactory() from the container, and invoke createConnection() mehtod to create a single or share connection. But the wmq's connector in mqconnector.jar in "wmq.jmsra.rar", we recompile the connector classes (sorry to IBM), find: QueueConnectionFactoryImpl.class public Connection createConnection() throws JMSException { throw ((JMSException)JCAExceptionBuilder.buildException(3, "MQJCA1026")); } So we think THAT is the reason for the exceptions above. ps-2: We don't know wmq's connector's behaivor about createConnection() method, maybe it's available for JMS 1.0.2 only, not JMS 1.1? So we update wmq's connector, using "wmq.jmsra.rar" retrived from WebSphere MQ v7.5, but the error reoccurs: 2012-10-12 10:00:59,382 WARN [org.springframework.jms.listener.DefaultMessageListenerContainer] (listenerContainer-1) Could not refresh JMS Connection for destination 'queue://QM_TUMS/QL_PUBSUB_OUT_ESPEED' - retrying in 5000 ms. Cause: MQJCA1026: 对特定于域的对象的操作无效。 com.ibm.msg.client.jms.DetailedJMSException: MQJCA1026: 对特定于域的对象的操作无效。 JMS 应用程序试图对特定于域的对象执行操作,但该操作仅对跨域对象或在其他消息传递域中有效。 确保应用程序使用的 JMS 对象与所需的消息传递域相关。 at com.ibm.mq.connector.services.JCAExceptionBuilder.buildException(JCAExceptionBuilder.java:146) at com.ibm.mq.connector.services.JCAExceptionBuilder.buildException(JCAExceptionBuilder.java:91) at com.ibm.mq.connector.outbound.QueueConnectionFactoryImpl.createConnection(QueueConnectionFactoryImpl.java:119) at com.ibm.mq.connector.outbound.QueueConnectionFactoryImpl.createConnection(QueueConnectionFactoryImpl.java:98) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196) at $Proxy148.createConnection(Unknown Source) at org.springframework.jms.support.JmsAccessor.createConnection(JmsAccessor.java:184) at org.springframework.jms.listener.AbstractJmsListeningContainer.createSharedConnection(AbstractJmsListeningContainer.java:403) at org.springframework.jms.listener.AbstractJmsListeningContainer.refreshSharedConnection(AbstractJmsListeningContainer.java:388) at org.springframework.jms.listener.DefaultMessageListenerContainer.refreshConnectionUntilSuccessful(DefaultMessageListenerContainer.java:856) at org.springframework.jms.listener.DefaultMessageListenerContainer.recoverAfterListenerSetupFailure(DefaultMessageListenerContainer.java:838) at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:969) at java.lang.Thread.run(Thread.java:662) We recompile the connector classes com.ibm.mq.connector.jar (same as mqconnector.jar)(sorry to IBM), find: QueueConnectionFactoryImpl.class public Connection createConnection() throws JMSException { return createConnection(null, null); } public Connection createConnection(String username, String password) throws JMSException { if (ResourceAdapterImpl.getJCARuntimeHelper().getEnvironment() != 1) { return createQueueConnection(username, password); } throw ((JMSException)JCAExceptionBuilder.buildException(3, "MQJCA1026")); } But how we can make "ResourceAdapterImpl.getJCARuntimeHelper().getEnvironment() != 1"? If you run the application in WAS container, it will not be 1! My God, that is the reason why I play the application successfully in WAS v6.0 but NOT in JBoss or any other containers, faint! ps-3: Now we try to use DMLC102 to test because DMLC102 explicitly invoke createQueueConnection() method but createConnection() for generic JMS 1.1 spec. It worked. But XX102 is deprecated by spring... Can Spring make the createConnection() or createQueueConnection() compatible? or resolve the wmq connector's incompatible?

    Spring JIRA | 4 years ago | dzmonkey
    com.ibm.msg.client.jms.DetailedJMSException: MQJCA1026: 对特定于域的对象的操作无效。 JMS 应用程序试图对特定于域的对象执行操作,但该操作仅对跨域对象或在其他消息传递域中有效。 确保应用程序使用的 JMS 对象与所需的消息传递域相关。
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    FFDC - MQ Exception

    Stack Overflow | 1 year ago | Niraj
    com.ibm.msg.client.jms.DetailedJMSException: JMSMQ1112: The operation for a domain specific object was not valid. The operation 'setSubscriptionStore()' is not valid for type 'com.ibm.mq.jms.MQQueueConnectionFactory'. A JMS application attempted to perform an operation on domain specific object, but the operation is valid only for the other messaging domain. Make sure that the JMS objects and operations used by your application are relevant for the required messaging domain. If your application uses both messaging domains, consider using domain independent objects throughout the application.
  6. 0

    How to stop WSO2 passing ActiveMQ CorrelationID directly to Websphere MQ

    Stack Overflow | 4 years ago | Steve666
    com.ibm.msg.client.jms.DetailedJMSException: JMSCMQ1044: String is not a valid hexadecimal number - 'dolguldur-51590-1362693989456-3:4:1:1:4'. Either an attempt was made to specify a group ID or correlation ID which starts with the prefix ID but is not followed by a well-formed hexadecimal value, or an attempt was made to receive a message w hich contains an MQRFH2 property of type bin.hex that does not have a well-formed hexadecimal value. Ensure that a valid hexadecimal value always follows the ID prefix when setting group ID or correlation ID values. Ensure that any MQRFH2 headers generated by non-JMS applications are well-formed.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.ibm.msg.client.jms.DetailedJMSException

      MQJCA1026: An operation on a domain specific object was not valid. A JMS application attempted to perform an operation on a domain specific object, but the operation is valid only on cross domain objects or in the other messaging domain. Make sure that the JMS objects used by your application are relevant to the required messaging domain.

      at com.ibm.mq.connector.services.JCAExceptionBuilder.buildException()
    2. com.ibm.mq
      QueueConnectionFactoryImpl.createConnection
      1. com.ibm.mq.connector.services.JCAExceptionBuilder.buildException(JCAExceptionBuilder.java:146)
      2. com.ibm.mq.connector.services.JCAExceptionBuilder.buildException(JCAExceptionBuilder.java:91)
      3. com.ibm.mq.connector.outbound.QueueConnectionFactoryImpl.createConnection(QueueConnectionFactoryImpl.java:119)
      4. com.ibm.mq.connector.outbound.QueueConnectionFactoryImpl.createConnection(QueueConnectionFactoryImpl.java:98)
      4 frames
    3. org.apache.geronimo
      MultiPagePortlet.doView
      1. org.apache.geronimo.console.jmsmanager.helper.JMSMessageHelper.getMessageFromQueue(JMSMessageHelper.java:177)
      2. org.apache.geronimo.console.jmsmanager.helper.JMSMessageHelper.getMessagesList(JMSMessageHelper.java:107)
      3. org.apache.geronimo.console.jmsmanager.wizard.ViewMessageHandler.renderView(ViewMessageHandler.java:87)
      4. org.apache.geronimo.console.MultiPagePortlet.doView(MultiPagePortlet.java:144)
      4 frames
    4. Java Portlet Specification V2.0
      GenericPortlet.render
      1. javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:348)
      2. javax.portlet.GenericPortlet.render(GenericPortlet.java:253)
      2 frames
    5. org.apache.geronimo
      BasePortlet.render
      1. org.apache.geronimo.console.BasePortlet.render(BasePortlet.java:153)
      1 frame
    6. Pluto Portal Driver Implementation Classes
      FilterManagerImpl.processFilter
      1. org.apache.pluto.driver.services.container.FilterChainImpl.doFilter(FilterChainImpl.java:163)
      2. org.apache.pluto.driver.services.container.FilterChainImpl.processFilter(FilterChainImpl.java:91)
      3. org.apache.pluto.driver.services.container.FilterManagerImpl.processFilter(FilterManagerImpl.java:105)
      3 frames
    7. org.apache.pluto
      PortletServlet.doGet
      1. org.apache.pluto.container.driver.PortletServlet.dispatch(PortletServlet.java:340)
      2. org.apache.pluto.container.driver.PortletServlet.doGet(PortletServlet.java:261)
      2 frames
    8. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:575)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
      2 frames
    9. Glassfish Core
      ApplicationDispatcher.include
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      3. org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
      4. org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:593)
      5. org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:530)
      5 frames
    10. org.apache.pluto
      PortletContainerImpl.doRender
      1. org.apache.pluto.driver.container.DefaultPortletInvokerService.invoke(DefaultPortletInvokerService.java:233)
      2. org.apache.pluto.driver.container.DefaultPortletInvokerService.render(DefaultPortletInvokerService.java:117)
      3. org.apache.pluto.container.impl.PortletContainerImpl.doRender(PortletContainerImpl.java:157)
      3 frames
    11. Pluto Portal Driver
      PortletTag.doStartTag
      1. org.apache.pluto.driver.tags.PortletTag.doStartTag(PortletTag.java:165)
      1 frame
    12. jsp.WEB_002dINF.themes
      portlet_002dskin_jsp._jspService
      1. jsp.WEB_002dINF.themes.portlet_002dskin_jsp._jspService(portlet_002dskin_jsp.java:108)
      1 frame
    13. GWT dev
      HttpJspBase.service
      1. org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      1 frame
    14. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
      1 frame
    15. Glassfish Core
      ApplicationDispatcher.include
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      3. org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
      4. org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:593)
      5. org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:530)
      5 frames
    16. GWT dev
      JspRuntimeLibrary.include
      1. org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:954)
      1 frame
    17. jsp.WEB_002dINF.themes
      portlets_002donly_jsp._jspService
      1. jsp.WEB_002dINF.themes.portlets_002donly_jsp._jspx_meth_c_005fforEach_005f0(portlets_002donly_jsp.java:146)
      2. jsp.WEB_002dINF.themes.portlets_002donly_jsp._jspService(portlets_002donly_jsp.java:80)
      2 frames
    18. GWT dev
      HttpJspBase.service
      1. org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      1 frame
    19. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
      1 frame
    20. Glassfish Core
      ApplicationDispatcher.include
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      3. org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
      4. org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:593)
      5. org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:530)
      5 frames
    21. GWT dev
      JspRuntimeLibrary.include
      1. org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:954)
      1 frame
    22. jsp.WEB_002dINF.themes
      default_002dtheme_jsp._jspService
      1. jsp.WEB_002dINF.themes.default_002dtheme_jsp._jspx_meth_c_005fotherwise_005f0(default_002dtheme_jsp.java:237)
      2. jsp.WEB_002dINF.themes.default_002dtheme_jsp._jspx_meth_c_005fchoose_005f0(default_002dtheme_jsp.java:180)
      3. jsp.WEB_002dINF.themes.default_002dtheme_jsp._jspService(default_002dtheme_jsp.java:112)
      3 frames
    23. GWT dev
      HttpJspBase.service
      1. org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      1 frame
    24. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
      1 frame
    25. Glassfish Core
      ApplicationDispatcher.forward
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      3. org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
      4. org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:471)
      5. org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:402)
      6. org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:329)
      6 frames
    26. Pluto Portal Driver
      PortalDriverServlet.doGet
      1. org.apache.pluto.driver.PortalDriverServlet.doGet(PortalDriverServlet.java:189)
      1 frame
    27. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:575)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
      2 frames
    28. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      2 frames
    29. org.apache.geronimo
      RedirectByHashFilter.doFilter
      1. org.apache.geronimo.console.filter.RedirectByHashFilter.doFilter(RedirectByHashFilter.java:116)
      1 frame
    30. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      2 frames
    31. org.apache.geronimo
      PlutoURLRebuildFilter.doFilter
      1. org.apache.geronimo.console.filter.PlutoURLRebuildFilter.doFilter(PlutoURLRebuildFilter.java:70)
      1 frame
    32. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      2 frames
    33. org.apache.geronimo
      XSSXSRFFilter.doFilter
      1. org.apache.geronimo.console.filter.XSSXSRFFilter.doFilter(XSSXSRFFilter.java:137)
      1 frame
    34. Glassfish Core
      StandardContextValve.invoke
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
      4 frames
    35. org.apache.geronimo
      ProtectedTargetValve.invoke
      1. org.apache.geronimo.tomcat.security.SecurityValve.invoke(SecurityValve.java:89)
      2. org.apache.geronimo.tomcat.security.jacc.JACCSecurityValve.invoke(JACCSecurityValve.java:54)
      3. org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:730)
      4. org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:48)
      5. org.apache.geronimo.tomcat.valve.ProtectedTargetValve.invoke(ProtectedTargetValve.java:53)
      5 frames
    36. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
      2. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
      3. org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
      4. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
      5. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
      5 frames
    37. Grizzly HTTP
      JIoEndpoint$SocketProcessor.run
      1. org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999)
      2. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565)
      3. org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:309)
      3 frames
    38. Geronimo Framework, Modules :: Core
      ThreadPool$ContextClassLoaderRunnable.run
      1. org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.java:243)
      2. org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run(ThreadPool.java:373)
      2 frames
    39. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      3. java.lang.Thread.run(Thread.java:722)
      3 frames