logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Serodio <dan...@checkforte.com.br>
Subject Re: InvalidClassException
Date Thu, 24 Oct 2002 15:08:51 GMT
AFAIK, Logger is not serializable.

On Thu, 2002-10-24 at 11:56, Lu, David wrote:
> Can someone please help?
> 
> I'm guessing that the problem I'm seeing is rather common...
> 
> I am running on WebLogic7 and have put log4j into a small test app.
> Prior to adding log4j, everything runs fine.
> After putting in log4j into a State class that is passed from the server
> side to my rmi client, I begin to see errors.
> 
> My State.java has something like:
> 
> private static Logger log = Logger.getLogger(
> "org.tiaa.logpoc.catalog.statecatalog.model.State" );
> 
> The errors I begin to see are:
> 
> 
> java.io.InvalidClassException:
> org.tiaa.logpoc.catalog.statecatalog.model.State;
>  Local class not compatible: stream classdesc
> serialVersionUID=-3079158992661169
> 117 local class serialVersionUID=7923177255097461199
>         at
> java.io.ObjectStreamClass.validateLocalClass(ObjectStreamClass.java:5
> 18)
>         at java.io.ObjectStreamClass.setClass(ObjectStreamClass.java:562)
>         at
> java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.java
> :931)
>         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:361)
>         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:231)
>         at
> weblogic.rjvm.ClassTableEntry.readExternal(ClassTableEntry.java:29)
>         at
> java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1207)
>         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:381)
>         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:231)
>         at
> weblogic.rjvm.InboundMsgAbbrev.readObject(InboundMsgAbbrev.java:65)
>         at weblogic.rjvm.InboundMsgAbbrev.read(InboundMsgAbbrev.java:37)
>         at
> weblogic.rjvm.MsgAbbrevJVMConnection.readMsgAbbrevs(MsgAbbrevJVMConne
> ction.java:202)
>         at
> weblogic.rjvm.MsgAbbrevInputStream.readMessageContext(MsgAbbrevInputS
> tream.java:193)
>         at
> weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:641)
>         at
> weblogic.rjvm.t3.T3JVMConnection.dispatch(T3JVMConnection.java:488)
>         at
> weblogic.socket.JavaSocketMuxer.processSockets(JavaSocketMuxer.java:3
> 68)
>         at
> weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:
> 23)
>         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
>         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
> --------------- nested within: ------------------
> weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Exception
> creating
> response stream ] - with nested exception:
> [java.io.InvalidClassException:
> org.tiaa.logpoc.catalog.statecatalog.model.State
> ; Local class not compatible: stream classdesc
> serialVersionUID=-307915899266116
> 9117 local class serialVersionUID=7923177255097461199]
>         at
> weblogic.rjvm.MsgAbbrevJVMConnection.readMsgAbbrevs(MsgAbbrevJVMConne
> ction.java:212)
>         at
> weblogic.rjvm.MsgAbbrevInputStream.readMessageContext(MsgAbbrevInputS
> tream.java:193)
> 
> 
> **********************************************************************
> This message, including any attachments, contains confidential information intended for
a specific individual and purpose, and is protected by law.  If you are not the intended recipient,
please contact sender immediately by reply e-mail and destroy all copies.  You are hereby
notified that any disclosure, copying, or distribution of this message, or the taking of any
action based on it, is strictly prohibited.
> TIAA-CREF
> **********************************************************************
> 
> --
> To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>
-- 
[]'s
Daniel Serodio


--
To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>


Mime
View raw message