Uploaded image for project: 'Spring Data for Apache Cassandra'
  1. Spring Data for Apache Cassandra
  2. DATACASS-338

java.lang.NoSuchFieldError: INSTANCE in CassandraConverters.java

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Works as Designed
    • Affects Version/s: 1.5 M1 (Ingalls)
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None
    • Environment:
      windows 10, java version "1.8.0_101"
      Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
      Java HotSpot(TM) Client VM (build 25.101-b13, mixed mode, sharing)
      cassandra 3.7
    • Virtual Machine:
      Sun JVM - 1.7
    • Platform:
      Standalone
    • Last commented by a User:
      true

      Description

      Getting on startup exception. I think it might be an dependency problem. Pls help!

      gradle dependencis:

      dependencies {
          compile("org.springframework.boot:spring-boot-starter-web:$springbootstarterweb")
          //compile("org.springframework:spring-web")
      
          //cassandra
          compile("org.springframework.data:spring-data-cassandra:$springDataCassandraVersion")
          compile 'com.datastax.cassandra:cassandra-driver-core:3.1.0'
          compile "org.apache.cassandra:cassandra-all:$cassandraDriver"
      
          //general stuff
          compile("org.yaml:snakeyaml:1.15")
          compile("org.projectlombok:lombok:1.16.2")
          compile("com.fasterxml.jackson.core:jackson-databind")
          compile 'org.javassist:javassist:3.15.0-GA'
          compile 'io.netty:netty-all:4.0.34.Final'
      
          //testing
          testCompile('org.springframework:spring-test:4.2.4.RELEASE')
          testCompile("org.springframework.boot:spring-boot-starter-test:$springBootVersion")
          testCompile("junit:junit:4.11")
          testCompile 'org.cassandraunit:cassandra-unit-spring:2.2.2.1'
      }
      

      Exception:

      Caused by: java.lang.NoSuchFieldError: INSTANCE
      	at org.springframework.data.cassandra.convert.CassandraConverters.getConvertersToRegister(CassandraConverters.java:61) ~[spring-data-cassandra-1.5.0.M1.jar:na]
      	at org.springframework.data.cassandra.convert.CustomConversions.<init>(CustomConversions.java:100) ~[spring-data-cassandra-1.5.0.M1.jar:na]
      	at org.springframework.data.cassandra.mapping.BasicCassandraMappingContext.<init>(BasicCassandraMappingContext.java:86) ~[spring-data-cassandra-1.5.0.M1.jar:na]
      	at org.springframework.data.cassandra.config.java.AbstractCassandraConfiguration.cassandraMapping(AbstractCassandraConfiguration.java:109) ~[spring-data-cassandra-1.5.0.M1.jar:na]
      	at storage.cassandra.CassandraConfig$$EnhancerBySpringCGLIB$$c1559ca8.CGLIB$cassandraMapping$8(<generated>) ~[main/:na]
      	at storage.cassandra.CassandraConfig$$EnhancerBySpringCGLIB$$c1559ca8$$FastClassBySpringCGLIB$$fdd5ba37.invoke(<generated>) ~[main/:na]
      	at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228) ~[spring-core-4.3.2.RELEASE.jar:4.3.2.RELEASE]
      	at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:356) ~[spring-context-4.3.2.RELEASE.jar:4.3.2.RELEASE]
      	at storage.cassandra.CassandraConfig$$EnhancerBySpringCGLIB$$c1559ca8.cassandraMapping(<generated>) ~[main/:na]
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_73]
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_73]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_73]
      	at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_73]
      	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162) ~[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
      
      

        Attachments

          Activity

            People

            Assignee:
            mp911de Mark Paluch
            Reporter:
            os@voxtronic.com Oliver Schaumüller
            Last updater:
            Mark Paluch
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              4 years, 1 week, 2 days ago