Caused by: java.lang.NoSuchFieldError: INSTANCE

I got this Exception:

Caused by: java.lang.NoSuchFieldError: INSTANCE

This happens if you have two diffrent hibernate version in your classpath.

6 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:




Leave a Reply

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

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

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s