Re: LockManagerRemoteImpl EOFException on URL

Armin Waibel <[email protected]>
Newsgroups gmane.comp.jakarta.ojb.user
Message-ID <[email protected]>
Bruno CROS wrote:
> Hi,
> 
> I updated from SVN LockManagerFactory and configure is well called now,
> thanks.
> 
> the EOFException still remains, it seems there is a problem with
> serialization of LockInfo and HttpObjectStream.
>

Is EOFException the root exception?

I can reproduce a similar (windows specific) problem when running a mass 
lock test. On the server side I get
java.io.EOFException
         at 
java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2228)
         at 
java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2694)


But the real issue is caused on the client side
java.net.BindException: Address already in use: connect
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)


Is this the same behavior you mentioned?

regards,
Armin

> Lot of people seams to have this problem (searching google), but i don't
> really understand what is it really. I know what serialization is , i 
> did it
> (with file), but i can't see where something is wrong in
> LockManagerRemoteImpl.
>
> Thanks for any help.
> 
> OJB 1.0.4.
> Sun JVM 1.4
> 
> 
> 
> On 9/28/06, Bruno CROS <[email protected]> wrote:
>>
>>
>>
>> Hi,
>>
>> Once i'va modified constructor of LockManagerRemoteImpl to initialize
>> lockserver variable, i started to test LockManagerRemoteImpl and get 
>> into an
>> EOFException.
>>
>>
>>
>> URL sun implementation ,  release 1.0.4
>>
>> Thanks
>>
>>  Caused by: java.io.EOFException
>>
>>  at java.io.ObjectInputStream$PeekInputStream.readFully(
>> ObjectInputStream.java:2165)
>>
>>  at java.io.ObjectInputStream$BlockDataInputStream.readShort(
>> ObjectInputStream.java:2634)
>>
>>  at 
>> java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:734)
>>
>>  at java.io.ObjectInputStream.<init>(ObjectInputStream.java:253)
>>
>>  at
>> org.apache.ojb.broker.locking.LockManagerRemoteImpl.performRequestObject(
>> LockManagerRemoteImpl.java:383)
>>
>>  at org.apache.ojb.broker.locking.LockManagerRemoteImpl.performRequest(
>> LockManagerRemoteImpl.java:335)
>>
>>  at org.apache.ojb.broker.locking.LockManagerRemoteImpl.releaseLock(
>> LockManagerRemoteImpl.java:193)
>>
>>  ... 41 more
>>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.