"setShippingOption" service called from one page checkout throws Exception
-------------------------------------------------------------------------- Key: OFBIZ-3886 URL: https://issues.apache.org/jira/browse/OFBIZ-3886 Project: OFBiz Issue Type: Bug Components: specialpurpose/ecommerce Affects Versions: Release Branch 10.04, SVN trunk Reporter: Rene Scheibe See the exception below: [java] 2010-08-10 10:31:02,139 (http-0.0.0.0-8443-2) [ Log.java:111:INFO ] [CustomerEvents.xml#setShippingOption] shipmentMethodTypeId is NO_SHIPPING [java] 2010-08-10 10:31:02,141 (http-0.0.0.0-8443-2) [ Log.java:111:INFO ] [CustomerEvents.xml#setShippingOption] carrierPartyId is _NA_ [java] 2010-08-10 10:31:02,143 (http-0.0.0.0-8443-2) [ Log.java:111:INFO ] [CustomerEvents.xml#setShippingOption] productStoreShipMethId is 9000 [java] 2010-08-10 10:31:02,262 (http-0.0.0.0-8443-2) [ CallBsh.java:124:ERROR] [java] ---- exception report ---------------------------------------------------------- [java] BeanShell execution caused an error [java] Exception: bsh.EvalError [java] Message: Sourced file: inline evaluation of: `` Map shipCost = org.ofbiz.order.shoppingcart.shipping.ShippingEvents . . . '' : Error in method invocation: Method setItemShipGroupEstimate( double, int ) not found in class'org.ofbiz.order.shoppingcart.WebShoppingCart' [java] ---- stack trace --------------------------------------------------------------- [java] Sourced file: inline evaluation of: `` Map shipCost = org.ofbiz.order.shoppingcart.shipping.ShippingEvents . . . '' : Error in method invocation: Method setItemShipGroupEstimate( double, int ) not found in class'org.ofbiz.order.shoppingcart.WebShoppingCart' : at Line: 8 : in file: inline evaluation of: `` Map shipCost = org.ofbiz.order.shoppingcart.shipping.ShippingEvents . . . '' : shoppingCart .setItemShipGroupEstimate ( shippingTotal , 0 ) [java] bsh.BSHMethodInvocation.eval(Unknown Source) [java] bsh.BSHPrimaryExpression.eval(Unknown Source) [java] bsh.BSHPrimaryExpression.eval(Unknown Source) [java] bsh.Interpreter.evalParsedScript(Unknown Source) [java] bsh.Interpreter.eval(Unknown Source) [java] bsh.Interpreter.eval(Unknown Source) [java] bsh.Interpreter.eval(Unknown Source) [java] org.ofbiz.minilang.method.callops.CallBsh.exec(CallBsh.java:116) [java] org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:920) [java] org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:739) [java] org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:160) [java] org.ofbiz.minilang.SimpleMethod.runSimpleEvent(SimpleMethod.java:121) [java] org.ofbiz.webapp.event.SimpleEventHandler.invoke(SimpleEventHandler.java:69) [java] org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:637) [java] org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:383) [java] org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:227) [java] org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:90) [java] javax.servlet.http.HttpServlet.service(HttpServlet.java:637) [java] javax.servlet.http.HttpServlet.service(HttpServlet.java:717) [java] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) [java] org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [java] org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:269) [java] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [java] org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [java] org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) [java] org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [java] org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [java] org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [java] org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [java] org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555) [java] org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) [java] org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852) [java] org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) [java] org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) [java] java.lang.Thread.run(Thread.java:619) [java] -------------------------------------------------------------------------------- -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
[ https://issues.apache.org/jira/browse/OFBIZ-3886?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rene Scheibe updated OFBIZ-3886: -------------------------------- Attachment: OFBIZ-3886.patch The shippingTotal has to be a BigDecimal for the methods called... - org.ofbiz.base.util.UtilFormatOut.formatCurrency(...) - org.ofbiz.order.shoppingcart.ShoppingCart.setItemShipGroupEstimate(...) ...so in case it's null, initialize it with BigDecimal.ZERO instead of 0.00 > "setShippingOption" service called from one page checkout throws Exception > -------------------------------------------------------------------------- > > Key: OFBIZ-3886 > URL: https://issues.apache.org/jira/browse/OFBIZ-3886 > Project: OFBiz > Issue Type: Bug > Components: specialpurpose/ecommerce > Affects Versions: Release Branch 10.04, SVN trunk > Reporter: Rene Scheibe > Attachments: OFBIZ-3886.patch > > > See the exception below: > [java] 2010-08-10 10:31:02,139 (http-0.0.0.0-8443-2) [ Log.java:111:INFO ] [CustomerEvents.xml#setShippingOption] shipmentMethodTypeId is NO_SHIPPING > [java] 2010-08-10 10:31:02,141 (http-0.0.0.0-8443-2) [ Log.java:111:INFO ] [CustomerEvents.xml#setShippingOption] carrierPartyId is _NA_ > [java] 2010-08-10 10:31:02,143 (http-0.0.0.0-8443-2) [ Log.java:111:INFO ] [CustomerEvents.xml#setShippingOption] productStoreShipMethId is 9000 > [java] 2010-08-10 10:31:02,262 (http-0.0.0.0-8443-2) [ CallBsh.java:124:ERROR] > [java] ---- exception report ---------------------------------------------------------- > [java] BeanShell execution caused an error > [java] Exception: bsh.EvalError > [java] Message: Sourced file: inline evaluation of: `` Map shipCost = org.ofbiz.order.shoppingcart.shipping.ShippingEvents . . . '' : Error in method invocation: Method setItemShipGroupEstimate( double, int ) not found in class'org.ofbiz.order.shoppingcart.WebShoppingCart' > [java] ---- stack trace --------------------------------------------------------------- > [java] Sourced file: inline evaluation of: `` Map shipCost = org.ofbiz.order.shoppingcart.shipping.ShippingEvents . . . '' : Error in method invocation: Method setItemShipGroupEstimate( double, int ) not found in class'org.ofbiz.order.shoppingcart.WebShoppingCart' : at Line: 8 : in file: inline evaluation of: `` Map shipCost = org.ofbiz.order.shoppingcart.shipping.ShippingEvents . . . '' : shoppingCart .setItemShipGroupEstimate ( shippingTotal , 0 ) > [java] bsh.BSHMethodInvocation.eval(Unknown Source) > [java] bsh.BSHPrimaryExpression.eval(Unknown Source) > [java] bsh.BSHPrimaryExpression.eval(Unknown Source) > [java] bsh.Interpreter.evalParsedScript(Unknown Source) > [java] bsh.Interpreter.eval(Unknown Source) > [java] bsh.Interpreter.eval(Unknown Source) > [java] bsh.Interpreter.eval(Unknown Source) > [java] org.ofbiz.minilang.method.callops.CallBsh.exec(CallBsh.java:116) > [java] org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:920) > [java] org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:739) > [java] org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:160) > [java] org.ofbiz.minilang.SimpleMethod.runSimpleEvent(SimpleMethod.java:121) > [java] org.ofbiz.webapp.event.SimpleEventHandler.invoke(SimpleEventHandler.java:69) > [java] org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:637) > [java] org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:383) > [java] org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:227) > [java] org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:90) > [java] javax.servlet.http.HttpServlet.service(HttpServlet.java:637) > [java] javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > [java] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) > [java] org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > [java] org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:269) > [java] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > [java] org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > [java] org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) > [java] org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) > [java] org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) > [java] org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) > [java] org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) > [java] org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555) > [java] org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) > [java] org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852) > [java] org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) > [java] org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) > [java] java.lang.Thread.run(Thread.java:619) > [java] -------------------------------------------------------------------------------- -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-3886?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jacques Le Roux closed OFBIZ-3886. ---------------------------------- Assignee: Jacques Le Roux Fix Version/s: Release Branch 09.04 Release Branch 10.04 SVN trunk Resolution: Fixed Thanks René, Your patch is in trunk at r983920, R10.04 at r983924, R9.04 at r983925 > "setShippingOption" service called from one page checkout throws Exception > -------------------------------------------------------------------------- > > Key: OFBIZ-3886 > URL: https://issues.apache.org/jira/browse/OFBIZ-3886 > Project: OFBiz > Issue Type: Bug > Components: specialpurpose/ecommerce > Affects Versions: Release Branch 10.04, SVN trunk > Reporter: Rene Scheibe > Assignee: Jacques Le Roux > Fix For: Release Branch 09.04, Release Branch 10.04, SVN trunk > > Attachments: OFBIZ-3886.patch > > > See the exception below: > [java] 2010-08-10 10:31:02,139 (http-0.0.0.0-8443-2) [ Log.java:111:INFO ] [CustomerEvents.xml#setShippingOption] shipmentMethodTypeId is NO_SHIPPING > [java] 2010-08-10 10:31:02,141 (http-0.0.0.0-8443-2) [ Log.java:111:INFO ] [CustomerEvents.xml#setShippingOption] carrierPartyId is _NA_ > [java] 2010-08-10 10:31:02,143 (http-0.0.0.0-8443-2) [ Log.java:111:INFO ] [CustomerEvents.xml#setShippingOption] productStoreShipMethId is 9000 > [java] 2010-08-10 10:31:02,262 (http-0.0.0.0-8443-2) [ CallBsh.java:124:ERROR] > [java] ---- exception report ---------------------------------------------------------- > [java] BeanShell execution caused an error > [java] Exception: bsh.EvalError > [java] Message: Sourced file: inline evaluation of: `` Map shipCost = org.ofbiz.order.shoppingcart.shipping.ShippingEvents . . . '' : Error in method invocation: Method setItemShipGroupEstimate( double, int ) not found in class'org.ofbiz.order.shoppingcart.WebShoppingCart' > [java] ---- stack trace --------------------------------------------------------------- > [java] Sourced file: inline evaluation of: `` Map shipCost = org.ofbiz.order.shoppingcart.shipping.ShippingEvents . . . '' : Error in method invocation: Method setItemShipGroupEstimate( double, int ) not found in class'org.ofbiz.order.shoppingcart.WebShoppingCart' : at Line: 8 : in file: inline evaluation of: `` Map shipCost = org.ofbiz.order.shoppingcart.shipping.ShippingEvents . . . '' : shoppingCart .setItemShipGroupEstimate ( shippingTotal , 0 ) > [java] bsh.BSHMethodInvocation.eval(Unknown Source) > [java] bsh.BSHPrimaryExpression.eval(Unknown Source) > [java] bsh.BSHPrimaryExpression.eval(Unknown Source) > [java] bsh.Interpreter.evalParsedScript(Unknown Source) > [java] bsh.Interpreter.eval(Unknown Source) > [java] bsh.Interpreter.eval(Unknown Source) > [java] bsh.Interpreter.eval(Unknown Source) > [java] org.ofbiz.minilang.method.callops.CallBsh.exec(CallBsh.java:116) > [java] org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:920) > [java] org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:739) > [java] org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:160) > [java] org.ofbiz.minilang.SimpleMethod.runSimpleEvent(SimpleMethod.java:121) > [java] org.ofbiz.webapp.event.SimpleEventHandler.invoke(SimpleEventHandler.java:69) > [java] org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:637) > [java] org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:383) > [java] org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:227) > [java] org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:90) > [java] javax.servlet.http.HttpServlet.service(HttpServlet.java:637) > [java] javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > [java] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) > [java] org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > [java] org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:269) > [java] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > [java] org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > [java] org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) > [java] org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) > [java] org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) > [java] org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) > [java] org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) > [java] org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555) > [java] org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) > [java] org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852) > [java] org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) > [java] org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) > [java] java.lang.Thread.run(Thread.java:619) > [java] -------------------------------------------------------------------------------- -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
Free forum by Nabble | Edit this page |