org.infinispan.commons.CacheException: java.lang.RuntimeException: Failure to marshal argument(s)

JBoss Issue Tracker | Radoslav Husar | 3 years ago
  1. 0

    The problem is in ViewScopeContextManager, namely {code} getContextMap(facesContext).put(contextual, new ViewScopeContextObject(contextual, creational, name)); {code} probably it needs an artificial ID generated to serve as a key. Also the ViewScopeContextObject needs to be serializable as well among other things {code} class ViewScopeContextObject { {code} Issue manifests as {noformat}[Server:server-one] 19:22:41,564 ERROR [org.infinispan.interceptors.InvocationContextInterceptor] (default task-15) ISPN000136: Execution error: org.infinispan.commons.CacheException: java.lang.RuntimeException: Failure to marshal argument(s) [Server:server-one] at org.infinispan.commons.util.Util.rewrapAsCacheException(Util.java:581) ... [Server:server-one] at org.infinispan.transaction.tm.DummyTransaction.notifyAfterCompletion(DummyTransaction.java:263) [Server:server-one] at org.infinispan.transaction.tm.DummyTransaction.runCommitTx(DummyTransaction.java:312) [Server:server-one] at org.infinispan.transaction.tm.DummyTransaction.commit(DummyTransaction.java:69) [Server:server-one] at org.infinispan.transaction.tm.DummyBaseTransactionManager.commit(DummyBaseTransactionManager.java:80) [Server:server-one] at org.infinispan.batch.BatchContainer.resolveTransaction(BatchContainer.java:101) [Server:server-one] at org.infinispan.batch.BatchContainer.endBatch(BatchContainer.java:83) [Server:server-one] at org.infinispan.batch.BatchContainer.endBatch(BatchContainer.java:64) [Server:server-one] at org.infinispan.CacheImpl.endBatch(CacheImpl.java:777) [Server:server-one] at org.infinispan.AbstractDelegatingCache.endBatch(AbstractDelegatingCache.java:53) [Server:server-one] at org.wildfly.clustering.web.infinispan.InfinispanBatcher$1.end(InfinispanBatcher.java:56) [Server:server-one] at org.wildfly.clustering.web.infinispan.InfinispanBatcher$1.close(InfinispanBatcher.java:46) [Server:server-one] at org.wildfly.clustering.web.undertow.session.DistributableSession.requestDone(DistributableSession.java:72) [Server:server-one] at io.undertow.servlet.spec.ServletContextImpl.updateSessionAccessTime(ServletContextImpl.java:704) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final] [Server:server-one] at io.undertow.servlet.spec.HttpServletResponseImpl.responseDone(HttpServletResponseImpl.java:522) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final] [Server:server-one] at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:287) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final] [Server:server-one] at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:227) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final] [Server:server-one] at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:73) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final] [Server:server-one] at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:146) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final] [Server:server-one] at io.undertow.server.Connectors.executeRootHandler(Connectors.java:168) [undertow-core-1.0.0.Final.jar:1.0.0.Final] [Server:server-one] at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:687) [undertow-core-1.0.0.Final.jar:1.0.0.Final] [Server:server-one] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_51] [Server:server-one] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_51] [Server:server-one] at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_51] [Server:server-one] Caused by: java.lang.RuntimeException: Failure to marshal argument(s) [Server:server-one] at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.marshallCall(CommandAwareRpcDispatcher.java:333) [Server:server-one] at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.processSingleCall(CommandAwareRpcDispatcher.java:352) [Server:server-one] at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.invokeRemoteCommand(CommandAwareRpcDispatcher.java:167) [Server:server-one] ... 76 more [Server:server-one] Caused by: org.infinispan.commons.marshall.NotSerializableException: org.jboss.weld.bean.ManagedBean [Server:server-one] Caused by: an exception which occurred: [Server:server-one] in object java.util.HashMap@b37422bb [Server:server-one] in object org.jboss.as.clustering.marshalling.SimpleMarshalledValue@b37422bb [Server:server-one] in object org.infinispan.commands.write.PutKeyValueCommand@db517a36 [Server:server-one] in object org.infinispan.commands.tx.PrepareCommand@6fa34718 {noformat}

    JBoss Issue Tracker | 3 years ago | Radoslav Husar
    org.infinispan.commons.CacheException: java.lang.RuntimeException: Failure to marshal argument(s)
  2. 0

    GitHub comment 9200#248413353

    GitHub | 3 months ago | wildfly-ci
    org.infinispan.commons.CacheException: Unable to invoke method public void org.infinispan.eviction.impl.PassivationManagerImpl.passivateAll() throws org.infinispan.persistence.spi.PersistenceException on object of type PassivationManagerImpl
  3. 0

    GitHub comment 8149#241017247

    GitHub | 4 months ago | wildfly-ci
    org.infinispan.commons.CacheException: Unable to invoke method public void org.infinispan.eviction.impl.PassivationManagerImpl.passivateAll() throws org.infinispan.persistence.spi.PersistenceException on object of type PassivationManagerImpl
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Wildfly 9.0.x Excluding Infinispan

    Stack Overflow | 5 months ago | Alex
    org.infinispan.commons.CacheException: Unable to construct a GlobalComponentRegistry! 20:53:09,040 INFO [stdout] (AsyncAppender-asyncConsole) at org.infinispan.factories.GlobalComponentRegistry.<init>(GlobalComponentRegistry.java:136) ~[infinispan-core-7.2.3.Final.jar!/:7.2.3.Final]
  6. 0

    GitHub comment 8998#242368071

    GitHub | 3 months ago | wildfly-ci
    org.infinispan.commons.CacheException: Unable to invoke method public void org.infinispan.eviction.impl.PassivationManagerImpl.passivateAll() throws org.infinispan.persistence.spi.PersistenceException on object of type PassivationManagerImpl

    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. org.infinispan.commons.CacheException

      java.lang.RuntimeException: Failure to marshal argument(s)

      at org.infinispan.commons.util.Util.rewrapAsCacheException()
    2. Infinispan Commons
      Util.rewrapAsCacheException
      1. org.infinispan.commons.util.Util.rewrapAsCacheException(Util.java:581)
      1 frame