Hello everyone!

I am customizing a plugin with ofbiz (new screens and entities, not groovy at 
all), and in my local computer (Windows 10, jdk8_171) works prety fine, but 
when I build a docker image and deploy it (Linux), some screens have 
Exceptions, and also lookups show groovy errors.


This screen is webTools -> Service Engine

2018-09-04 12:57:07,268 |http-nio-8443-exec-1 |ControlServlet                
|E| Error in request handler:
org.apache.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen 
[component://webtools/widget/ServiceScreens.xml#ServiceList]: 
java.lang.IllegalArgumentException: Error running script at location 
[component://webtools/groovyScripts/service/AvailableServices.groovy]: 
org.apache.ofbiz.base.util.GeneralException: Error loading Groovy script at 
[component://webtools/groovyScripts/service/AvailableServices.groovy]:  
(startup failed:
component://webtools/groovyScripts/service/AvailableServices.groovy: 334: A 
transform used a generics containing ClassNode 
org.apache.ofbiz.service.engine.GroovyBaseScript for the super class 
AvailableServices 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.
@ line 334, column 1.
   dispArrList = new TreeSet()
   ^

1 error


Then, in Log Screen:

2018-09-04 12:57:36,416 |http-nio-8443-exec-7 |ModelScreen                   
|E| Error rendering screen 
[component://webtools/widget/LogScreens.xml#LogView]: 
java.lang.IllegalArgumentException: Error running script at location 
[component://webtools/groovyScripts/log/FetchLogs.groovy]: 
org.apache.ofbiz.base.util.GeneralException: Error loading Groovy script at 
[component://webtools/groovyScripts/log/FetchLogs.groovy]:  (startup failed:
component://webtools/groovyScripts/log/FetchLogs.groovy: 23: A transform used a 
generics containing ClassNode org.apache.ofbiz.service.engine.GroovyBaseScript 
for the super class FetchLogs 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.
@ line 23, column 1.
   String ofbizLogDir = UtilProperties.getPropertyValue("debug", 
"log4j.appender.css.dir", "runtime/logs/")
   ^

1 error


And in my custom Lookpus, the screen does not fails completly, but shows this 
error in the dinamic groovy part of the field:


org.apache.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen 
[component://common/widget/CommonScreens.xml#LookupDecorator]: 
java.lang.IllegalArgumentException: Error running script at location 
[component://common/groovyScripts/FindAutocompleteOptions.groovy]: 
org.apache.ofbiz.base.util.GeneralException: Error loading Groovy script at 
[component://common/groovyScripts/FindAutocompleteOptions.groovy]: 
(startup failed: 
component://common/groovyScripts/FindAutocompleteOptions.groovy: 32: 
A transform used a generics containing ClassNode 
org.apache.ofbiz.service.engine.GroovyBaseScript for the super class 
FindAutocompleteOptions 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. @ line 32, column 1. def mainAndConds = [] ^ 1 error ) 
(Error running script at location 
[component://common/groovyScripts/FindAutocompleteOptions.groovy]: 


Any suggestions why only fails in docker/linux?

Thanks in advance!

Reply via email to