Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-3686

WebSphere MQ 8 RA - [TCK] Setting message property starting with "JMS" causes: "DetailedMessageFormatException: JMSCC0050: The property name 'JMSCONTEXT' is reserved and cannot be set."

XMLWordPrintable

      Some TCK tests are failing because there is set string property with "JMS" to message. Sending of such message fails with:

      14:47:43,270 ERROR [stderr] (default task-3) com.ibm.msg.client.jms.DetailedMessageFormatException: JMSCC0050: The property name 'JMSCONTEXT' is reserved and cannot be set.
      14:47:43,270 ERROR [stderr] (default task-3) The supplied property name begins with the JMS prefix, but is not one of the supported, settable properties.
      14:47:43,271 ERROR [stderr] (default task-3) Check the property name and correct errors.
      14:47:43,271 ERROR [stderr] (default task-3) 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      14:47:43,272 ERROR [stderr] (default task-3) 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      14:47:43,272 ERROR [stderr] (default task-3) 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      14:47:43,272 ERROR [stderr] (default task-3) 	at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
      14:47:43,272 ERROR [stderr] (default task-3) 	at com.ibm.msg.client.commonservices.j2se.NLSServices.createException(NLSServices.java:319)
      14:47:43,274 ERROR [stderr] (default task-3) 	at com.ibm.msg.client.commonservices.nls.NLSServices.createException(NLSServices.java:226)
      14:47:43,274 ERROR [stderr] (default task-3) 	at com.ibm.msg.client.jms.internal.JmsErrorUtils.createException(JmsErrorUtils.java:126)
      14:47:43,274 ERROR [stderr] (default task-3) 	at com.ibm.msg.client.jms.internal.JmsMessageImpl.checkSettablePropertyName(JmsMessageImpl.java:2640)
      14:47:43,275 ERROR [stderr] (default task-3) 	at com.ibm.msg.client.jms.internal.JmsMessageImpl.setStringProperty(JmsMessageImpl.java:1958)
      14:47:43,275 ERROR [stderr] (default task-3) 	at com.ibm.jms.JMSMessage.setStringProperty(JMSMessage.java:1516)
      14:47:43,275 ERROR [stderr] (default task-3) 	at SimpleServlet.processRequest(SimpleServlet.java:113)
      14:47:43,276 ERROR [stderr] (default task-3) 	at SimpleServlet.doGet(SimpleServlet.java:74)
      14:47:43,276 ERROR [stderr] (default task-3) 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
      14:47:43,276 ERROR [stderr] (default task-3) 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
      14:47:43,276 ERROR [stderr] (default task-3) 	at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)
      14:47:43,277 ERROR [stderr] (default task-3) 	at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
      14:47:43,277 ERROR [stderr] (default task-3) 	at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
      14:47:43,277 ERROR [stderr] (default task-3) 	at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
      14:47:43,277 ERROR [stderr] (default task-3) 	at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
      14:47:43,277 ERROR [stderr] (default task-3) 	at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)
      14:47:43,278 ERROR [stderr] (default task-3) 	at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
      14:47:43,278 ERROR [stderr] (default task-3) 	at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
      14:47:43,278 ERROR [stderr] (default task-3) 	at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
      14:47:43,278 ERROR [stderr] (default task-3) 	at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
      14:47:43,278 ERROR [stderr] (default task-3) 	at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)
      14:47:43,278 ERROR [stderr] (default task-3) 	at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
      14:47:43,279 ERROR [stderr] (default task-3) 	at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)
      14:47:43,279 ERROR [stderr] (default task-3) 	at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
      14:47:43,279 ERROR [stderr] (default task-3) 	at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
      14:47:43,279 ERROR [stderr] (default task-3) 	at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
      14:47:43,279 ERROR [stderr] (default task-3) 	at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
      14:47:43,279 ERROR [stderr] (default task-3) 	at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
      14:47:43,280 ERROR [stderr] (default task-3) 	at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:284)
      14:47:43,280 ERROR [stderr] (default task-3) 	at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:263)
      14:47:43,280 ERROR [stderr] (default task-3) 	at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)
      14:47:43,280 ERROR [stderr] (default task-3) 	at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:174)
      14:47:43,280 ERROR [stderr] (default task-3) 	at io.undertow.server.Connectors.executeRootHandler(Connectors.java:202)
      14:47:43,280 ERROR [stderr] (default task-3) 	at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:793)
      14:47:43,281 ERROR [stderr] (default task-3) 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      14:47:43,281 ERROR [stderr] (default task-3) 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      14:47:43,281 ERROR [stderr] (default task-3) 	at java.lang.Thread.run(Thread.java:745)
      

      Based on WebSphereMQ 8 documentation [1] it's forbidden to set message properties starting with "JMS".

      [1] https://www.ibm.com/support/knowledgecenter/SSFKSJ_8.0.0/com.ibm.mq.dev.doc/q022950_.htm?lang=en

      TCK test fails with completely irrelevant exception in server log - it must be examined in debugger what is the cause of exception:

      08:32:28,948 ERROR [org.jboss.as.ejb3.invocation] (default-threads - 20) WFLYEJB0034: EJB Invocation failed on component MDB_QUEUE for method public void com.sun.ts.tests.jms.ee20.cditests.mdb.MsgBeanQ.onMessage(javax.jms.Message): javax.ejb.EJBTransactionRolledbackException: Failed to send reply to ReplyQueue
      	at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleInCallerTx(CMTTxInterceptor.java:159) [wildfly-ejb3-7.0.0.ER6-redhat-1.jar:7.0.0.ER6-redhat-1]
      	at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInCallerTx(CMTTxInterceptor.java:256) [wildfly-ejb3-7.0.0.ER6-redhat-1.jar:7.0.0.ER6-redhat-1]
      	at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:329) [wildfly-ejb3-7.0.0.ER6-redhat-1.jar:7.0.0.ER6-redhat-1]
      	at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:239) [wildfly-ejb3-7.0.0.ER6-redhat-1.jar:7.0.0.ER6-redhat-1]
      	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
      	at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41) [wildfly-ejb3-7.0.0.ER6-redhat-1.jar:7.0.0.ER6-redhat-1]
      	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
      	at org.jboss.as.ejb3.component.invocationmetrics.WaitTimeInterceptor.processInvocation(WaitTimeInterceptor.java:43) [wildfly-ejb3-7.0.0.ER6-redhat-1.jar:7.0.0.ER6-redhat-1]
      	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
      	at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:100) [wildfly-ejb3-7.0.0.ER6-redhat-1.jar:7.0.0.ER6-redhat-1]
      	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
      	at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64) [wildfly-ejb3-7.0.0.ER6-redhat-1.jar:7.0.0.ER6-redhat-1]
      	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
      	at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:66) [wildfly-ejb3-7.0.0.ER6-redhat-1.jar:7.0.0.ER6-redhat-1]
      	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
      	at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
      	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
      	at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:54) [wildfly-ejb3-7.0.0.ER6-redhat-1.jar:7.0.0.ER6-redhat-1]
      	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
      	at org.jboss.as.ejb3.component.messagedriven.MessageDrivenComponentDescription$5$1.processInvocation(MessageDrivenComponentDescription.java:239) [wildfly-ejb3-7.0.0.ER6-redhat-1.jar:7.0.0.ER6-redhat-1]
      	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
      	at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:64)
      	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
      	at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:356)
      	at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:636)
      	at org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:61)
      	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
      	at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:356)
      	at org.jboss.invocation.PrivilegedWithCombinerInterceptor.processInvocation(PrivilegedWithCombinerInterceptor.java:80)
      	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
      	at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
      	at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:195)
      	at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:185)
      	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
      	at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
      	at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:73)
      	at com.sun.ts.tests.jms.ee20.cditests.mdb.MsgBeanQ$$$view10.onMessage(Unknown Source) [cditestsmdb_ejb.jar:]
      	at sun.reflect.GeneratedMethodAccessor52.invoke(Unknown Source) [:1.8.0_71]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_71]
      	at java.lang.reflect.Method.invoke(Method.java:497) [rt.jar:1.8.0_71]
      	at org.jboss.as.ejb3.inflow.MessageEndpointInvocationHandler.doInvoke(MessageEndpointInvocationHandler.java:139) [wildfly-ejb3-7.0.0.ER6-redhat-1.jar:7.0.0.ER6-redhat-1]
      	at org.jboss.as.ejb3.inflow.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:73) [wildfly-ejb3-7.0.0.ER6-redhat-1.jar:7.0.0.ER6-redhat-1]
      	at com.sun.ts.tests.jms.ee20.cditests.mdb.MsgBeanQ$$$endpoint5.onMessage(Unknown Source) [cditestsmdb_ejb.jar:]
      	at com.ibm.mq.connector.inbound.MessageEndpointWrapper.onMessage(MessageEndpointWrapper.java:151)
      	at com.ibm.mq.jms.MQSession$FacadeMessageListener.onMessage(MQSession.java:129)
      	at com.ibm.msg.client.jms.internal.JmsSessionImpl.run(JmsSessionImpl.java:3189)
      	at com.ibm.mq.jms.MQSession.run(MQSession.java:937)
      	at com.ibm.mq.connector.inbound.ASFWorkImpl.doDelivery(ASFWorkImpl.java:104)
      	at com.ibm.mq.connector.inbound.AbstractWorkImpl.run(AbstractWorkImpl.java:232)
      	at org.jboss.jca.core.workmanager.WorkWrapper.run(WorkWrapper.java:223)
      	at org.jboss.threads.SimpleDirectExecutor.execute(SimpleDirectExecutor.java:33)
      	at org.jboss.threads.QueueExecutor.runTask(QueueExecutor.java:808)
      	at org.jboss.threads.QueueExecutor.access$100(QueueExecutor.java:45)
      	at org.jboss.threads.QueueExecutor$Worker.run(QueueExecutor.java:849)
      	at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_71]
      	at org.jboss.threads.JBossThread.run(JBossThread.java:320)
      Caused by: java.lang.IllegalStateException: Failed to send reply to ReplyQueue
      	at com.sun.ts.tests.jms.ee20.cditests.mdb.MsgBeanQ.sendReplyToQ(MsgBeanQ.java:127) [cditestsmdb_ejb.jar:]
      	at com.sun.ts.tests.jms.ee20.cditests.mdb.MsgBeanQ.onMessage(MsgBeanQ.java:103) [cditestsmdb_ejb.jar:]
      	at sun.reflect.GeneratedMethodAccessor52.invoke(Unknown Source) [:1.8.0_71]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_71]
      	at java.lang.reflect.Method.invoke(Method.java:497) [rt.jar:1.8.0_71]
      	at org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)
      	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
      	at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:437)
      	at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:82) [wildfly-weld-7.0.0.ER6-redhat-1.jar:7.0.0.ER6-redhat-1]
      	at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:93) [wildfly-weld-7.0.0.ER6-redhat-1.jar:7.0.0.ER6-redhat-1]
      	at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
      	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
      	at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43) [wildfly-ejb3-7.0.0.ER6-redhat-1.jar:7.0.0.ER6-redhat-1]
      	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
      	at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:437)
      	at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:73) [weld-core-impl-2.3.3.Final-redhat-1.jar:2.3.3.Final-redhat-1]
      	at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:83) [wildfly-weld-7.0.0.ER6-redhat-1.jar:7.0.0.ER6-redhat-1]
      	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
      	at org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45) [wildfly-ee-7.0.0.ER6-redhat-1.jar:7.0.0.ER6-redhat-1]
      	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
      	at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)
      	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
      	at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
      	at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:52)
      	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
      	at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51) [wildfly-ejb3-7.0.0.ER6-redhat-1.jar:7.0.0.ER6-redhat-1]
      	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
      	at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInCallerTx(CMTTxInterceptor.java:254) [wildfly-ejb3-7.0.0.ER6-redhat-1.jar:7.0.0.ER6-redhat-1]
      	... 54 more
      

      TCK tests failing because of this issue:

      com/sun/ts/tests/jms/ee20/cditests/mdb/Client.java#testCDIInjectionOfMDBWithQueueReplyFromEjb	
      com/sun/ts/tests/jms/ee20/cditests/mdb/Client.java#testCDIInjectionOfMDBWithTopicReplyFromEjb
      

              sgilda_jira Sande Gilda (Inactive)
              mnovak1@redhat.com Miroslav Novak
              Ondřej Kalman Ondřej Kalman (Inactive)
              Ondřej Kalman Ondřej Kalman (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: