2 Replies Latest reply on Nov 28, 2017 3:48 AM by Hannes Bjurek

    Wildfly 11 upgrade, problems with Websockets

    Hannes Bjurek Newbie

      We are having problem while upgrading to wildfly 11 from 10.1. We get this error in logs

       

      Why on earth does wildlfy try to put out Websocket endpoints instances inside a cache?

      consumer_1     | 14:20:10,163 WARN  [org.infinispan.transaction.tm.DummyTransaction] (default task-8) ISPN000112: exception while committing: javax.transaction.xa.XAException

      consumer_1     | at org.infinispan.transaction.impl.TransactionCoordinator.handleCommitFailure(TransactionCoordinator.java:213)

      consumer_1     | at org.infinispan.transaction.impl.TransactionCoordinator.commit(TransactionCoordinator.java:159)

      consumer_1     | at org.infinispan.transaction.xa.TransactionXaAdapter.commit(TransactionXaAdapter.java:114)

      consumer_1     | at org.infinispan.transaction.tm.DummyTransaction.finishResource(DummyTransaction.java:401)

      consumer_1     | at org.infinispan.transaction.tm.DummyTransaction.commitResources(DummyTransaction.java:448)

      consumer_1     | at org.infinispan.transaction.tm.DummyTransaction.runCommit(DummyTransaction.java:321)

      consumer_1     | at org.infinispan.transaction.tm.DummyTransaction.commit(DummyTransaction.java:108)

      consumer_1     | at org.wildfly.clustering.ee.infinispan.InfinispanBatch.close(InfinispanBatch.java:97)

      consumer_1     | at org.jboss.as.ejb3.cache.distributable.DistributableCache.release(DistributableCache.java:154)

      consumer_1     | at org.jboss.as.ejb3.component.stateful.StatefulSessionSynchronizationInterceptor.releaseInstance(StatefulSessionSynchronizationInterceptor.java:200)

      consumer_1     | at org.jboss.as.ejb3.component.stateful.StatefulSessionSynchronizationInterceptor.handleAfterCompletion(StatefulSessionSynchronizationInterceptor.java:287)

      consumer_1     | at org.jboss.as.ejb3.component.stateful.StatefulSessionSynchronizationInterceptor$StatefulSessionSynchronization.afterCompletion(StatefulSessionSynchronizationInterceptor.java:260)

      consumer_1     | at org.jboss.as.txn.service.internal.tsr.JCAOrderedLastSynchronizationList.afterCompletion(JCAOrderedLastSynchronizationList.java:147)

      consumer_1     | at org.wildfly.transaction.client.AbstractTransaction.performConsumer(AbstractTransaction.java:196)

      consumer_1     | at org.wildfly.transaction.client.AbstractTransaction$AssociatingSynchronization.afterCompletion(AbstractTransaction.java:279)

      consumer_1     | at com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.afterCompletion(SynchronizationImple.java:96)

      consumer_1     | at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.afterCompletion(TwoPhaseCoordinator.java:542)

      consumer_1     | at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:101)

      consumer_1     | at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:162)

      consumer_1     | at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1289)

      consumer_1     | at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:126)

      consumer_1     | at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:89)

      consumer_1     | at org.wildfly.transaction.client.LocalTransaction.commitAndDissociate(LocalTransaction.java:73)

      consumer_1     | at org.wildfly.transaction.client.ContextTransactionManager.commit(ContextTransactionManager.java:71)

      consumer_1     | at org.jboss.as.ejb3.tx.CMTTxInterceptor.endTransaction(CMTTxInterceptor.java:92)

      consumer_1     | at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:279)

      consumer_1     | at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:332)

      consumer_1     | at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:240)

      consumer_1     | at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

      consumer_1     | at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:509)

      consumer_1     | at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:73)

      consumer_1     | at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:89)

      consumer_1     | at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

      consumer_1     | at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)

      consumer_1     | at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

      consumer_1     | at org.jboss.as.ejb3.component.invocationmetrics.WaitTimeInterceptor.processInvocation(WaitTimeInterceptor.java:47)

      consumer_1     | at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

      consumer_1     | at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:100)

      consumer_1     | at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

      consumer_1     | at org.jboss.as.ejb3.deployment.processors.StartupAwaitInterceptor.processInvocation(StartupAwaitInterceptor.java:22)

      consumer_1     | at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

      consumer_1     | at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64)

      consumer_1     | at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

      consumer_1     | at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:67)

      consumer_1     | at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

      consumer_1     | at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)

      consumer_1     | at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

      consumer_1     | at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:54)

      consumer_1     | at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

      consumer_1     | at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:60)

      consumer_1     | at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

      consumer_1     | at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:438)

      consumer_1     | at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:609)

      consumer_1     | at org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:57)

      consumer_1     | at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

      consumer_1     | at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:53)

      consumer_1     | at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:198)

      consumer_1     | at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:185)

      consumer_1     | at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:81)

      consumer_1     | at com.<company>.<product>.WebsocketEndpoint$$$view1.onClose(Unknown Source)

      consumer_1     | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      consumer_1     | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

      consumer_1     | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      consumer_1     | at java.lang.reflect.Method.invoke(Method.java:498)

      consumer_1     | at io.undertow.websockets.jsr.annotated.BoundMethod.invoke(BoundMethod.java:87)

      consumer_1     | at io.undertow.websockets.jsr.annotated.AnnotatedEndpoint$4.run(AnnotatedEndpoint.java:201)

      consumer_1     | at io.undertow.websockets.jsr.ServerWebSocketContainer$1.call(ServerWebSocketContainer.java:162)

      consumer_1     | at io.undertow.websockets.jsr.ServerWebSocketContainer$1.call(ServerWebSocketContainer.java:159)

      consumer_1     | at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)

      consumer_1     | at org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105)

      consumer_1     | at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)

      consumer_1     | at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)

      consumer_1     | at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)

      consumer_1     | at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)

      consumer_1     | at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)

      consumer_1     | at io.undertow.websockets.jsr.ServerWebSocketContainer.invokeEndpointMethod(ServerWebSocketContainer.java:575)

      consumer_1     | at io.undertow.websockets.jsr.ServerWebSocketContainer$6.run(ServerWebSocketContainer.java:561)

      consumer_1     | at io.undertow.websockets.jsr.OrderedExecutor$ExecutorTask.run(OrderedExecutor.java:67)

      consumer_1     | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

      consumer_1     | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

      consumer_1     | at java.lang.Thread.run(Thread.java:748)

      consumer_1     | Caused by: org.infinispan.commons.marshall.NotSerializableException: io.undertow.servlet.spec.HttpSessionImpl

      consumer_1     | Caused by: an exception which occurred:

      consumer_1     | in field com.<company>.<product>.WebsocketEndpoint.httpSession

      consumer_1     | in object com.<company>.<product>.WebsocketEndpoint@212a4249

      consumer_1     | in field org.jboss.as.weld.injection.WeldManagedReferenceFactory$WeldManagedReference.instance

      consumer_1     | in object org.jboss.as.weld.injection.WeldManagedReferenceFactory$WeldManagedReference@faa2f7b

      consumer_1     | in field org.jboss.as.ejb3.component.stateful.SerializedStatefulSessionComponent.instance

      consumer_1     | in object org.jboss.as.ejb3.component.stateful.SerializedStatefulSessionComponent@7a4cc93

      consumer_1     | in object org.jboss.as.ejb3.component.stateful.StatefulSessionComponentInstance@613b6405

      consumer_1     | in object java.util.concurrent.ConcurrentHashMap@ac61dc57

      consumer_1     | in object org.wildfly.clustering.ejb.infinispan.group.InfinispanBeanGroupEntry@20a80eea

      consumer_1     | in object org.infinispan.commands.write.PutKeyValueCommand@e70f8ad8

      consumer_1     | in object org.infinispan.commands.tx.PrepareCommand@31f07ec4