Return-Path: X-Original-To: apmail-curator-user-archive@minotaur.apache.org Delivered-To: apmail-curator-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C830F10ADA for ; Tue, 18 Mar 2014 18:32:48 +0000 (UTC) Received: (qmail 56864 invoked by uid 500); 18 Mar 2014 18:32:47 -0000 Delivered-To: apmail-curator-user-archive@curator.apache.org Received: (qmail 56824 invoked by uid 500); 18 Mar 2014 18:32:47 -0000 Mailing-List: contact user-help@curator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@curator.apache.org Delivered-To: mailing list user@curator.apache.org Received: (qmail 56815 invoked by uid 99); 18 Mar 2014 18:32:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Mar 2014 18:32:46 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of vkeylis2009@gmail.com designates 209.85.128.171 as permitted sender) Received: from [209.85.128.171] (HELO mail-ve0-f171.google.com) (209.85.128.171) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Mar 2014 18:32:40 +0000 Received: by mail-ve0-f171.google.com with SMTP id cz12so7555361veb.16 for ; Tue, 18 Mar 2014 11:32:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=DMlXQF8rvMRQpb3+PmywJORR/0Fvc9C0qAtOOWrqoV8=; b=tPei7J9xb2OWHAvbLpQzdFlWPEN3e0EBLtdCNWXu7j+s62mmevVpBzgT2GD5p84hEm dD+cwUnytnWVHZFikWa/mazq6F+O0GRzFLOCJNjW6cLUFSIaCZj4+icqVFptrDzeX7An AZHhMDF5Al3GF1sxLFpgbYuZbwOQpxwtyEcmkZrZ6mbZjw6JkQtYmXXxde4gRTvuCSxa yG+XYqlkySKX99J71Am9otLU9arVuBMF/4aTjvgdcykPdOmDoLaUl7xKagtKJCtyi6ku H7GS1OPHmHEg3X80eakQOjAdyRBauXAZWmPBadNGXGz/pM3Y+dhmCUbRqPF4UBO3DFa/ TGlw== MIME-Version: 1.0 X-Received: by 10.58.190.99 with SMTP id gp3mr4714940vec.32.1395167540359; Tue, 18 Mar 2014 11:32:20 -0700 (PDT) Received: by 10.220.181.137 with HTTP; Tue, 18 Mar 2014 11:32:20 -0700 (PDT) Date: Tue, 18 Mar 2014 11:32:20 -0700 Message-ID: Subject: ClassCastException when starting test server From: Vadim Keylis To: user@curator.apache.org Content-Type: multipart/alternative; boundary=047d7b675bf0a5380104f4e5c199 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b675bf0a5380104f4e5c199 Content-Type: text/plain; charset=ISO-8859-1 Good morning. I just started using curator. I downloaded and compiled latest version of curator and using zookeeper 3.4.5. I also use java 1.7. I embedded single line of code into my java unit test zkServer = new TestingServer(2181); Test crashed with exception java.lang.ClassCastException: org.apache.zookeeper.server.NIOServerCnxn$Factory cannot be cast to org.apache.zookeeper.server.ServerCnxnFactory at org.apache.curator.test.TestingZooKeeperMain.getServerConnectionFactory(TestingZooKeeperMain.java:138) at org.apache.curator.test.TestingZooKeeperMain.blockUntilStarted(TestingZooKeeperMain.java:83) at org.apache.curator.test.TestingZooKeeperServer.start(TestingZooKeeperServer.java:144) at org.apache.curator.test.TestingServer.(TestingServer.java:75) at org.apache.curator.test.TestingServer.(TestingServer.java:68) at org.apache.curator.test.TestingServer.(TestingServer.java:56) at com.tagged.kafka.topic.TestTopicStream.setUp(TestTopicStream.java:47) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222) at org.junit.runners.ParentRunner.run(ParentRunner.java:300) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) Any suggestion? --047d7b675bf0a5380104f4e5c199 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Good morning. I just started using curator. I downloaded a= nd compiled latest version of curator and using zookeeper 3.4.5. I also use= java 1.7.=A0

I embedded single line of code into my jav= a unit test=A0
zkServer =3D new TestingServer(2181);

Test cr= ashed with exception=A0
java.lang.ClassCastException: org.ap= ache.zookeeper.server.NIOServerCnxn$Factory cannot be cast to org.apache.zo= okeeper.server.ServerCnxnFactory
at org.apache.curat= or.test.TestingZooKeeperMain.getServerConnectionFactory(TestingZooKeeperMai= n.java:138)
at= org.apache.curator.test.TestingZooKeeperMain.blockUntilStarted(TestingZooK= eeperMain.java:83)
at org.apache.curat= or.test.TestingZooKeeperServer.start(TestingZooKeeperServer.java:144)
=
at org.apache.curat= or.test.TestingServer.<init>(TestingServer.java:75)
at org.apache.curat= or.test.TestingServer.<init>(TestingServer.java:68)
at org.apache.curator.test.Test= ingServer.<init>(TestingServer.java:56)
at com.tagged.kafka= .topic.TestTopicStream.setUp(TestTopicStream.java:47)
at sun.reflect.NativeMethodAccessor= Impl.invoke0(Native Method)
at sun.reflect.Nati= veMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.i= nvoke(Unknown Source)
at java.lang.reflec= t.Method.invoke(Unknown Source)
at org.junit.runners.model.FrameworkMethod$1.runReflectiv= eCall(FrameworkMethod.java:45)
at org.junit.intern= al.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.= model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
at org.junit.intern= al.runners.statements.RunBefores.evaluate(RunBefores.java:27)
at org.junit.internal.runne= rs.statements.RunAfters.evaluate(RunAfters.java:30)
at org.junit.runner= s.ParentRunner.runLeaf(ParentRunner.java:263)
at org.junit.runners.BlockJUnit4ClassRunner= .runChild(BlockJUnit4ClassRunner.java:68)
at org.junit.runner= s.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
at org.junit.runners.Pa= rentRunner$3.run(ParentRunner.java:231)
at org.junit.runner= s.ParentRunner$1.schedule(ParentRunner.java:60)
at org.junit.runners.ParentRunner.runChil= dren(ParentRunner.java:229)
at org.junit.runner= s.ParentRunner.access$000(ParentRunner.java:50)
at org.junit.runners.ParentRunner$2.evalu= ate(ParentRunner.java:222)
at org.junit.runner= s.ParentRunner.run(ParentRunner.java:300)
at org.eclipse.jdt.internal.junit4.runner.JUni= t4TestReference.run(JUnit4TestReference.java:50)
at org.eclipse.jdt.= internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.interna= l.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.= internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)<= /div>
at org.eclipse= .jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)<= /div>
at org.eclipse.jdt.= internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)


Any suggestion?
--047d7b675bf0a5380104f4e5c199--