Author |
Message |
08/08/2007 05:48:46
|
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 |
Download
|
Description |
|
Filesize |
6 Kbytes
|
Downloaded: |
344 time(s) |
|
|
|
08/08/2007 08:12:57
|
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 |
|
|
08/08/2007 08:30:21
|
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
|
|
|
08/08/2007 09:58:34
|
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! |
|
|
08/08/2007 21:02:39
|
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.
|
|
|
08/08/2007 21:07:03
|
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?
|
|
|
08/08/2007 21:47:53
|
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 |
|
|
08/08/2007 22:32:57
|
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..
|
|
|
08/09/2007 01:52:49
|
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.
|
|
|
08/09/2007 01:59:57
|
erezhara
master
Joined: 08/01/2007 02:36:19
Messages: 57
Offline
|
done :-)
http://jira.terracotta.org/jira/browse/CDV-371
|
|
|
|