com.tc.exception.TCNonPortableObjectError: ******************************************************************************* Attempt to share an instance of a non-portable class by passing it as an argument to a method of a logically-managed class. This unshareable class has not been included for sharing in the configuration. For more information on this issue, please visit our Troubleshooting Guide at: http://www.terracotta.org/kit/reflector?kitID=default&pageID=npoe Thread : pool-1-thread-1 JVM ID : VM(1) Logically-managed class name: org.terracotta.collections.ConcurrentBlockingQueue Logical method name : put(Object) Non-included class : com.google.chrome.zahra.data.structs.WorkPacket Under most circumstances, you should only be adding classes for your application. If you are adding classes for frameworks or code not written by you, then you should consider finding a Terracotta Integration Module (TIM) that matches the framework you are using. As an example, if the non-portable class listed below is net.sf.ehcache.CacheManager, you should consider using the ehcache TIM. It is also possible that some or all of the classes above are truly non-portable, the solution is then to mark the referring field as transient. For more information on non-portable classes see the Troubleshooting Guide. Action to take: 1) Reconfigure to include the unshareable classes * edit your tc-config.xml file * locate the <dso> element * add this snippet inside the <dso> element <instrumented-classes> <include> <class-expression>com.google.chrome.zahra.data.structs.WorkPacket</class-expression> </include> </instrumented-classes> * if there is already an <instrumented-classes> element present, simply add the new includes inside it *******************************************************************************

