Hi all,

I've been struggeling with this issue for some time now and I just don't know why it fails.
I have created a small program that send an object through a socket to a server where the server receives the object and prints a attribute
value of the object.

I tested this in a little program and that works fine but this was only meant for one connection and than everthing closes.

The architecture is that of a server->agent where the server send a object to the agent. The agent has to run as long as it is need to and
the server will open a socket to the server.

When I start the agent and than the server it will give a "java.io.EOFException". The full errror can be seen below:
java.io.EOFException
	at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source)
	at java.io.ObjectInputStream$BlockDataInputStream.readShort(Unknown Source)
	at java.io.ObjectInputStream.readStreamHeader(Unknown Source)
	at java.io.ObjectInputStream.<init>(Unknown Source)
	at Agent.runAgent(Agent.java:98)
	at Agent.<init>(Agent.java:50)
	at Agent.main(Agent.java:170)
java.io.EOFException
	at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source)
	at java.io.ObjectInputStream$BlockDataInputStream.readShort(Unknown Source)
	at java.io.ObjectInputStream.readStreamHeader(Unknown Source)
	at java.io.ObjectInputStream.<init>(Unknown Source)
	at Agent.runAgent(Agent.java:98)
	at Agent.<init>(Agent.java:50)
	at Agent.main(Agent.java:170)

Can anybody tell me why my this is happening because I'm all out of ideas at the moment.
I've included the two Eclipse projects in ZIP format.

JaneAgent_20111103.zip
JaneServer_20111103.zip

The Agent is started by running the Agent class. The server is started by running the JaneServer class.
The software uses a Apache Derby database which I can't include but maybe someone can help me.

Thank you in advance.