• Bug
  • Status: Closed
  • 2 Major
  • Resolution: Fixed
  • hhuynh
  • Reporter: tgautier
  • May 14, 2008
  • 0
  • Watchers: 0
  • August 04, 2008
  • July 16, 2008



See error message - shouldn’t have “null” in the message:

Exception in thread “main” com.tc.exception.TCNonPortableObjectError: ******************************************************************************* Attempt to share an instance of a non-portable class referenced by a portable class. This unshareable class is a subclass of a JVM- or host machine-specific resource. Please either modify the class hierarchy or ensure that instances of this class don’t enter the shared object graph.

For more information on this issue, please visit our Troubleshooting Guide at: http://terracotta.org/kit/troubleshooting

Referring class : javax.swing.text.GapContent Referring field : javax.swing.text.GapContent.search Thread : main JVM ID : VM(1) Unshareable superclass names: java.lang.ref.WeakReference

Action to take:

1) Change your application code * Ensure that no instances of javax.swing.text.GapContent$MarkData nor any other subclass instances of the classes: java.lang.ref.WeakReference are added to any shared object graph

  • OR -

2) Mark the offending field as transient (and thus not shared) * edit your tc-config.xml file * locate the element \* add this snippet inside the element, above the element


* if there is already a element present, simply add the new field inside it



Abhishek Singh 2008-07-16

Fixed on rev-9246 in trunk