[Logo] Terracotta Discussion Forums (LEGACY READ-ONLY ARCHIVE)
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
TCNonPortableObjectError  XML
Forum Index -> Terracotta for Web Sessions
Author Message
erezhara

master

Joined: 08/01/2007 02:36:19
Messages: 57
Offline

I have changed configuration from *..* include to specific ones..
now i get an error, although the mentioned classes are included - see attached config.


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. Please add this
class to the <includes> section of the configuration file. This class also has super-classes
that have not been included for sharing in the configuration. Please add these classes to the
<includes> section of the configuration file also.

Referring class : com.magicsoftware.ibolt.portal.core.ENSessionContext
Referring field : com.magicsoftware.ibolt.portal.core.ENSessionContext.mSessionAttributes
Thread : http-0.0.0.0-8080-1
JVM ID : VM(2)
Non-included classes: com.magicsoftware.ibolt.portal.core.ENKey, com.magicsoftware.ibolt.portal.core.ENTree, com.magicsoftware.ibolt.portal.infra.ENAbstractKey
 Filename tc-config.xml [Disk] Download
 Description
 Filesize 6 Kbytes
 Downloaded:  344 time(s)

[Email]
zeeiyer

consul

Joined: 05/24/2006 14:28:28
Messages: 493
Offline

If you are getting this only when u go from *..* to specific classes, then look at the Admin console (classes tab) and ensure that you include all of the classes you see in there for instrumentation in your tc-config.xml

Sreeni Iyer, Terracotta.
Not a member yet - Click here to join the Terracotta Community
tgautier

seraphim

Joined: 06/05/2006 12:19:26
Messages: 1781
Offline

Please also see the troubleshooting guide for ways to resolve the non portable exception:

http://www.terracotta.org/confluence/display/docs1/Troubleshooting+Guide
[WWW]
kbhasin

consul

Joined: 12/04/2006 13:08:21
Messages: 340
Offline

Hi erez,

What is the type of the field com.magicsoftware.ibolt.portal.core.ENSessionContext.mSessionAttributes?

Regards,

Kunal Bhasin,
Terracotta, Inc.

Be a part of the Terracotta community: Join now!
erezhara

master

Joined: 08/01/2007 02:36:19
Messages: 57
Offline

it's a ENKey extends ENTree extends ENAbstractKey..
our implementation of a 'smark' Map or Tree.
[Email]
erezhara

master

Joined: 08/01/2007 02:36:19
Messages: 57
Offline

my list of includes is made of what's in the Admin classes window.
if it works for **, then some classes must be missing from the includes..
however, when i add the classes that are in the error message, the error continues..

should i delete the objectdb?

can i define a class and all its parents, i.e. i'm using ENKey - so is there a synthax to define it and all it's parents?
[Email]
zeeiyer

consul

Joined: 05/24/2006 14:28:28
Messages: 493
Offline

Well I don't think you can define parents of a given class with any special syntax. - I'd suggest you start including whole packages to ensure that all pertinent classes are being instrumented and then zero down to specific classes - e.g. com.magicsoftware.ibolt.portal.core..* to include core and subpackages...





Sreeni Iyer, Terracotta.
Not a member yet - Click here to join the Terracotta Community
erezhara

master

Joined: 08/01/2007 02:36:19
Messages: 57
Offline

thanks, now it works :-)
however, the admin console does not display all classes. it only displays leaf level classes.
it would be nice if we could define a 'and parents' synthax..
[Email]
tgautier

seraphim

Joined: 06/05/2006 12:19:26
Messages: 1781
Offline

Erez,

Yes that is a good idea. Actually I would personally like to have the Admin Console spit out a well formed include section for all of the classes. Either way works...or both might be useful.

you can enter feature requests and bugs in JIRA : http://jira.terracotta.org.


[WWW]
erezhara

master

Joined: 08/01/2007 02:36:19
Messages: 57
Offline

done :-)
http://jira.terracotta.org/jira/browse/CDV-371
[Email]
 
Forum Index -> Terracotta for Web Sessions
Go to:   
Powered by JForum 2.1.7 © JForum Team