[Logo] Terracotta Discussion Forums
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
protable class problem  XML
Forum Index -> Terracotta Platform
Author Message
anson

neo

Joined: 06/05/2007 00:55:38
Messages: 9
Offline

when i run a application,i get the follow exception:
com.tc.exception.TCNonPortableObjectError:
*******************************************************************************
Attempt to share an instance of a non-portable class by passing it as an argumen
t to a method of a
logically-managed class. This unshareable class must be in the DSO boot jar. Ple
ase add this
class to the boot jar configuration and re-create the DSO boot jar.

Thread : http-9081-Processor75
JVM ID : VM(2)
Logically-managed class name: java.util.HashMap
Logical method name : put(Object,Object)
Class to add to boot jar : java.util.Locale
*******************************************************************************

at com.tc.object.ClientObjectManagerImpl.throwNonPortableException(Clien
tObjectManagerImpl.java:657)
at com.tc.object.ClientObjectManagerImpl.checkPortabilityOfLogicalAction
(ClientObjectManagerImpl.java:631)
at com.tc.object.tx.ClientTransactionManagerImpl.logicalInvoke(ClientTra
nsactionManagerImpl.java:578)
at com.tc.object.TCObjectLogical.logicalInvoke(TCObjectLogical.java:19)
at com.tc.object.bytecode.ManagerImpl.logicalInvoke(ManagerImpl.java:216
)
at com.tc.object.bytecode.ManagerUtil.logicalInvoke(ManagerUtil.java:136
)
at java.util.HashMap.put(HashMap.java)
at com.terracotta.session.SessionData.bindAttribute(SessionData.java:234
)
at com.terracotta.session.SessionData.setAttributeReturnOld(SessionData.
java:143)
at com.terracotta.session.SessionData.setAttribute(SessionData.java:135)

at org.apache.struts.action.RequestProcessor.processLocale(RequestProces
sor.java:632)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:177)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:119
6)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at com.deluker.hr.base.servlet.HrBusinessServlet.callParentService(HrBus
inessServlet.java:134)
at com.deluker.hr.base.servlet.HrBusinessServlet.service(HrBusinessServl
et.java:169)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at com.deluker.hr.base.filter.AccountFilter.doFilter(AccountFilter.java:
41)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at com.liferay.filters.strip.StripFilter.doFilter(StripFilter.java:94)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at com.liferay.filters.compression.CompressionFilter.doFilter(Compressio
nFilter.java:115)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at com.deluker.hr.base.filter.CASFilter.doFilter(CASFilter.java:56)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:126)
at org.jstripe.tomcat.probe.Tomcat55AgentValve.invoke(Tomcat55AgentValve
.java:20)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:107)
at com.tc.tomcat55.session.SessionValve55.tcInvoke(SessionValve55.java:6
0)
at com.tc.tomcat55.session.SessionValve55.invoke(SessionValve55.java:47)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
rocessConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
int.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
lowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:684)
at java.lang.Thread.run(Thread.java:595)
09:55:09,171 ERROR [AccountFilter:48] javax.servlet.ServletException: Servlet ex
ecution threw an exception
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:275)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at com.deluker.hr.base.filter.AccountFilter.doFilter(AccountFilter.java:
41)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at com.liferay.filters.strip.StripFilter.doFilter(StripFilter.java:94)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at com.liferay.filters.compression.CompressionFilter.doFilter(Compressio
nFilter.java:115)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at com.deluker.hr.base.filter.CASFilter.doFilter(CASFilter.java:56)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:126)
at org.jstripe.tomcat.probe.Tomcat55AgentValve.invoke(Tomcat55AgentValve
.java:20)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:107)
at com.tc.tomcat55.session.SessionValve55.tcInvoke(SessionValve55.java:6
0)
at com.tc.tomcat55.session.SessionValve55.invoke(SessionValve55.java:47)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
rocessConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
int.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
lowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:684)
at java.lang.Thread.run(Thread.java:595)


Is anyone can tell me how can i find the non-protable class quicky?

Regards,

Anson Chan
[MSN]
zeeiyer

consul

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

in this case, seems like you need to add java.util.locale to the <boot-jar> section of your config and then remake the boot-jar.
See http://www.terracotta.org/confluence/display/docs1/Troubleshooting+Guide#TroubleshootingGuide-Iamgettingcom.tc.exception.TCNonPortableObjectException.Whatnext%3F (especially bullet-point #3)

Regards,
Sreeni Iyer.

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

This problem is also described in the forum FAQ:

http://forums.terracotta.org/forums/posts/list/264.page

Your last sentence asks how you can find the non-portable class quickly - I suppose by that you mean which is the offending class?

The error message tells you which one is causing the problem:

java.util.Locale

As Iyer mentions, you will need to add this to your boot-jar so you should follow the instructions in the troubleshooting guide on how to do this.
[WWW]
anson

neo

Joined: 06/05/2007 00:55:38
Messages: 9
Offline

thanks lyer and Taylor,problem is solved

Regards,

Anson Chan
[MSN]
tgautier

seraphim

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

Glad to hear it :) Is there anything you can think of that would have helped you solve the issue more easily?
[WWW]
anson

neo

Joined: 06/05/2007 00:55:38
Messages: 9
Offline

I think read the troubleshooting first when i encountter a problem.
and error messages is important too

Regards,

Anson Chan
[MSN]
tgautier

seraphim

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

Thanks for the response - what I meant to say was "is there anything we can do to have helped you solve the issue more easily?"

I'm trying to figure out how to make the Troubleshooting Guide more visible...I've added a FAQ item to the Forum and I will add it in the other categories (Spring, Sessions etc.).
[WWW]
 
Forum Index -> Terracotta Platform
Go to:   
Powered by JForum 2.1.7 © JForum Team