Error message prints incorrect value
------------------------------------

                 Key: CDV-755
                 URL: https://jira.terracotta.org/jira//browse/CDV-755
             Project: Community Development
          Issue Type: Bug
            Reporter: Taylor Gautier
            Assignee: Issue Review Board


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 <dso> element
   * add this snippet inside the <dso> element, above the <locks> element

       <transient-fields>
         <field-name>null</field-name>
       </transient-fields>

   * if there is already a <transient-fields> element present, simply add
     the new field inside it


*******************************************************************************



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://jira.terracotta.org/jira//secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
tc-dev mailing list
[email protected]
http://lists.terracotta.org/mailman/listinfo/tc-dev

Reply via email to