tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Murilo Rodrigues <murodrig...@yahoo.com.br>
Subject NotSerializableException - CoyotePrincipal
Date Wed, 12 Dec 2007 00:42:34 GMT
Hi,

I´m getting a NotSerializableException for the object CoyotePrincipal.

I´m pretty sure my application is not putting this object directly in the session, since
I would not even know to get a reference to it.

The complete stack trace is shown bellow, and also the server.xml configured for one server
in my cluster (the other server has the same configuration).

Any help would be greatly appreciated.

Murilo


11-12-07 20:31:20:326 - {ERROR} session.DeltaManager Thread [ajp-10.168.87.104-8009-2];  Unable
to serialize delta request for sessionid [7E92DB222172B3D212D6A76D7BDBD7C9.jvm1]
java.io.NotSerializableException: org.apache.catalina.connector.CoyotePrincipal
    at java.io.ObjectOutputStream.writeObject0(Unknown Source)
    at java.io.ObjectOutputStream.writeObject(Unknown Source)
    at java.util.LinkedList.writeObject(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)
    at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
    at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
    at java.io.ObjectOutputStream.writeObject0(Unknown Source)
    at java.io.ObjectOutputStream.access$100(Unknown Source)
    at java.io.ObjectOutputStream$PutFieldImpl.writeFields(Unknown Source)
    at java.io.ObjectOutputStream.writeFields(Unknown Source)
    at javax.security.auth.Subject$SecureSet.writeObject(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)
    at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
    at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
    at java.io.ObjectOutputStream.writeObject0(Unknown Source)
    at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
    at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source)
    at java.util.Collections$SynchronizedCollection.writeObject(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)
    at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
    at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
    at java.io.ObjectOutputStream.writeObject0(Unknown Source)
    at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
    at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source)
    at javax.security.auth.Subject.writeObject(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)
    at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
    at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
    at java.io.ObjectOutputStream.writeObject0(Unknown Source)
    at java.io.ObjectOutputStream.writeObject(Unknown Source)
    at org.apache.catalina.cluster.session.DeltaRequest$AttributeInfo.writeExternal(DeltaRequest.java:352)
    at org.apache.catalina.cluster.session.DeltaRequest.writeExternal(DeltaRequest.java:269)
    at org.apache.catalina.cluster.session.DeltaManager.unloadDeltaRequest(DeltaManager.java:743)
    at org.apache.catalina.cluster.session.DeltaManager.requestCompleted(DeltaManager.java:1320)
    at org.apache.catalina.cluster.tcp.ReplicationValve.send(ReplicationValve.java:549)
    at org.apache.catalina.cluster.tcp.ReplicationValve.sendMessage(ReplicationValve.java:536)
    at org.apache.catalina.cluster.tcp.ReplicationValve.sendSessionReplicationMessage(ReplicationValve.java:518)
    at org.apache.catalina.cluster.tcp.ReplicationValve.sendReplicationMessage(ReplicationValve.java:428)
    at org.apache.catalina.cluster.tcp.ReplicationValve.invoke(ReplicationValve.java:362)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:544)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
    at org.apache.catalina.valves.RequestDumperValve.invoke(RequestDumperValve.java:159)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
    at org.apache.coyote.ajp.AjpAprProcessor.process(AjpAprProcessor.java:444)
    at org.apache.coyote.ajp.AjpAprProtocol$AjpConnectionHandler.process(AjpAprProtocol.java:472)
    at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1286)
    at java.lang.Thread.run(Unknown Source)



<?xml version="1.0"?>
<Server port="10001" shutdown="ShutDownSIACFQAPrdN1">

  <Listener className="org.apache.catalina.core.AprLifecycleListener" />
  <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" />
  <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
  <Listener className="org.apache.catalina.storeconfig.StoreConfigLifecycleListener"/>

  <GlobalNamingResources>
  </GlobalNamingResources>

  <Service name="CatalinaSIACFQAPrdN1">

    <Connector port="8009" address="10.168.87.104" protocol="AJP/1.3" scheme="http" secure="false"
      allowTrace="false" emptySessionPath="true" enableLookups="false" maxPostSize="-1"
      maxSavePostSize="4096" backlog="32" bufferSize="-1" connectionTimeout="-1"
      maxSpareThreads="8" maxThreads="512" minSpareThreads="8" tcpNoDelay="true"
      tomcatAuthentication="false" />

    <Engine name="Standalone" defaultHost="SIACFQAPrdN1" jvmRoute="jvm1">

      <Valve className="org.apache.catalina.valves.RequestDumperValve"/>

      <Host appBase="webapps" autoDeploy="false" name="SIACFQAPrdN1"
        deployXML="false" unpackWARs="true" workDir="C:\Web Sites\SIACFQAPrdN1\work"
        xmlValidation="false" xmlNamespaceAware="false">

        <Alias>10.168.87.104</Alias>
        <Alias>SIACFQAPrdN1</Alias>
        <Alias>SIACFQAPrdN1.timbrasil.com.br</Alias>
        <Alias>SIACFQAPrdN1.internal.timbrasil.com.br</Alias>

        <Cluster className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"
                 managerClassName="org.apache.catalina.cluster.session.DeltaManager"
                 expireSessionsOnShutdown="false"
                 useDirtyFlag="true"
                 notifyListenersOnReplication="true">

            <Membership
                className="org.apache.catalina.cluster.mcast.McastService"
                mcastAddr="228.0.0.4"
                mcastBindAddress="10.168.87.104"
                mcastPort="45564"
                mcastFrequency="500"
                mcastDropTime="3000"/>

            <Receiver
                className="org.apache.catalina.cluster.tcp.ReplicationListener"
                tcpListenAddress="10.168.87.104"
                tcpListenPort="4001"
                tcpSelectorTimeout="100"
                tcpThreadCount="6"/>

            <Sender
                className="org.apache.catalina.cluster.tcp.ReplicationTransmitter"
                replicationMode="pooled"
                ackTimeout="15000"
                waitForAck="true"/>

          <Valve className="org.apache.catalina.cluster.tcp.ReplicationValve"
            filter=".*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt;"/>

          <Deployer className="org.apache.catalina.cluster.deploy.FarmWarDeployer"
            tempDir="D:\Web Sites\SIACFQAPrdN1\temp\war-temp\"
            deployDir="D:\Web Sites\SIACFQAPrdN1\temp\war-deploy\"
            watchDir="D:\Web Sites\SIACFQAPrdN1\temp\war-listen\"
            watchEnabled="false"/>

            <ClusterListener className="org.apache.catalina.cluster.session.ClusterSessionListener"/>
        </Cluster>

        <Valve className="org.apache.catalina.valves.AccessLogValve"
          directory="F:\Log Files\SIACFQAPrdN1"  prefix="SIACFQAPrdN1." suffix=".txt"
          pattern="common" resolveHosts="false"/>

      </Host>
    </Engine>
  </Service>
</Server>





      Abra sua conta no Yahoo! Mail, o único sem limite de espaço para armazenamento!
http://br.mail.yahoo.com/

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message