[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: handleClientException()



On Thu, 23 Aug 2001, you wrote:
> I don't quite understand it. Everything is working fine before the server is 
> shut down. When I restart the server and try to run my program again. The 
> server throws handleClientException(), and I think because of this 
> exception, I get null object from Ozone, that's why I got NPE on the client 
> side.

I'm not sure, but as far as I understand my code the handleClientException()
method is there to handle _client_ exceptions. See the code! So I still believe
that the connection was reset by the client, not the server. This is also what
your stack trace says, the server was about to read data when the connection was
reset.


Falko

> 
> Wen
> 
> 
> >From: Falko Braeutigam <falko@smb-tec.com>
> >Reply-To: ozone-users@ozone-db.org
> >To: ozone-users@ozone-db.org
> >Subject: Re: handleClientException()
> >Date: Wed, 22 Aug 2001 10:29:32 +0200
> >
> >On Tue, 21 Aug 2001, you wrote:
> > > Hi,
> > >
> > > I stored some objects in OzoneDB and did something to them. Everything 
> >is
> > > working fine. But when I shut down the server and restart it, then I 
> >tried
> > > to retrieve the objects again and I got the following error on the 
> >server
> > > side:
> > >
> > > [info] (341) InvokeServer: connection established...
> > > [info] (396) InvokeServer: user logged in: jromano
> > > [info] (396) ClusterStore: loadCluster(): load cluster from disk: 104
> > > [warn] (396) InvokeServer: handleClientException():
> > > java.net.SocketException: Co
> > > nnection reset by peer: JVM_recv in socket input stream read
> > >     java.net.SocketException: Connection reset by peer: JVM_recv in 
> >socket
> > >              input stream read
> > >         at java.net.SocketInputStream.socketRead(Native Method)
> > >         at java.net.SocketInputStream.read(SocketInputStream.java:86)
> > >         at 
> >java.io.BufferedInputStream.fill(BufferedInputStream.java:186)
> > >         at 
> >java.io.BufferedInputStream.read(BufferedInputStream.java:204)
> > >         at 
> >java.io.ObjectInputStream.peekCode(ObjectInputStream.java:1549)
> > >         at java.io.ObjectInputStream.refill(ObjectInputStream.java:1683)
> > >         at 
> >java.io.ObjectInputStream.readObject(ObjectInputStream.java:283)
> > >         at 
> >java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
> > >         at org.ozoneDB.DxLib.net.DxClient.receive(DxClient.java:107)
> > >         at
> > > org.ozoneDB.DxLib.net.DxMultiServerClient.run(DxMultiServerClient.
> > >             java:44)
> > >         at java.lang.Thread.run(Thread.java:484)
> > > [info] (396) InvokeServer: connection closed (user: jromano)
> > >
> > > And on the client side, I got:
> > >
> > > D:\projects\datalayer\jbproject\DataLayer\classes>java
> > > com.glue.persistence.test
> > > com\glue\persistence\persistence.properties
> > > Exception in thread "main" java.lang.NullPointerException
> > >         at
> > > com.glue.persistence.ozone.GTOzoneImpl.objectsOfClass(GTOzoneImpl.jav
> > > a:123)
> >
> >Well, seems that you got a NPE at GTOzoneImpl.java:123, which forced the
> >client to stop, which shutdown the client end of the socket, which caused 
> >the
> >SocketException on server side.
> >
> >Falko
> >--
> >______________________________________________________________________
> >Falko Braeutigam                              mailto:falko@smb-tec.com
> >SMB GmbH                                        http://www.smb-tec.com
> >
> >----------------------------------------------------------------------
> >Post a message:         mailto:ozone-users@ozone-db.org
> >Unsubscribe:            
> >mailto:ozone-users-request@ozone-db.org?body=unsubscribe
> >Contact administrator:  mailto:ozone-users-owner@ozone-db.org
> >Read archived messages: http://www.ozone-db.org/
> >----------------------------------------------------------------------
> 
> 
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
> 
> ----------------------------------------------------------------------
> Post a message:         mailto:ozone-users@ozone-db.org
> Unsubscribe:            mailto:ozone-users-request@ozone-db.org?body=unsubscribe
> Contact administrator:  mailto:ozone-users-owner@ozone-db.org
> Read archived messages: http://www.ozone-db.org/
> ----------------------------------------------------------------------
-- 
______________________________________________________________________
Falko Braeutigam                              mailto:falko@smb-tec.com
SMB GmbH                                        http://www.smb-tec.com

----------------------------------------------------------------------
Post a message:         mailto:ozone-users@ozone-db.org
Unsubscribe:            mailto:ozone-users-request@ozone-db.org?body=unsubscribe
Contact administrator:  mailto:ozone-users-owner@ozone-db.org
Read archived messages: http://www.ozone-db.org/
----------------------------------------------------------------------