I’m trying to use some sort of hibernate object unwrapper/eager fetcher, and beanlib seems to do exactly what I need. However, when I try to use it within my grails 1.3.7 project, I only get the following errors:
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userService': Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.<init>(Z)V
My usage is trivial:
Hibernate3DtoCopier replicator = new Hibernate3DtoCopier()
return replicator.deepCopy(user)
I’ve tried excluding transitive dependencies, but no matter what I seem to try, this keeps failing in various ways. Help?
Dozer does this, but only if you ignore the documentation.
The
DozerBeanSingletonWrapperwill attempt to load XML files off the classpath, while manual instantiation will not.