ofbiz项目启动时Caused by: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:

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.

翻译:转换使用包含ClassNode org.ofbiz.service.engine的泛型。直接为超级类PrepareBrowserInfo编写GroovyBaseScript。你不应该这么做。请创建一个引用旧类节点的新类节点,并使用新类节点代替旧类节点。否则编译器将在OpenJDK的TypeResolver中创建错误的描述符和潜在的NullPointerException。如果这不是您自己做的,请将此错误报告给转换的作者。
 @ line 4, column 1.
   UserAgent ua = UserAgent.parseUserAgentString(request.getHeader("User-Agent"));

problems报错:

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

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值