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.

Reply via email to