3 Replies Latest reply on Nov 14, 2016 9:50 AM by mhnvelu

    ActiveMQ artemis class loader issue in Wildfly10

    prabhu.perumal

      Hi All,

       

      I'm new to Wildfly10 application deployment. I have an ear project, which posts messages in JMS queue. I'm facing the following class loader error

       

      10:29:59,509 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963)) javax.jms.JMSException: com.test.common.CsvImportQueue from [Module "org.apache.activemq.artemis:main" from local module loader @46f5f779 (finder: local module finder @1c2c22f3 (roots: C:\Softs\wildfly-10\modules,C:\Softs\wildfly-10\modules\system\layers\base))]

      10:29:59,515 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:198)

      10:29:59,517 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:363)

      10:29:59,518 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:351)

      10:29:59,519 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:93)

      10:29:59,519 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at java.lang.Class.forName0(Native Method)

      10:29:59,520 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at java.lang.Class.forName(Class.java:348)

      10:29:59,520 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:626)

      10:29:59,521 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.apache.activemq.artemis.utils.ObjectInputStreamWithClassLoader.resolveClass0(ObjectInputStreamWithClassLoader.java:107)

      10:29:59,524 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.apache.activemq.artemis.utils.ObjectInputStreamWithClassLoader.resolveClass(ObjectInputStreamWithClassLoader.java:52)

      10:29:59,533 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1613)

      10:29:59,534 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1518)

      10:29:59,534 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1774)

      10:29:59,535 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)

      10:29:59,535 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at java.io.ObjectInputStream.readObject(ObjectInputStream.java:371)

      10:29:59,536 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.apache.activemq.artemis.jms.client.ActiveMQObjectMessage.getObject(ActiveMQObjectMessage.java:139)

      10:29:59,536 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.wsol.hr.ejb.HireIqBusDelegateEjb.onMessage(HireIqBusDelegateEjb.java:74)

      10:29:59,536 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      10:29:59,537 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

      10:29:59,537 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      10:29:59,538 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at java.lang.reflect.Method.invoke(Method.java:497)

      10:29:59,538 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)

      10:29:59,539 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

      10:29:59,540 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43)

      10:29:59,549 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

      10:29:59,550 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45)

      10:29:59,552 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

      10:29:59,552 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)

      10:29:59,553 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

      10:29:59,553 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

      10:29:59,554 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:52)

      10:29:59,554 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

      10:29:59,555 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51)

      10:29:59,555 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

      10:29:59,557 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInCallerTx(CMTTxInterceptor.java:254)

      10:29:59,565 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:329)

      10:29:59,566 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:239)

      10:29:59,567 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

      10:29:59,568 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)

      10:29:59,568 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

      10:29:59,569 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.jboss.as.ejb3.component.invocationmetrics.WaitTimeInterceptor.processInvocation(WaitTimeInterceptor.java:47)

      10:29:59,570 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

      10:29:59,570 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:100)

      10:29:59,570 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

      10:29:59,571 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.jboss.as.ejb3.deployment.processors.StartupAwaitInterceptor.processInvocation(StartupAwaitInterceptor.java:22)

      10:29:59,572 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

      10:29:59,574 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64)

      10:29:59,584 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

      10:29:59,586 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.jboss.as.ejb3.deployment.processors.EjbSuspendInterceptor.processInvocation(EjbSuspendInterceptor.java:53)

      10:29:59,587 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

      10:29:59,587 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:67)

      10:29:59,589 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

      10:29:59,590 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)

      10:29:59,594 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

      10:29:59,601 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:54)

      10:29:59,601 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

      10:29:59,602 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.jboss.as.ejb3.component.messagedriven.MessageDrivenComponentDescription$5$1.processInvocation(MessageDrivenComponentDescription.java:239)

      10:29:59,602 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

      10:29:59,604 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:64)

      10:29:59,604 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

      10:29:59,607 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:356)

      10:29:59,615 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:636)

      10:29:59,618 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:61)

      10:29:59,619 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

      10:29:59,619 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:356)

      10:29:59,620 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.jboss.invocation.PrivilegedWithCombinerInterceptor.processInvocation(PrivilegedWithCombinerInterceptor.java:80)

      10:29:59,621 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

      10:29:59,628 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

      10:29:59,635 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:198)

      10:29:59,636 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:185)

      10:29:59,636 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

      10:29:59,637 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

      10:29:59,640 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:73)

      10:29:59,650 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.wsol.hr.ejb.HireIqBusDelegateEjb$$$view4.onMessage(Unknown Source)

      10:29:59,661 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      10:29:59,667 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

      10:29:59,669 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      10:29:59,687 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at java.lang.reflect.Method.invoke(Method.java:497)

      10:29:59,690 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.jboss.as.ejb3.inflow.MessageEndpointInvocationHandler.doInvoke(MessageEndpointInvocationHandler.java:139)

      10:29:59,700 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.jboss.as.ejb3.inflow.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:73)

      10:29:59,702 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.wsol.hr.ejb.HireIqBusDelegateEjb$$$endpoint3.onMessage(Unknown Source)

      10:29:59,704 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.apache.activemq.artemis.ra.inflow.ActiveMQMessageHandler.onMessage(ActiveMQMessageHandler.java:310)

      10:29:59,752 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.apache.activemq.artemis.core.client.impl.ClientConsumerImpl.callOnMessage(ClientConsumerImpl.java:1018)

      10:29:59,763 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.apache.activemq.artemis.core.client.impl.ClientConsumerImpl.access$400(ClientConsumerImpl.java:48)

      10:29:59,781 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.apache.activemq.artemis.core.client.impl.ClientConsumerImpl$Runner.run(ClientConsumerImpl.java:1145)

      10:29:59,808 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at org.apache.activemq.artemis.utils.OrderedExecutorFactory$OrderedExecutor$ExecutorTask.run(OrderedExecutorFactory.java:103)

      10:29:59,816 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

      10:29:59,821 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

      10:29:59,835 ERROR [stderr] (Thread-23 (ActiveMQ-client-global-threads-1354947963))     at java.lang.Thread.run(Thread.java:745)

       

      I have also tried to fix the issue by adding modules to Manifest file & jboss-deployment-structure file.

       

       

      Note: attached jms configuration file & jboss-deployment-structure file for reference