I got this Exception:
Caused by: java.lang.NoSuchFieldError: INSTANCE
This happens if you have two diffrent hibernate version in your classpath.
I know things and I build stuff
I got this Exception:
Caused by: java.lang.NoSuchFieldError: INSTANCE
This happens if you have two diffrent hibernate version in your classpath.
Not only that there may be conflict in other jars
I think it is solved here : https://forum.hibernate.org/viewtopic.php?p=2441755
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
It seems that WordPress has stripped out the XML from my comment. Unfortunately, it’s a bit meaningless without the XML tags. 😦
I guest that’s groupId, artifactId and version.
But try it please again after you have read this article here:
http://en.support.wordpress.com/code/posting-source-code/
how to post code in wordpress.
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