7 thoughts on “Caused by: java.lang.NoSuchFieldError: INSTANCE

  1. And a little tip if you use Maven for your dependency management.

    I came across this issue due to importing the drools-spring library, which happens to have it’s own dependency on a particular version of Hibernate. If you have such an additional transitive dependency, then you can prevent that dependency being sucked into your build with something like the following:

    org.drools
    drools-spring
    ${drools.version}

    org.hibernate
    hibernate-annotations

    org.hibernate
    hibernate-commons-annotations

  2. Caused by: java.lang.NoSuchFieldError: INSTANCE

    one of the solution of java.lang.NoSuchFieldError: INSTANCE : This happens if we have two diff version of same class in our classpath…. […], So we first find that class(one version of class) , click that class, select “build path”, then we click “remove from build path” . by 333ccc333

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: