Skip to content
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

java.lang.NoClassDefFoundError: org/apache/commons/lang/ObjectUtils #128

Open
abcfy2 opened this issue Dec 24, 2020 · 0 comments
Open

java.lang.NoClassDefFoundError: org/apache/commons/lang/ObjectUtils #128

abcfy2 opened this issue Dec 24, 2020 · 0 comments
Labels

Comments

@abcfy2
Copy link

abcfy2 commented Dec 24, 2020

Grails 4.0.5 will raise this exception:

        at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:130)
        at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)
        at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
        at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:249)
        at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:78)
        at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:99)
        at io.undertow.server.Connectors.executeRootHandler(Connectors.java:376)
        at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:830)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NoClassDefFoundError: org/apache/commons/lang/ObjectUtils
        at net.kaleidos.hibernate.usertype.JsonMapType.equals(JsonMapType.groovy:38)
        at org.hibernate.type.CustomType.isEqual(CustomType.java:105)
        at org.hibernate.type.AbstractType.isSame(AbstractType.java:119)
        at org.hibernate.type.AbstractType.isDirty(AbstractType.java:79)
        at org.hibernate.type.CustomType.isDirty(CustomType.java:249)
        at org.hibernate.type.TypeHelper.findDirty(TypeHelper.java:316)
        at org.hibernate.persister.entity.AbstractEntityPersister.findDirty(AbstractEntityPersister.java:4614)
        at org.grails.orm.hibernate.HibernateGormInstanceApi.findDirty(HibernateGormInstanceApi.groovy:73)
        at org.grails.orm.hibernate.HibernateGormInstanceApi.isDirty(HibernateGormInstanceApi.groovy:61)
        at org.grails.datastore.gorm.GormEntity$Trait$Helper.isDirty(GormEntity.groovy:211)

Seems that this extension still use the old version of apache-common('commons-lang:commons-lang:2.6'), but grails 4 bump the version to commons-lang3:3.8. So I think you should upgradle the apache-common dependencies.

@ilopmar ilopmar added the bug label Jan 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants