I was suggested to upgrade to 6.5.5 for a db issue. But once I upgrade my application to 6.5.5, I got error as below:
... 99 more
Caused by: java.lang.NoClassDefFoundError: org/apache/commons/io/IOUtils
at CubaPlugin$_addDependenciesFromAppComponentsConfiguration_closure38.doCall(CubaPlugin.groovy:699)
at com.sun.proxy.$Proxy59.accept(Unknown Source)
at java_util_function_Consumer$accept$0.call(Unknown Source)
at CubaPlugin.walkJarDependencies(CubaPlugin.groovy:729)
at CubaPlugin.this$2$walkJarDependencies(CubaPlugin.groovy)
at CubaPlugin.walkJarDependencies(CubaPlugin.groovy:719)
at CubaPlugin.this$2$walkJarDependencies(CubaPlugin.groovy)
at CubaPlugin.addDependenciesFromAppComponentsConfiguration(CubaPlugin.groovy:667)
at CubaPlugin.this$2$addDependenciesFromAppComponentsConfiguration(CubaPlugin.groovy)
at CubaPlugin.addDependenciesFromAppComponents(CubaPlugin.groovy:611)
at CubaPlugin.this$2$addDependenciesFromAppComponents(CubaPlugin.groovy)
at CubaPlugin.doAfterEvaluateForModuleProject(CubaPlugin.groovy:161)
at CubaPlugin.this$2$doAfterEvaluateForModuleProject(CubaPlugin.groovy)
at CubaPlugin$_apply_closure2.doCall(CubaPlugin.groovy:77)
at org.gradle.listener.ClosureBackedMethodInvocationDispatch.dispatch(ClosureBackedMethodInvocationDispatch.java:40)
at org.gradle.listener.ClosureBackedMethodInvocationDispatch.dispatch(ClosureBackedMethodInvocationDispatch.java:25)
at org.gradle.internal.event.AbstractBroadcastDispatch.dispatch(AbstractBroadcastDispatch.java:44)
... 104 more
FAILURE: Build failed with an exception.
After that I try to create an application based on 6.5.5 from CUBA studio, I got the same error.
I have checked CUBA Studio installation folder and I found commons-io-2.4.jar is there and ‘org.apache.commons.io.IOUtils’ is in it.
Once I downgrade CUBA platform to 6.5.4 the error disappeared. How can I solve this problem?
BTW, I have tried to use ‘gradle’ from command line and everything is OK.
BTW again, my Studio version is 6.5.4.
Thanks for your time