Spring Data java.lang.NoSuchMethodError in grails -



Spring Data java.lang.NoSuchMethodError in grails -

i using mongo db plugin , spring-data-neo4j in grails application.

i using latest version of sdn , mongo db plugin.

here buildconfig :

grails.servlet.version = "3.0" // alter depending on target container compliance (2.5 or 3.0) grails.project.class.dir = "target/classes" grails.project.test.class.dir = "target/test-classes" grails.project.test.reports.dir = "target/test-reports" grails.project.work.dir = "target/work" grails.project.target.level = 1.6 grails.project.source.level = 1.6 //grails.project.war.file = "target/${appname}-${appversion}.war" grails.server.port.http = 1111 grails.project.fork = [ // configure settings compilation jvm, note if alter groovy version forked compilation required // compile: [maxmemory: 256, minmemory: 64, debug: false, maxperm: 256, daemon:true], // configure settings test-app jvm, uses daemon default test: [maxmemory: 768, minmemory: 64, debug: false, maxperm: 256, daemon:true], // configure settings run-app jvm run: [maxmemory: 768, minmemory: 64, debug: false, maxperm: 256, forkreserve:false], // configure settings run-war jvm war: [maxmemory: 768, minmemory: 64, debug: false, maxperm: 256, forkreserve:false], // configure settings console ui jvm console: [maxmemory: 768, minmemory: 64, debug: false, maxperm: 256] ] grails.project.dependency.resolver = "maven" // or ivy grails.project.dependency.resolution = { // inherit grails' default dependencies inherits("global") { // specify dependency exclusions here; example, uncomment disable ehcache: // excludes 'ehcache' } log "error" // log level of ivy resolver, either 'error', 'warn', 'info', 'debug' or 'verbose' checksums true // whether verify checksums on resolve legacyresolve false // whether secondary resolve on plugin installation, not advised , here backwards compatibility repositories { inherits true // whether inherit repository definitions plugins grailsplugins() grailshome() mavenlocal() grailscentral() mavencentral() // uncomment these (or add together new ones) enable remote dependency resolution public maven repositories //mavenrepo "http://repository.codehaus.org" //mavenrepo "http://download.java.net/maven/2/" //mavenrepo "http://repository.jboss.com/maven2/" } dependencies { // specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes e.g. // runtime 'mysql:mysql-connector-java:5.1.29' // runtime 'org.postgresql:postgresql:9.3-1101-jdbc41' test "org.grails:grails-datastore-test-support:1.0-grails-2.4" compile 'org.springframework.data:spring-data-neo4j-rest:3.2.0.release' } plugins { // plugins build scheme build ":tomcat:7.0.55" // plugins compile step compile ":scaffolding:2.1.2" compile ':cache:1.1.7' compile ":asset-pipeline:1.9.6" // plugins needed @ runtime not compilation runtime ":hibernate4:4.3.5.5" // or ":hibernate:3.6.10.17" runtime ":database-migration:1.4.0" runtime ":jquery:1.11.1" compile ":mongodb:3.0.2" // uncomment these enable additional asset-pipeline capabilities //compile ":sass-asset-pipeline:1.9.0" //compile ":less-asset-pipeline:1.10.0" //compile ":coffee-asset-pipeline:1.8.0" //compile ":handlebars-asset-pipeline:1.3.0.3" } }

with configuration getting next error :

error creating bean name 'transactionmanagerpostprocessor': initialization of bean failed; nested exception org.springframework.beans.factory.beancreationexception: error creating bean name 'transactionmanager': cannot resolve reference bean 'mongotransactionmanager' while setting constructor argument key [1]; nested exception org.springframework.beans.factory.beancreationexception: error creating bean name 'mongotransactionmanager': cannot resolve reference bean 'mongodatastore' while setting bean property 'datastore'; nested exception org.springframework.beans.factory.beancreationexception: error creating bean name 'mongodatastore': factorybean threw exception on object creation; nested exception java.lang.nosuchmethoderror: org.springframework.data.util.classtypeinformation.from(ljava/lang/class;)lorg/springframework/data/util/typeinformation; line | method ->> 334 | innerrun in java.util.concurrent.futuretask$sync - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 166 | run in java.util.concurrent.futuretask | 1146 | runworker in java.util.concurrent.threadpoolexecutor | 615 | run in java.util.concurrent.threadpoolexecutor$worker ^ 701 | run . . . in java.lang.thread caused beancreationexception: error creating bean name 'transactionmanager': cannot resolve reference bean 'mongotransactionmanager' while setting constructor argument key [1]; nested exception org.springframework.beans.factory.beancreationexception: error creating bean name 'mongotransactionmanager': cannot resolve reference bean 'mongodatastore' while setting bean property 'datastore'; nested exception org.springframework.beans.factory.beancreationexception: error creating bean name 'mongodatastore': factorybean threw exception on object creation; nested exception java.lang.nosuchmethoderror: org.springframework.data.util.classtypeinformation.from(ljava/lang/class;)lorg/springframework/data/util/typeinformation; ->> 334 | innerrun in java.util.concurrent.futuretask$sync - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 166 | run in java.util.concurrent.futuretask | 1146 | runworker in java.util.concurrent.threadpoolexecutor | 615 | run in java.util.concurrent.threadpoolexecutor$worker ^ 701 | run . . . in java.lang.thread caused beancreationexception: error creating bean name 'mongotransactionmanager': cannot resolve reference bean 'mongodatastore' while setting bean property 'datastore'; nested exception org.springframework.beans.factory.beancreationexception: error creating bean name 'mongodatastore': factorybean threw exception on object creation; nested exception java.lang.nosuchmethoderror: org.springframework.data.util.classtypeinformation.from(ljava/lang/class;)lorg/springframework/data/util/typeinformation; ->> 334 | innerrun in java.util.concurrent.futuretask$sync - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 166 | run in java.util.concurrent.futuretask | 1146 | runworker in java.util.concurrent.threadpoolexecutor | 615 | run in java.util.concurrent.threadpoolexecutor$worker ^ 701 | run . . . in java.lang.thread caused beancreationexception: error creating bean name 'mongodatastore': factorybean threw exception on object creation; nested exception java.lang.nosuchmethoderror: org.springframework.data.util.classtypeinformation.from(ljava/lang/class;)lorg/springframework/data/util/typeinformation; ->> 334 | innerrun in java.util.concurrent.futuretask$sync - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 166 | run in java.util.concurrent.futuretask | 1146 | runworker in java.util.concurrent.threadpoolexecutor | 615 | run in java.util.concurrent.threadpoolexecutor$worker ^ 701 | run . . . in java.lang.thread caused nosuchmethoderror: org.springframework.data.util.classtypeinformation.from(ljava/lang/class;)lorg/springframework/data/util/typeinformation; ->> 255 | createmongotemplate in org.grails.datastore.mapping.mongo.mongodatastore - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 221 | afterpropertiesset in '' | 54 | getobject in org.grails.datastore.gorm.mongo.bean.factory.mongodatastorefactorybean | 334 | innerrun in java.util.concurrent.futuretask$sync | 166 | run . . . in java.util.concurrent.futuretask | 1146 | runworker in java.util.concurrent.threadpoolexecutor | 615 | run . . . in java.util.concurrent.threadpoolexecutor$worker ^ 701 | run in java.lang.thread

i using grails 2.4.3 , groovy 2.3.

java spring mongodb grails spring-data-neo4j

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -