[prev in list] [next in list] [prev in thread] [next in thread]
List: tomcat-user
Subject: Re: Clustering on Tomcat 5.0.26 with DeltaManager
From: "Filip Hanik - Dev" <devlists () hanik ! com>
Date: 2004-06-09 17:12:44
Message-ID: 03a101c44e45$009066f0$dd01dc0a () Corp ! LaQuinta ! com
[Download RAW message or body]
you should also see a stack trace, please post that one to the list,
that should give us all the info we need. Most likely is that one of your attributes are not serializable
Filip
----- Original Message -----
From: "Matt Smith" <matt@incursiontech.com>
To: <tomcat-user@jakarta.apache.org>
Sent: Wednesday, June 09, 2004 12:05 PM
Subject: Clustering on Tomcat 5.0.26 with DeltaManager
> Any info on the following would be appreciated, cannot see the exception
> being generated. I have the logging level set to debug. I am using a
> filter to wrap the session, but I the valve should never see this so I
> would not expect a ClassCastException. Is there any way to tell the
> logging in tomcat to dump the exception???
>
> In my log, I am seeing the following
>
> StandardContext[]2004-06-06 21:39:25,347 ERROR [http-80-Processor24]
> org.apache.catalina.cluster.session.DeltaManager - Unable to serialize
> delta request
>
> Looking at the Delta Manager, somewhere here is the problem, in request
> Completed...
>
> try {
> DeltaSession session = (DeltaSession)
> findSession(sessionId);
> DeltaRequest deltaRequest = session.getDeltaRequest();
> SessionMessage msg = null;
> if (deltaRequest.getSize() > 0) {
>
> byte[] data = unloadDeltaRequest(deltaRequest);
> msg = new SessionMessageImpl(name,
> SessionMessage.EVT_SESSION_DELTA,
> data, sessionId,
>
> sessionId+System.currentTimeMillis());
> session.resetDeltaRequest();
> } else if ( !session.isPrimarySession() ) {
> msg = new SessionMessageImpl(getName(),
>
> SessionMessage.EVT_SESSION_ACCESSED,
> null,
> sessionId,
>
> sessionId+System.currentTimeMillis());
> }
> session.setPrimarySession(true);
> //check to see if we need to send out an access message
> if ( (msg == null) ) {
> long replDelta = System.currentTimeMillis() -
> session.getLastTimeReplicated();
> if ( replDelta > (getMaxInactiveInterval()*1000) ) {
> msg = new SessionMessageImpl(getName(),
>
> SessionMessage.EVT_SESSION_ACCESSED,
> null,
> sessionId,
>
> sessionId+System.currentTimeMillis());
> }
>
> }
>
> //update last replicated time
> if ( msg != null )
> session.setLastTimeReplicated(System.currentTimeMillis());
> return msg;
> }
> catch (IOException x) {
> log.error("Unable to serialize delta request", x);
> return null;
> }
>
>
> Thanks,
>
> m.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic