[
https://issues.apache.org/jira/browse/CURATOR-446?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16295658#comment-16295658
]
Jordan Zimmerman commented on CURATOR-446:
------------------------------------------
If you want to use Curator's test lib with Zookeeper 3.4.x you need to use the
older version (as Curator itself does in the curator-test-zk34 module):
{code}
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-test</artifactId>
<version>2.12.0</version>
<exclusions>
<exclusion>
<groupId>org.apache.zookeeper</groupId>
<artifactId>zookeeper</artifactId>
</exclusion>
</exclusions>
<scope>test</scope>
</dependency>
{code}
> Compile error with tests using 4.0.0 and ZK 3.4.11
> --------------------------------------------------
>
> Key: CURATOR-446
> URL: https://issues.apache.org/jira/browse/CURATOR-446
> Project: Apache Curator
> Issue Type: Bug
> Components: Tests
> Affects Versions: 4.0.0
> Environment: gradle:
> compile('org.apache.zookeeper:zookeeper:3.4.11')
> testCompile ('org.apache.curator:curator-test:4.0.0') {
> exclude group: 'org.apache.zookeeper', module: 'zookeeper'
> }
> Reporter: Greg Moulliet
> Priority: Minor
>
> Attempting to start a test ZK gives the following error:
> Exception in thread "Thread-0" java.lang.NoSuchFieldError: configFileStr
> at
> org.apache.curator.test.QuorumConfigBuilder$1.<init>(QuorumConfigBuilder.java:142)
> at
> org.apache.curator.test.QuorumConfigBuilder.buildConfig(QuorumConfigBuilder.java:137)
> at
> org.apache.curator.test.TestingZooKeeperServer$1.run(TestingZooKeeperServer.java:157)
> at java.lang.Thread.run(Thread.java:745)
> Reverting back to 2.12.0 resolves the issue for me.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)