Re: problem connecting to zookeeper server

2010-05-21 Thread Gregory Haskins
On 5/20/10 12:07 PM, Benjamin Reed wrote: > good catch lei! if this helps gregory, can you open a jira to throw an > exception in this situation. we should be throwing an invalid argument > exception or something in this case. Done (https://issues.apache.org/jira/browse/ZOOKEEPER-776). Thanks for

Re: problem connecting to zookeeper server

2010-05-21 Thread Gregory Haskins
On 5/20/10 12:04 PM, Lei Zhang wrote: > Seems you are passing in wrong arguments: > > Should have been: > public ZooKeeper(String connectString, int sessionTimeout, Watcher > watcher) > throws IOException > > What you have in your client code is: > > On Thu, May 20, 2010 at 5:21 AM, Gre

Re: problem connecting to zookeeper server

2010-05-20 Thread Benjamin Reed
good catch lei! if this helps gregory, can you open a jira to throw an exception in this situation. we should be throwing an invalid argument exception or something in this case. thanx ben On 05/20/2010 09:04 AM, Lei Zhang wrote: Seems you are passing in wrong arguments: Should have been:

Re: problem connecting to zookeeper server

2010-05-20 Thread Lei Zhang
Seems you are passing in wrong arguments: Should have been: public ZooKeeper(String connectString, int sessionTimeout, Watcher watcher) throws IOException What you have in your client code is: On Thu, May 20, 2010 at 5:21 AM, Gregory Haskins wrote: > > >public App() throws Excep

problem connecting to zookeeper server

2010-05-20 Thread Gregory Haskins
Hi, ZooKeeper newbie here, so probably simple 'pilot error', but yet I am stuck so any help appreciated. I am trying to stand up a zookeeper environment so I can check things out. I have an opensuse 11.2 virtual machine that I run the server in, and then I try to write a java client to connect t