Terracotta | arthaha | 6 years ago
  1. 0

    com.tc.exception.TCNonPortableObjectError

    Terracotta | 6 years ago | arthaha
    com.tc.exception.TCNonPortableObjectError: ******************************************************************************* Attempt to share an instance of a non-portable class by passing it as an argument to a method of a logically-managed class. This unshareable class has not been included for sharing in the configuration. For more information on this issue, please visit our Troubleshooting Guide at: http://www.terracotta.org/kit/reflector?kitID=default&pageID=npoe Thread : pool-1-thread-1 JVM ID : VM(1) Logically-managed class name: org.terracotta.collections.ConcurrentBlockingQueue Logical method name : put(Object) Non-included class : com.google.chrome.zahra.data.structs.WorkPacket Under most circumstances, you should only be adding classes for your application. If you are adding classes for frameworks or code not written by you, then you should consider finding a Terracotta Integration Module (TIM) that matches the framework you are using. As an example, if the non-portable class listed below is net.sf.ehcache.CacheManager, you should consider using the ehcache TIM. It is also possible that some or all of the classes above are truly non-portable, the solution is then to mark the referring field as transient. For more information on non-portable classes see the Troubleshooting Guide. Action to take: 1) Reconfigure to include the unshareable classes * edit your tc-config.xml file * locate the <dso> element * add this snippet inside the <dso> element <instrumented-classes> <include> <class-expression>com.google.chrome.zahra.data.structs.WorkPacket</class-expression> </include> </instrumented-classes> * if there is already an <instrumented-classes> element present, simply add the new includes inside it *******************************************************************************
  2. 0

    Re:Problem with classloader on JBoss 5.1.0.GA

    Terracotta | 6 years ago | dlukow
    com.tc.exception.TCNonPortableObjectError: ******************************************************************************* Attempt to share an instance of a non-portable class by passing it as an argument to a method of a logically-managed class. This unshareable class has not been included for sharing in the configuration. For more information on this issue, please visit our Troubleshooting Guide at: http://www.terracotta.org/kit/reflector?kitID=default&pageID=npoe Thread : http-127.0.0.1-8080-1 JVM ID : VM(0) Logically-managed class name: java.util.HashMap Logical method name : put(Object,Object) Non-included class : a.b.c.web.common.login.LoginContext Under most circumstances, you should only be adding classes for your application. If you are adding classes for frameworks or code not written by you, then you should consider finding a Terracotta Integration Module (TIM) that matches the framework you are using. As an example, if the non-portable class listed below is net.sf.ehcache.CacheManager, you should consider using the ehcache TIM. It is also possible that some or all of the classes above are truly non-portable, the solution is then to mark the referring field as transient. For more information on non-portable classes see the Troubleshooting Guide. Action to take: 1) Reconfigure to include the unshareable classes * edit your tc-config.xml file * locate the <dso> element * add this snippet inside the <dso> element <instrumented-classes> <include> <class-expression>a.b.c.web.common.login.LoginContext</class-expression> </include> </instrumented-classes> * if there is already an <instrumented-classes> element present, simply add the new includes inside it *******************************************************************************
  3. 0

    Integrating Terracotta with a Grails-App

    Terracotta | 8 years ago | cihan
    com.tc.exception.TCNonPortableObjectError: ******************************************************************************* Attempt to share an instance of a non-portable class by passing it as an argument to a method of a logically-managed class. This unshareable class has not been included for sharing in the configuration. For more information on this issue, please visit our Troubleshooting Guide at: http://terracotta.org/kit/troubleshooting Thread : http-8188-Processor2 JVM ID : VM(2) Logically-managed class name: java.util.HashMap Logical method name : put(Object,Object) Non-included classes : org.codehaus.groovy.runtime.GStringImpl, groovy.lang.GString, groovy.lang.GroovyObjectSupport Under most circumstances, you should only be adding classes for your application. If you are adding classes for frameworks or code not written by you, then you should consider finding a Terracotta Integration Module (TIM) that matches the framework you are using. As an example, if the non-portable class listed below is net.sf.ehcache.CacheManager, you should consider using the ehcache TIM. It is also possible that some or all of the classes above are truly non-portable, the solution is then to mark the referring field as transient. For more information on non-portable classes see the Troubleshooting Guide. Action to take: 1) Reconfigure to include the unshareable classes * edit your tc-config.xml file * locate the <dso> element * add this snippet inside the <dso> element <instrumented-classes> <include> <class-expression>org.codehaus.groovy.runtime.GStringImpl</class-expression> </include> <include> <class-expression>groovy.lang.GString</class-expression> </include> <include> <class-expression>groovy.lang.GroovyObjectSupport</class-expression> </include> </instrumented-classes> * if there is already an <instrumented-classes> element present, simply add the new includes inside it *******************************************************************************
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Problem with classloader on JBoss 5.1.0.GA

    terracotta.org | 11 months ago
    com.tc.exception.TCNonPortableObjectError: ******************************************************************************* Attempt to share an instance of a non-portable class by passing it as an argument to a method of a logically-managed class. This unshareable class has not been included for sharing in the configuration. For more information on this issue, please visit our Troubleshooting Guide at: Thread : http-127.0.0.1-8080-1 JVM ID : VM(0) Logically-managed class name: java.util.HashMap Logical method name : put(Object,Object) Non-included class : a.b.c.web.common.login.LoginContext Under most circumstances, you should only be adding classes for your application. If you are adding classes for frameworks or code not written by you, then you should consider finding a Terracotta Integration Module (TIM) that matches the framework you are using. As an example, if the non-portable class listed below is net.sf.ehcache.CacheManager, you should consider using the ehcache TIM. It is also possible that some or all of the classes above are truly non-portable, the solution is then to mark the referring field as transient. For more information on non-portable classes see the Troubleshooting Guide. Action to take: 1) Reconfigure to include the unshareable classes * edit your tc-config.xml file * locate the <dso> element * add this snippet inside the <dso> element <instrumented-classes> <include> <class-expression>a.b.c.web.common.login.LoginContext</class-expression> </include> </instrumented-classes> * if there is already an <instrumented-classes> element present, simply add the new includes inside it *******************************************************************************
  6. 0

    If you're using a container TIM (e.g. tim-tomcat-6.0) and want to use something else that depends on the EE toolkit (eg. tim-ehcache-2.x-ee) you currently need to list explicit toolkit references in tc-config.xml (see DEV-5524). Doing that you might end up with a <modules> section like this: {quote} <modules> <module name="tim-tomcat-6.0" version="2.2.2"/> <module name="tim-ehcache-2.x-ee" version="1.7.0"/> <module group-id="org.terracotta.toolkit" name="terracotta-toolkit-1.2" version="3.0.0"/> <module group-id="org.terracotta.toolkit" name="terracotta-toolkit-1.2-ee" version="3.0.0"/> </modules> {quote} Unfortunately doing that will let an <include> in the toolkit decide the honor-transient setting for org.terracotta.modules.ehcache.store.ClusteredStore (specifically the include for org.terracotta.cache.logging.ConfigChangeListener+) Ultimately you'll end up with this exception since the transients aren't honored. A workaround is to list tim-ehcache-2.x-ee last in the <modules> list {quote} com.tc.exception.TCNonPortableObjectError: ******************************************************************************* Attempt to share an instance of a non-portable class referenced by a portable class. This unshareable class has not been included for sharing in the configuration. For more information on this issue, please visit our Troubleshooting Guide at: http://www.terracotta.org/kit/reflector?kitID=default&pageID=npoe Referring class : org.terracotta.modules.ehcache.store.EnterpriseClusteredStore Referring field : org.terracotta.modules.ehcache.store.ClusteredStore.nonStrictBackend Non-portable field name: org.terracotta.modules.ehcache.store.ClusteredStore.nonStrictBackend Thread : main JVM ID : VM(1) Non-included class : org.terracotta.modules.ehcache.store.backend.NonStrictBackend Under most circumstances, you should only be adding classes for your application. If you are adding classes for frameworks or code not written by you, then you should consider finding a Terracotta Integration Module (TIM) that matches the framework you are using. As an example, if the non-portable class listed below is net.sf.ehcache.CacheManager, you should consider using the ehcache TIM. It is also possible that some or all of the classes above are truly non-portable, the solution is then to mark the referring field as transient. For more information on non-portable classes see the Troubleshooting Guide. Action to take: 1) Reconfigure to include the unshareable classes * edit your tc-config.xml file * locate the <dso> element * add this snippet inside the <dso> element <instrumented-classes> <include> <class-expression>org.terracotta.modules.ehcache.store.backend.NonStrictBackend</class-expression> </include> </instrumented-classes> * if there is already an <instrumented-classes> element present, simply add the new includes inside it ******************************************************************************* at com.tc.object.ClientObjectManagerImpl.throwNonPortableException(ClientObjectManagerImpl.java:798) at com.tc.object.ClientObjectManagerImpl.checkPortabilityOfTraversedReference(ClientObjectManagerImpl.java:689) at com.tc.object.ClientObjectManagerImpl.access$700(ClientObjectManagerImpl.java:84) at com.tc.object.ClientObjectManagerImpl$NewObjectTraverseTest.checkPortability(ClientObjectManagerImpl.java:1071) at com.tc.object.Traverser.addReferencedObjects(Traverser.java:47) at com.tc.object.Traverser.traverse(Traverser.java:81) at com.tc.object.ClientObjectManagerImpl.traverse(ClientObjectManagerImpl.java:962) at com.tc.object.ClientObjectManagerImpl.create(ClientObjectManagerImpl.java:307) at com.tc.object.ClientObjectManagerImpl.lookupOrCreateIfNecesary(ClientObjectManagerImpl.java:354) at com.tc.object.ClientObjectManagerImpl.lookupOrCreate(ClientObjectManagerImpl.java:335) at com.tc.object.tx.ClientTransactionManagerImpl.logicalInvoke(ClientTransactionManagerImpl.java:511) at com.tc.object.TCObjectLogical.logicalInvoke(TCObjectLogical.java:17) at com.tc.object.bytecode.ManagerImpl.logicalInvoke(ManagerImpl.java:338) at com.tc.object.bytecode.ManagerUtil.logicalInvoke(ManagerUtil.java:325) at com.terracotta.toolkit.collections.ConcurrentDistributedMapDso.doLogicalPut(ConcurrentDistributedMapDso.java:158) at com.terracotta.toolkit.collections.ConcurrentDistributedMapDso.putIfAbsent(ConcurrentDistributedMapDso.java:508) at com.terracotta.toolkit.collections.ConcurrentDistributedMapDsoArray.putIfAbsent(ConcurrentDistributedMapDsoArray.java:176) at org.terracotta.collections.ConcurrentDistributedMap.putIfAbsent(ConcurrentDistributedMap.java:144) at org.terracotta.modules.ehcache.store.TerracottaClusteredInstanceFactory.getOrCreateStoreInternal(TerracottaClusteredInstanceFactory.java:244) at org.terracotta.modules.ehcache.store.TerracottaClusteredInstanceFactory.getOrCreateStore(TerracottaClusteredInstanceFactory.java:229) at org.terracotta.modules.ehcache.store.TerracottaClusteredInstanceFactory.getOrCreateStore(TerracottaClusteredInstanceFactory.java:122) at org.terracotta.modules.ehcache.store.TerracottaClusteredInstanceFactory.createStore(TerracottaClusteredInstanceFactory.java:116) at net.sf.ehcache.terracotta.ClusteredInstanceFactoryWrapper.createStore(ClusteredInstanceFactoryWrapper.java:81) at net.sf.ehcache.CacheManager.createTerracottaStore(CacheManager.java:456) at net.sf.ehcache.Cache.initialise(Cache.java:1050) at net.sf.ehcache.CacheManager.addCacheNoCheck(CacheManager.java:1057) at net.sf.ehcache.CacheManager.addCache(CacheManager.java:980) {quote}

    Terracotta Project Issue Tracker | 6 years ago | Tim Eck
    com.tc.exception.TCNonPortableObjectError: ******************************************************************************* Attempt to share an instance of a non-portable class referenced by a portable class. This unshareable class has not been included for sharing in the configuration. For more information on this issue, please visit our Troubleshooting Guide at: http://www.terracotta.org/kit/reflector?kitID=default&pageID=npoe Referring class : org.terracotta.modules.ehcache.store.EnterpriseClusteredStore Referring field : org.terracotta.modules.ehcache.store.ClusteredStore.nonStrictBackend Non-portable field name: org.terracotta.modules.ehcache.store.ClusteredStore.nonStrictBackend Thread : main JVM ID : VM(1) Non-included class : org.terracotta.modules.ehcache.store.backend.NonStrictBackend Under most circumstances, you should only be adding classes for your application. If you are adding classes for frameworks or code not written by you, then you should consider finding a Terracotta Integration Module (TIM) that matches the framework you are using. As an example, if the non-portable class listed below is net.sf.ehcache.CacheManager, you should consider using the ehcache TIM. It is also possible that some or all of the classes above are truly non-portable, the solution is then to mark the referring field as transient. For more information on non-portable classes see the Troubleshooting Guide. Action to take: 1) Reconfigure to include the unshareable classes * edit your tc-config.xml file * locate the <dso> element * add this snippet inside the <dso> element <instrumented-classes> <include> <class-expression>org.terracotta.modules.ehcache.store.backend.NonStrictBackend</class-expression> </include> </instrumented-classes> * if there is already an <instrumented-classes> element present, simply add the new includes inside it *******************************************************************************

    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.tc.exception.TCNonPortableObjectError

      ******************************************************************************* Attempt to share an instance of a non-portable class by passing it as an argument to a method of a logically-managed class. This unshareable class has not been included for sharing in the configuration. For more information on this issue, please visit our Troubleshooting Guide at: http://www.terracotta.org/kit/reflector?kitID=default&pageID=npoe Thread : pool-1-thread-1 JVM ID : VM(1) Logically-managed class name: org.terracotta.collections.ConcurrentBlockingQueue Logical method name : put(Object) Non-included class : com.google.chrome.zahra.data.structs.WorkPacket Under most circumstances, you should only be adding classes for your application. If you are adding classes for frameworks or code not written by you, then you should consider finding a Terracotta Integration Module (TIM) that matches the framework you are using. As an example, if the non-portable class listed below is net.sf.ehcache.CacheManager, you should consider using the ehcache TIM. It is also possible that some or all of the classes above are truly non-portable, the solution is then to mark the referring field as transient. For more information on non-portable classes see the Troubleshooting Guide. Action to take: 1) Reconfigure to include the unshareable classes * edit your tc-config.xml file * locate the <dso> element * add this snippet inside the <dso> element <instrumented-classes> <include> <class-expression>com.google.chrome.zahra.data.structs.WorkPacket</class-expression> </include> </instrumented-classes> * if there is already an <instrumented-classes> element present, simply add the new includes inside it *******************************************************************************

      at com.tc.object.ClientObjectManagerImpl.throwNonPortableException()
    2. com.tc.object
      ManagerUtil.logicalInvokeWithTransaction
      1. com.tc.object.ClientObjectManagerImpl.throwNonPortableException(ClientObjectManagerImpl.java:792)
      2. com.tc.object.ClientObjectManagerImpl.checkPortabilityOfLogicalAction(ClientObjectManagerImpl.java:765)
      3. com.tc.object.tx.ClientTransactionManagerImpl.logicalInvoke(ClientTransactionManagerImpl.java:507)
      4. com.tc.object.TCObjectLogical.logicalInvoke(TCObjectLogical.java:17)
      5. com.tc.object.bytecode.ManagerImpl.logicalInvoke(ManagerImpl.java:298)
      6. com.tc.object.bytecode.ManagerImpl.logicalInvokeWithTransaction(ManagerImpl.java:313)
      7. com.tc.object.bytecode.ManagerUtil.logicalInvokeWithTransaction(ManagerUtil.java:338)
      7 frames
    3. org.terracotta.collections
      ConcurrentBlockingQueue.offer
      1. org.terracotta.collections.ConcurrentBlockingQueue.offer(ConcurrentBlockingQueue.java:221)
      1 frame
    4. Java RT
      AbstractQueue.add
      1. java.util.AbstractQueue.add(Unknown Source)
      1 frame
    5. com.google.chrome
      WorkPacketManager.addPacket
      1. com.google.chrome.zahra.WorkPacketManager.addPacket(WorkPacketManager.java:53)
      1 frame
    6. Java RT
      Thread.run
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      4. java.lang.reflect.Method.invoke(Unknown Source)
      5. com.sun.xml.internal.ws.api.server.InstanceResolver$1.invoke(Unknown Source)
      6. com.sun.xml.internal.ws.server.InvokerTube$2.invoke(Unknown Source)
      7. com.sun.xml.internal.ws.server.sei.EndpointMethodHandler.invoke(Unknown Source)
      8. com.sun.xml.internal.ws.server.sei.SEIInvokerTube.processRequest(Unknown Source)
      9. com.sun.xml.internal.ws.api.pipe.Fiber.__doRun(Unknown Source)
      10. com.sun.xml.internal.ws.api.pipe.Fiber._doRun(Unknown Source)
      11. com.sun.xml.internal.ws.api.pipe.Fiber.doRun(Unknown Source)
      12. com.sun.xml.internal.ws.api.pipe.Fiber.runSync(Unknown Source)
      13. com.sun.xml.internal.ws.server.WSEndpointImpl$2.process(Unknown Source)
      14. com.sun.xml.internal.ws.transport.http.HttpAdapter$HttpToolkit.handle(Unknown Source)
      15. com.sun.xml.internal.ws.transport.http.HttpAdapter.handle(Unknown Source)
      16. com.sun.xml.internal.ws.transport.http.server.WSHttpHandler.handleExchange(Unknown Source)
      17. com.sun.xml.internal.ws.transport.http.server.WSHttpHandler.handle(Unknown Source)
      18. com.sun.net.httpserver.Filter$Chain.doFilter(Unknown Source)
      19. sun.net.httpserver.AuthFilter.doFilter(Unknown Source)
      20. com.sun.net.httpserver.Filter$Chain.doFilter(Unknown Source)
      21. sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(Unknown Source)
      22. com.sun.net.httpserver.Filter$Chain.doFilter(Unknown Source)
      23. sun.net.httpserver.ServerImpl$Exchange.run(Unknown Source)
      24. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
      25. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      26. java.lang.Thread.run(Unknown Source)
      26 frames