-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NoClassDefFoundError: org/hibernate/bytecode/internal/javassist/FieldHandler with hibernate 5.1 #86
Comments
Thank you for reporting this. Looks like handling needs to be improved here. I assume 5.0.x of Hibernate still had this class... perhaps 5.1 has it moved to a different package. |
Hmmh. Ok. So no replacement. I wish I knew whether handling is needed for 5.0.x itself either. |
Is this fixed in |
@heruan It will be in 2.7.2. |
I use HIBERNATE 5.2.4 and tried different versions of jackson-datatype-hibernate but the error is still present! |
Do you use jackson-datatype-hibernate5 or jackson-datatype-hibernate? I use 5.2.4.Final and 2.8.4 and everything works properly. |
I just realized this, thank you! |
I have just updated jackson-datatype-hibernate5 to the version 2.7.1 and hibernate to v. 5.1.0.Final
and get the error: java.lang.NoClassDefFoundError: org/hibernate/bytecode/internal/javassist/FieldHandler
As I can see from commit
hibernate/hibernate-orm@472f4ab
the file org.hibernate.bytecode.internal.javassist.FieldHandler was removed.
Here is stacktrace:
Caused by: java.lang.NoClassDefFoundError: org/hibernate/bytecode/internal/javassist/FieldHandler
at com.fasterxml.jackson.datatype.hibernate5.HibernateAnnotationIntrospector.isIgnorableType(HibernateAnnotationIntrospector.java:82)
at com.fasterxml.jackson.databind.introspect.AnnotationIntrospectorPair.isIgnorableType(AnnotationIntrospectorPair.java:150)
at com.fasterxml.jackson.databind.ser.BeanSerializerFactory.removeIgnorableTypes(BeanSerializerFactory.java:704)
at com.fasterxml.jackson.databind.ser.BeanSerializerFactory.findBeanProperties(BeanSerializerFactory.java:572)
at com.fasterxml.jackson.databind.ser.BeanSerializerFactory.constructBeanSerializer(BeanSerializerFactory.java:388)
at com.fasterxml.jackson.databind.ser.BeanSerializerFactory.findBeanSerializer(BeanSerializerFactory.java:271)
at com.fasterxml.jackson.databind.ser.BeanSerializerFactory._createSerializer2(BeanSerializerFactory.java:223)
at com.fasterxml.jackson.databind.ser.BeanSerializerFactory.createSerializer(BeanSerializerFactory.java:157)
at com.fasterxml.jackson.databind.SerializerProvider._createUntypedSerializer(SerializerProvider.java:1215)
at com.fasterxml.jackson.databind.SerializerProvider._createAndCacheUntypedSerializer(SerializerProvider.java:1167)
at com.fasterxml.jackson.databind.SerializerProvider._findExplicitUntypedSerializer(SerializerProvider.java:1136)
at com.fasterxml.jackson.databind.ser.DefaultSerializerProvider.hasSerializerFor(DefaultSerializerProvider.java:431)
at com.fasterxml.jackson.databind.ObjectMapper.canSerialize(ObjectMapper.java:2611)
The text was updated successfully, but these errors were encountered: