|
[ https://issues.apache.org/jira/browse/OFBIZ-5267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13734788#comment-13734788 ] Jacques Le Roux commented on OFBIZ-5267: ---------------------------------------- OK, it's a long way again... This is related with https://svn.apache.org/viewvc?view=revision&revision=1361130 Quoting Jacopo: {quote} Moved the "birt" component out of framework to specialpurpose; moved all the birt reports from the applications to the birt component itself, where the application webapps are overriden to inject the reports; the end result is the same but since all these birt reports are simply a proof of concepts that cannot be used in production (for example they use hardcoded userlogin for authentication) the birt component should be probably disabled by default (but this will be discussed in the dev list). Now it will be very easy to extract the birt component (for OFBiz Extras) or to disable it when deploying to production or when interested in sparing some hardware resources. I did some cursory tests but since the work has been challenging and rather complex I would appreciate testing help and also reviews to finds chunks of code that I could have missed and that could be moved out as well. {quote} So to test, I temporarily added the birt-ordermngr controller to the main ordermngr controller and removed the call to the main ordermngr controller from the birt-ordermngr controller. It would work (though as said Jacopo not following best practices, notably would mean a dependency from specialpurpose/birt component to order component) but there are other issues then, like 2013-08-09 15:31:44,968 (http-bio-0.0.0.0-8443-exec-2) [ RequestHandler.java:809:INFO ] Rendering View [NetBeforeOverheadOrderReport], sessionId=EBCC15B18E7484B45138AF69AFCC3DA9.jvm1 2013-08-09 15:31:44,968 (http-bio-0.0.0.0-8443-exec-2) [ BirtFactory.java:85 :INFO ] Got report in 0.0s from: file:/D:/workspace/ofbizClean/specialpurpose/birt/webapp/ordermgr/reports/NetBeforeOverhead Report.rptdesign 2013-08-09 15:31:48,328 (http-bio-0.0.0.0-8443-exec-2) [ BirtWorker.java:84 :INFO ] Get report engine 2013-08-09 15:31:48,421 (http-bio-0.0.0.0-8443-exec-2) [ BirtWorker.java:89 :INFO ] Set BIRT locale:en 2013-08-09 15:31:48,453 (http-bio-0.0.0.0-8443-exec-2) [ BirtWorker.java:96 :INFO ] Set BIRT parameters:{productStoreId=, DateDay=2013-08-09, DateMonth=08, DateYear=2013, NunberDate=31} 2013-08-09 15:31:48,468 (http-bio-0.0.0.0-8443-exec-2) [ BirtWorker.java:135:INFO ] BIRT's locale is: en 2013-08-09 15:31:48,468 (http-bio-0.0.0.0-8443-exec-2) [ BirtWorker.java:136:INFO ] Run report's task 2013-08-09 15:31:48,484 (http-bio-0.0.0.0-8443-exec-2) [ ControlServlet.java:223:ERROR] ---- exception report ---------------------------------------------------------- Error in request handler: Exception: org.eclipse.birt.report.engine.api.impl.ParameterValidationException Message: The type of parameter "DateYear" is expected as "integer", not "java.lang.String". (Element ID:4754) ---- stack trace --------------------------------------------------------------- org.eclipse.birt.report.engine.api.impl.ParameterValidationException: The type of parameter "DateYear" is expected as "integer", not "java.lang.String". (Element ID:4754) org.eclipse.birt.report.engine.api.impl.EngineTask.validateParameterValueType(EngineTask.java:923) org.eclipse.birt.report.engine.api.impl.EngineTask.validateAbstractScalarParameter(EngineTask.java:845) org.eclipse.birt.report.engine.api.impl.EngineTask.access$0(EngineTask.java:772) org.eclipse.birt.report.engine.api.impl.EngineTask$ParameterValidationVisitor.visitScalarParameter(EngineTask.java:702) org.eclipse.birt.report.engine.api.impl.EngineTask$ParameterVisitor.visit(EngineTask.java:1498) org.eclipse.birt.report.engine.api.impl.EngineTask.doValidateParameters(EngineTask.java:688) org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAndRenderTask.java:94) org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run(RunAndRenderTask.java:77) org.ofbiz.birt.BirtWorker.exportReport(BirtWorker.java:137) org.ofbiz.birt.webapp.view.BirtViewHandler.render(BirtViewHandler.java:117) org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:911) Since I never worked with Birt, and there are other pending issues, I gave up at this stage... Note this not toally unrelated commit as well: https://svn.apache.org/viewvc?view=revision&revision=1396105 Seems all paths are bending to the same solution... > Net before overhead report generates an error > --------------------------------------------- > > Key: OFBIZ-5267 > URL: https://issues.apache.org/jira/browse/OFBIZ-5267 > Project: OFBiz > Issue Type: Bug > Components: order > Affects Versions: SVN trunk > Reporter: Pierre Smits > Fix For: SVN trunk > > > When trying to generate a 'Net Before Overhead Report' in ORDERMGR:Reports following error is shown: > org.ofbiz.webapp.control.RequestHandlerException: Unknown request [NetBeforeOverheadReport.pdf]; this request does not exist or cannot be called directly. -- 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 |
| Free forum by Nabble | Edit this page |
