NoSuchMethodError: javassist.util.proxy.RuntimeSupport.find2Methods deploying Hibernate app in EAP 6

Solution Verified - Updated -

Issue

Encountering the following error when deploying a Hibernate application in EAP

00:20:48,416 ERROR [org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer] (ServerService Thread Pool -- 58) HHH000142: Javassist Enhancement failed: org.myco.MyClass:
java.lang.NoSuchMethodError: javassist.util.proxy.RuntimeSupport.find2Methods(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;[Ljava/lang/reflect/Method;)V
        at org.myco.MyClass_$$_jvst211_0.<clinit>(MyClass_$$_jvst211_0.java)
        ...
        at javassist.util.proxy.ProxyFactory.setField(ProxyFactory.java:525) [javassist-3.12.1.GA.jar:3.12.0.GA]
        at javassist.util.proxy.ProxyFactory.createClass3(ProxyFactory.java:508) [javassist-3.12.1.GA.jar:3.12.0.GA]
        at javassist.util.proxy.ProxyFactory.createClass2(ProxyFactory.java:492) [javassist-3.12.1.GA.jar:3.12.0.GA]
        at javassist.util.proxy.ProxyFactory.createClass1(ProxyFactory.java:428) [javassist-3.12.1.GA.jar:3.12.0.GA]
        at javassist.util.proxy.ProxyFactory.createClass(ProxyFactory.java:400) [javassist-3.12.1.GA.jar:3.12.0.GA]
        at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.getProxyFactory(JavassistLazyInitializer.java:163)
        ...
        at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:389)
        at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1799)
        at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1870)
        ...

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP) 6
  • Hibernate 4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content