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://terracotta.org/kit/troubleshooting Referring class : [Lorg.hibernate.property.Setter; Thread : http-8080-1 JVM ID : VM(9) Non-included class: org.hibernate.property.BasicPropertyAccessor$BasicSetter 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.hibernate.property.BasicPropertyAccessor$BasicSetter</class-expression> </include> </instrumented-classes> * if there is already an <instrumented-classes> element present, simply add the new includes inside it It is possible that some or all of the classes above are truly non-portable, the solution is then to mark the referring field as transient. *******************************************************************************

Terracotta | hhuynh | 9 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Re:com.tc.exception.TCNonPortableObjectError even after adding the suggested class to tc-config.xml

    Terracotta | 9 years ago | hhuynh
    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://terracotta.org/kit/troubleshooting Referring class : [Lorg.hibernate.property.Setter; Thread : http-8080-1 JVM ID : VM(9) Non-included class: org.hibernate.property.BasicPropertyAccessor$BasicSetter 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.hibernate.property.BasicPropertyAccessor$BasicSetter</class-expression> </include> </instrumented-classes> * if there is already an <instrumented-classes> element present, simply add the new includes inside it It is possible that some or all of the classes above are truly non-portable, the solution is then to mark the referring field as transient. *******************************************************************************

    Root Cause Analysis

    1. 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://terracotta.org/kit/troubleshooting Referring class : [Lorg.hibernate.property.Setter; Thread : http-8080-1 JVM ID : VM(9) Non-included class: org.hibernate.property.BasicPropertyAccessor$BasicSetter 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.hibernate.property.BasicPropertyAccessor$BasicSetter</class-expression> </include> </instrumented-classes> * if there is already an <instrumented-classes> element present, simply add the new includes inside it It is possible that some or all of the classes above are truly non-portable, the solution is then to mark the referring field as transient. *******************************************************************************

      at com.tc.object.ClientObjectManagerImpl.throwNonPortableException()
    2. com.tc.object
      Traverser.addReferencedObjects
      1. com.tc.object.ClientObjectManagerImpl.throwNonPortableException(ClientObjectManagerImpl.java:826)
      2. com.tc.object.ClientObjectManagerImpl.checkPortabilityOfTraversedReference(ClientObjectManagerImpl.java:718)
      3. com.tc.object.ClientObjectManagerImpl.access$900(ClientObjectManagerImpl.java:82)
      4. com.tc.object.ClientObjectManagerImpl$NewObjectTraverseTest.checkPortability(ClientObjectManagerImpl.java:1059)
      5. com.tc.object.Traverser.addReferencedObjects(Traverser.java:48)
      5 frames