When OFBiz project starts, caused by: org.codehaus.groovy . control.MultipleCompilationErrorsException : startup failed:

Error in console:

Caused by: org.ofbiz.base . util.GeneralException : Error loading Groovy script at [ component://zxdoc/webapp/zxdoc/WEB-INF/actions/index/PrepareBrowserInfo.groovy ]:  (startup failed:
component://zxdoc/webapp/zxdoc/WEB-INF/actions/index/PrepareBrowserInfo.groovy : 4: A transform used a generics containing ClassNode org.ofbiz.service . engine.GroovyBaseScript for the super class PrepareBrowserInfo directly. You are not supposed to do this. Please create a new ClassNode referring to the old ClassNode and use the new ClassNode instead of the old one. Otherwise the compiler will create wrong descriptors and a potential NullPointerException in TypeResolver in the OpenJDK. If this is not your own doing, please report this bug to the writer of the transform.

Translation: convert to include classnode org.ofbiz.service Generics of. Engine. Write groovybasescript directly for the superclass preparebrowserinfo. You shouldn’t do that. Create a new class node that references the old class node and use the new class node instead of the old class node. Otherwise, the compiler will create incorrect descriptors and potential nullpointerexceptions in openjdk’s typeresolver. If you did not do this yourself, report this error to the author of the transformation.
 @ line 4, column 1.
   UserAgent ua = UserAgent.parseUserAgentString ( request.getHeader (“User-Agent”));

Problems error:

Description    Resource    Path    Location    Type
Multiple Groovy compilers found on classpath. Continuing with compilation will produce unpredictible results. Remove a compiler before continuing.
Found 2.2 and 2.5    ofbiz-release14.12        ofbiz-release14.12    Groovy compiler mismatch problem

 

Read More: