Hi Juan,
  Can you tell us what you are doing in your client code and when you
see this problem? You are running with a standalone zookeeper server
right?

Mahadev
> -----Original Message-----
> From: [EMAIL PROTECTED]
[mailto:zookeeper-user-
> [EMAIL PROTECTED] On Behalf Of Juan Ramirez
> Sent: Friday, May 23, 2008 11:36 AM
> To: Benjamin Reed
> Cc: zookeeper-user@lists.sourceforge.net
> Subject: Re: [Zookeeper-user] odd exceptions when using zookeeper
> 
> Hi, Ben.  Thanks for the prompt reply.
> 
> Benjamin Reed wrote:
> > Usually, this exception means that the server closed the socket. Are
you
> > seeing anything strange in the server log?
> >
> 
> It seems like the server is expiring the session; not sure why.
> 
> 2008-05-23 14:26:08,354 - WARN
[NIOServerCxn.Factory:[EMAIL PROTECTED]
> - Connected to /xxx.xxx.xxx.xxx:35713 lastZxid 0
> 2008-05-23 14:26:08,362 - WARN
[NIOServerCxn.Factory:[EMAIL PROTECTED]
> - Creating new session 11a1707891b0000
> 2008-05-23 14:26:08,406 - WARN  [SyncThread:[EMAIL PROTECTED] -
> Finished init of 11a1707891b0000: true
> 2008-05-23 14:26:15,010 - WARN
[SessionTracker:[EMAIL PROTECTED]
> - Expiring 11a1707891b0000
> 2008-05-23 14:26:15,017 - WARN
[ProcessThread:[EMAIL PROTECTED]
> - Processed session termination request for id: 11a1707891b0000
> 
> New connection request from client?
> 
> 2008-05-23 14:26:15,816 - WARN
[NIOServerCxn.Factory:[EMAIL PROTECTED]
> - Connected to /xxx.xxx.xxx.xxx:35714 lastZxid -1
> 2008-05-23 14:26:15,819 - WARN
[NIOServerCxn.Factory:[EMAIL PROTECTED]
> - Finished init of 11a1707891b0000: false
> 2008-05-23 14:26:15,821 - WARN
[NIOServerCxn.Factory:[EMAIL PROTECTED]
> - Renewing session 11a1707891b0000
> 
> But doesn't seem like the client recovers:
> 
> com.yahoo.zookeeper.KeeperException: KeeperErrorCode = SessionExpired
>          at com.yahoo.zookeeper.ZooKeeper.exists(ZooKeeper.java:357)
>          at zookeeperclient.Main$Process.tryCreate(Main.java:143)
>          at zookeeperclient.Main$Process.<init>(Main.java:88)
>          at zookeeperclient.Main.main(Main.java:43)
> com.yahoo.zookeeper.KeeperException: KeeperErrorCode = SessionExpired
>          at com.yahoo.zookeeper.ZooKeeper.exists(ZooKeeper.java:357)
>          at zookeeperclient.Main$Process.tryCreate(Main.java:143)
>          at zookeeperclient.Main$Process.<init>(Main.java:88)
>          at zookeeperclient.Main.main(Main.java:43)
> 
> 
> 
> > The null pointer exception is coming from the code that parses the
> hostPort
> > list. Since you are running in standalone mode your hostPort should
be a
> > string of the form host:port. The relevant code is the following:
> >
> >         String hostsList[] = hosts.split(",");
> >         for (String host : hostsList) {
> >             int port = 2181;
> >             String parts[] = host.split(":"); // LINE 218
> >
> > It would seem that host is null, but I'm at a complete loss for how
that
> could
> > be...
> 
> Sorry, that was my bad.  It seems that once the ZooKeeper instance
gets
> into the SessionExpired state, it doesn't recover.  Is this expected?
I
> had some code creating a new instance as a workaround and had not
> properly persisted the connection string.
> 
> Thanks again,
> 
> Juan
> 
> 
>
------------------------------------------------------------------------
-
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Zookeeper-user mailing list
> Zookeeper-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/zookeeper-user

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Zookeeper-user mailing list
Zookeeper-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/zookeeper-user

Reply via email to