Are you using Spring Boot?

I know that the recent Spring Boot 2.2.0 release specifically updates their
Kafka dependency to 2.3.0. Previous version used Kafka 2.1.x though I've
used 2.2.x with it.

Maybe running mvn dependency:tree would help see if there are multiple
Kafka versions that could conflict.

On Thu, 24 Oct 2019 at 20:14, Matthias J. Sax <matth...@confluent.io> wrote:

> Hard to say, but maybe Spring does not support the new version yet, as
> the error say `org.springframework.beans.factory.BeanCreationException`.
>
> Can you reach out to the Spring community to see if they can help?
>
>
> -Matthias
>
> On 10/24/19 10:59 AM, Xiyuan Hu wrote:
> > Hi,
> >
> > I'm trying to build and import 2.3.1-rc2 but getting below exceptions:
> >
> > Invocation of init method failed; nested exception is
> > java.lang.NoClassDefFoundError: org/rocksdb/RocksDBException
> > org.springframework.beans.factory.BeanCreationException: Error
> > creating bean with name 'imaItemProcessor': Invocation of init method
> > failed; nested exception is java.lang.NoClassDefFoundError:
> > org/rocksdb/RocksDBException
> >
> > Caused by: java.lang.NoClassDefFoundError: org/rocksdb/RocksDBException
> > at
> org.apache.kafka.streams.state.internals.RocksDbWindowBytesStoreSupplier.get(RocksDbWindowBytesStoreSupplier.java:63)
> > at
> org.apache.kafka.streams.state.internals.RocksDbWindowBytesStoreSupplier.get(RocksDbWindowBytesStoreSupplier.java:23)
> >
> > The way I imported 2.3.1-rc2 is as below:
> >
> > 1. Download kafka_2.11-2.3.1.tgz and unzip
> > 2. Run: mvn install:install-file
> > -Dfile=kafka_2.11-2.3.1/libs/kafka-streams-2.3.1.jar
> > -DgroupId=org.apache.kafka -DartifactId=kafka-streams
> > -Dversion=2.3.1-rc2 -Dpackaging=jar -DgeneratePom=true
> > 3. In my maven pom.xml:
> > <dependency>
> >    <groupId>org.apache.kafka</groupId>
> >    <artifactId>kafka-streams</artifactId>
> >    <version>2.3.1-rc2</version>
> >  </dependency>
> >
> > Do I miss anything here?
> >
> > Thanks a lot!
> >
>
>

Reply via email to