You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by "EXT-Dussler, William F" <wi...@boeing.com> on 2001/10/01 19:33:34 UTC

SocketNode throws java.io.UTFDataFormatException

We are using  org.apache.log4j.net.SocketServer to log entries being generated remotely.  Occasionally, I see the following entry in the log.  This is followed by the SocketServer opening a new SocketNode with the remote system.

The exception does not appear to be related to any specific message I am logging.  

Any suggestions to investigate and correct this would be appreciated.


2001-10-01 10:18:17,979 INFO  org.apache.log4j.net.SocketServer - Connected to client at *****/***.**.***.**
2001-10-01 10:18:17,979 INFO  org.apache.log4j.net.SocketServer - Starting new socket node.
2001-10-01 10:18:17,980 INFO  org.apache.log4j.net.SocketServer - Waiting to accept a new client.
2001-10-01 10:18:53,694 ERROR org.apache.log4j.net.SocketNode - Unexpected exception. Closing conneciton.
java.io.UTFDataFormatException
	at java.io.DataInputStream.readUTF(DataInputStream.java(Compiled Code))
	at java.io.ObjectInputStream.readUTF(ObjectInputStream.java(Compiled Code))
	at java.io.ObjectInputStream.readObject(ObjectInputStream.java(Compiled Code))
	at java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java(Compiled Code))
	at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java(Compiled Code))
	at org.apache.log4j.spi.LoggingEvent.readObject(LoggingEvent.java(Compiled Code))
	at java.lang.reflect.Method.invoke(Native Method)
	at java.io.ObjectInputStream.invokeObjectReader(ObjectInputStream.java(Compiled Code))
	at java.io.ObjectInputStream.inputObject(ObjectInputStream.java(Compiled Code))
	at java.io.ObjectInputStream.readObject(ObjectInputStream.java(Compiled Code))
	at java.io.ObjectInputStream.readObject(ObjectInputStream.java(Compiled Code))
	at org.apache.log4j.net.SocketNode.run(SocketNode.java:71)
	at java.lang.Thread.run(Thread.java:481)


Bill Dussler


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