java - Getting noClassDefFoundError for an eventuate program -


in eventuate program, getting below error, doubt dependency missing or version issue.

actually followed https://github.com/eventuate-examples/eventuate-examples-java-spring-todo-list , tried build project using maven, doesn't work.

or if guys have sample eventuate 'event driven' based project, please share me.

error:

caused by: java.lang.illegalstateexception: failed introspect annotated methods on class io.eventuate.javaclient.spring.common.eventuatecommonconfiguration @ org.springframework.core.type.standardannotationmetadata.getannotatedmethods(standardannotationmetadata.java:163) @ org.springframework.context.annotation.configurationclassparser.doprocessconfigurationclass(configurationclassparser.java:292) @ org.springframework.context.annotation.configurationclassparser.processconfigurationclass(configurationclassparser.java:232) @ org.springframework.context.annotation.configurationclassparser.processimports(configurationclassparser.java:510) caused by: java.lang.noclassdeffounderror: io/eventuate/missingapplyeventmethodstrategy @ java.lang.class.getdeclaredmethods0(native method) @ java.lang.class.privategetdeclaredmethods(unknown source) @ java.lang.class.getdeclaredmethods(unknown source) @ org.springframework.core.type.standardannotationmetadata.getannotatedmethods(standardannotationmetadata.java:152) caused by: java.lang.classnotfoundexception: io.eventuate.missingapplyeventmethodstrategy @ java.net.urlclassloader.findclass(unknown source) @ java.lang.classloader.loadclass(unknown source) @ sun.misc.launcher$appclassloader.loadclass(unknown source) @ java.lang.classloader.loadclass(unknown source) 

and below pom.xml

<?xml version="1.0" encoding="utf-8"?> <project xmlns="http://maven.apache.org/pom/4.0.0" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://maven.apache.org/pom/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelversion>4.0.0</modelversion>  <groupid>org.xyz.services</groupid> <artifactid>rest-stub</artifactid> <version>0.1.0</version> <packaging>war</packaging> <parent>     <groupid>org.springframework.boot</groupid>     <artifactid>spring-boot-starter-parent</artifactid>     <version>1.3.5.release</version> </parent>  <dependencies>     <!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot -->     <dependency>         <groupid>org.springframework.boot</groupid>         <artifactid>spring-boot</artifactid>         <version>1.0.0.release</version>     </dependency>      <dependency>         <groupid>org.springframework.boot</groupid>         <artifactid>spring-boot-starter-web</artifactid>     </dependency>     <dependency>         <groupid>org.springframework.boot</groupid>         <artifactid>spring-boot-starter-test</artifactid>         <scope>test</scope>     </dependency>     <dependency>         <groupid>org.springframework.boot</groupid>         <artifactid>spring-boot-starter-tomcat</artifactid>         <scope>provided</scope>     </dependency>      <dependency>         <groupid>com.jayway.jsonpath</groupid>         <artifactid>json-path</artifactid>         <scope>test</scope>     </dependency>      <dependency>         <groupid>io.eventuate.local.java</groupid>         <artifactid>eventuate-local-java-cdc-mysql-autoconfigure</artifactid>         <version>0.13.0.release</version>         <type>pom</type>     </dependency>      <!-- https://mvnrepository.com/artifact/org.springframework.hateoas/spring-hateoas -->     <dependency>         <groupid>org.springframework.hateoas</groupid>         <artifactid>spring-hateoas</artifactid>         <version>0.15.0.release</version>     </dependency>     <!-- https://mvnrepository.com/artifact/javax.persistence/persistence-api -->     <dependency>         <groupid>javax.persistence</groupid>         <artifactid>persistence-api</artifactid>         <version>1.0.2</version>     </dependency>     <!-- https://mvnrepository.com/artifact/org.springframework.data/spring-data-jpa -->     <!-- https://mvnrepository.com/artifact/org.springframework.data/spring-data-rest-webmvc -->     <dependency>         <groupid>org.springframework.data</groupid>         <artifactid>spring-data-rest-webmvc</artifactid>         <version>1.0.0.release</version>     </dependency>     <!-- https://mvnrepository.com/artifact/com.networknt/eventuate-cdccore -->     <dependency>         <groupid>com.networknt</groupid>         <artifactid>eventuate-cdccore</artifactid>         <version>0.1.0</version>     </dependency>      <dependency>         <groupid>io.eventuate.client.java</groupid>         <artifactid>eventuate-client-java-spring</artifactid>         <version>0.11.0.release</version>     </dependency>       <!-- https://mvnrepository.com/artifact/io.springfox/springfox-swagger2 -->     <dependency>         <groupid>io.springfox</groupid>         <artifactid>springfox-swagger2</artifactid>         <version>2.7.0</version>     </dependency>   </dependencies>  <properties>     <java.version>1.8</java.version> </properties>   <build>     <resources>         <resource>             <directory>src/main/resources</directory>             <filtering>true</filtering>         </resource>     </resources>     <plugins>         <plugin>             <groupid>org.springframework.boot</groupid>             <artifactid>spring-boot-maven-plugin</artifactid>         </plugin>     </plugins> </build>  <repositories>     <repository>         <id>spring-releases</id>         <url>https://repo.spring.io/libs-release</url>     </repository>     <repository>         <id>eventuate-release</id>         <url>http://mavenrepo.eventuate.io/release</url>     </repository> </repositories> <pluginrepositories>     <pluginrepository>         <id>spring-releases</id>         <url>https://repo.spring.io/libs-release</url>     </pluginrepository> </pluginrepositories></project> 

i guessing somehow using mixture of new (needs missingapplyeventmethodstrategy) , old (doesn't provide missingapplyeventmethodstrategy) eventuate libraries.

in particular, 0.11.0.release rather old. try upgrading latest 0.17.0.release


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -