[ 
https://issues.apache.org/jira/browse/OFBIZ-5047?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13481912#comment-13481912
 ] 

Paul Foxworthy commented on OFBIZ-5047:
---------------------------------------

XmlDsDump seems to be designed to expect the name of an entity or entities to 
dump in the entityName parameter. See line 37 at

https://fisheye6.atlassian.com/browse/ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/entity/XmlDsDump.groovy?hb=true#to37

If it all works fine if you use 
https://localhost:8443/webtools/control/xmldsdump?entityName=Party, I don't 
think there's a major problem.

I wonder if some difference in the JVM or Groovy version means you are getting 
a null and not an empty string for the entityName, but in any case you won't 
get useful results until you do supply an entityName.

We could make XmlDsDump less fragile and avoid an exception if there is no 
entityName, but what should it do instead? Just produce an empty XML document?



                
> Import/export
> -------------
>
>                 Key: OFBIZ-5047
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-5047
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: Release Branch 12.04
>         Environment: ubuntu 12_4, ofBIZ_12_4
>            Reporter: sergio kosik
>            Assignee: Jacques Le Roux
>         Attachments: ofbiz_result_screen.png, start_screen.png
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> I just check out code from SVN,
> - invoked <ant load-demo> command and  
> - just tried invoke Import/export functionality from backoffice page
> The Faield :ERROR MESSAGE: was result:
> https://localhost:8443/webtools/control/xmldsdump
> org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen 
> [component://webtools/widget/EntityScreens.xml#xmldsdump]: 
> java.lang.IllegalArgumentException: Error running script at location 
> [component://webtools/webapp/webtools/WEB-INF/actions/entity/XmlDsDump.groovy]:
>  javax.script.ScriptException: 
> org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast 
> object '[null]' with class 'java.util.ArrayList' to class 'java.util.TreeSet' 
> due to: java.lang.NullPointerException (Error running script at location 
> [component://webtools/webapp/webtools/WEB-INF/actions/entity/XmlDsDump.groovy]:
>  javax.script.ScriptException: 
> org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast 
> object '[null]' with class 'java.util.ArrayList' to class 'java.util.TreeSet' 
> due to: java.lang.NullPointerException)
> ---- stack trace 
> ---------------------------------------------------------------
> java.lang.IllegalArgumentException: Error running script at location 
> [component://webtools/webapp/webtools/WEB-INF/actions/entity/XmlDsDump.groovy]:
>  javax.script.ScriptException: 
> org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast 
> object '[null]' with class 'java.util.ArrayList' to class 'java.util.TreeSet' 
> due to: java.lang.NullPointerException
> org.ofbiz.base.util.ScriptUtil.executeScript(ScriptUtil.java:348)
> org.ofbiz.base.util.ScriptUtil.executeScript(ScriptUtil.java:324)
> org.ofbiz.widget.ModelWidgetAction$Script.runAction(ModelWidgetAction.java:416)
> org.ofbiz.widget.ModelWidgetAction.runSubActions(ModelWidgetAction.java:116)
> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:184)
> org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:396)
> org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:135)
> org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:97)
> org.ofbiz.widget.screen.MacroScreenViewHandler.render(MacroScreenViewHandler.java:104)
> org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:864)
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:581)
> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:224)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:337)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999)
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565)
> org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:309)
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> java.lang.Thread.run(Thread.java:722)
> ----------------------------------------------------------------------------
> I will check it for 11_x release soon

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to