Hello, I would like to add custom transporter rules (for france). i have used the attached the configuration file (transporter.xml) I would like to add a transporter with ShipmentCostEstimate based on weight break
When I would like to check Out through the e-commerce application, il got the following problem (the article weight is 10kg)
here the logs
2011-09-26 13:03:33,473 (TP-Processor10) [ ShippingEvents.java:336:ERROR] Error getting external shipment cost estimate: Rate inquiry is only valid for US destinations.
2011-09-26 13:03:33,486 (TP-Processor10) [ ShippingEvents.java:327:INFO ] Service : uspsRateInquire / shipmentGatewayConfigId : null / configProps : null -- {initialEstimateAmt=0, shippableTotal=700.000000000, shippableQuantity=2.000000, shippableWeight=12.000000000000, shippableItemInfo={{productId=PC001, weight=10.000000, weightUomId=WT_kg, size=0, piecesIncluded=1, featureSet=[], inShippingBox=N, quantity=1}, {productId=WG-1111, weight=2.000000, weightUomId=null, size=0, piecesIncluded=1, featureSet=[], inShippingBox=null, quantity=1.000000}}, productStoreId=9000, carrierRoleTypeId=CARRIER, carrierPartyId=LAPOSTE, shipmentMethodTypeId=EXPRESS, shippingContactMechId=10000, shippingOriginContactMechId=null, partyId=admin, productStoreShipMethId=9051, serviceConfigProps=null, shipmentCustomMethodId=null, shipmentGatewayConfigId=null}
2011-09-26 13:03:33,492 (TP-Processor10) [ ServiceDispatcher.java:543:ERROR] Error in Service [uspsRateInquire]: Rate inquiry is only valid for US destinations.
2011-09-26 13:03:33,496 (TP-Processor10) [ TransactionUtil.java:338:ERROR] ---- exception report ---------------------------------------------------------- [TransactionUtil.rollback] Exception: java.lang.Exception Message: Stack Trace ---- stack trace --------------------------------------------------------------- java.lang.Exception: Stack Trace org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:337) org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:314) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:547) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:179) org.ofbiz.order.shoppingcart.shipping.ShippingEvents.getExternalShipEstimate(ShippingEvents.java:329) org.ofbiz.order.shoppingcart.shipping.ShippingEvents.getShipGroupEstimate(ShippingEvents.java:229) org.ofbiz.order.shoppingcart.shipping.ShippingEstimateWrapper.loadEstimates(ShippingEstimateWrapper.java:98) org.ofbiz.order.shoppingcart.shipping.ShippingEstimateWrapper.(ShippingEstimateWrapper.java:76) sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) java.lang.reflect.Constructor.newInstance(Constructor.java:513) org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:77) org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:102) org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:52) org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:190) org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:206) CheckoutOptions.run(CheckoutOptions.groovy:36) org.ofbiz.widget.ModelWidgetAction$Script.runAction(ModelWidgetAction.java:416) org.ofbiz.widget.ModelWidgetAction.runSubActions(ModelWidgetAction.java:117) 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:843) org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:560) org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:224) org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:87) javax.servlet.http.HttpServlet.service(HttpServlet.java:637) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:338) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:554) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190) org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291) org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:776) org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:705) org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:898) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690) java.lang.Thread.run(Thread.java:662) --------------------------------------------------------------------------------
2011-09-26 13:03:33,499 (TP-Processor10) [ TransactionUtil.java:348:INFO ] [TransactionUtil.rollback] transaction rolled back Could you help me to solve this Issue
regards JM
transporter.xml (10K) Download Attachment
JIM
|
after setting :
shipment.doratecheck=false in ofbiz/applications/product/config/shipment.properties In the log i have the following error 2011-09-26 14:55:59,510 (TP-Processor1) [ ShipmentServices.java:285:WARN ] No shipping estimates found; the shipping amount returned is 0! Condition used was: (productStoreShipMethId = '9051' AND (productStoreId = '9000' AND shipmentMethodTypeId = 'EXPRESS' AND carrierPartyId = 'LAPOSTE' AND carrierRoleTypeId = 'CARRIER')) And on the ecommerce application, I have no more the error "Calculated Offline" regards
JIM
|
have you matched you xml with the demo data.
look at the code and see what it is looking for that cause the warning. Jim sent the following on 9/26/2011 8:03 AM: > after setting : > > *shipment.doratecheck=false in > ofbiz/applications/product/config/shipment.properties* > > In the log i have the following error > > *2011-09-26 14:55:59,510 (TP-Processor1) [ ShipmentServices.java:285:WARN ] > No shipping estimates found; the shipping amount returned is 0! Condition > used was: (productStoreShipMethId = '9051' AND (productStoreId = '9000' AND > shipmentMethodTypeId = 'EXPRESS' AND carrierPartyId = 'LAPOSTE' AND > carrierRoleTypeId = 'CARRIER'))* > > And on the ecommerce application, I have no more the error "Calculated > Offline" > http://ofbiz.135035.n4.nabble.com/file/n3844065/Checkout_Options_OFBiz_E-Commerce_Store_-_Google_Chrome_2011-09-26_17-00-04.png > > regards > > > ----- > JIM > -- > View this message in context: http://ofbiz.135035.n4.nabble.com/Transporter-configuration-issue-tp3843732p3844065.html > Sent from the OFBiz - User mailing list archive at Nabble.com. > |
yes,
i have used ofbiz\specialpurpose\ecommerce\data\DemoShipping.xml and i try to match the data to reach my needs
JIM
|
Administrator
|
In reply to this post by Jim
It's a bit old, but you might still appreciate
http://www.les7arts.com/assist/OFBiz/Creation%20Catalogue%20de%20produits.htm#_bookmark_55dc3a0 Let me know if it needs some update... Jacques From: "Jim" <[hidden email]> > after setting : > > *shipment.doratecheck=false in > ofbiz/applications/product/config/shipment.properties* > > In the log i have the following error > > *2011-09-26 14:55:59,510 (TP-Processor1) [ ShipmentServices.java:285:WARN ] > No shipping estimates found; the shipping amount returned is 0! Condition > used was: (productStoreShipMethId = '9051' AND (productStoreId = '9000' AND > shipmentMethodTypeId = 'EXPRESS' AND carrierPartyId = 'LAPOSTE' AND > carrierRoleTypeId = 'CARRIER'))* > > And on the ecommerce application, I have no more the error "Calculated > Offline" > http://ofbiz.135035.n4.nabble.com/file/n3844065/Checkout_Options_OFBiz_E-Commerce_Store_-_Google_Chrome_2011-09-26_17-00-04.png > > regards > > > ----- > JIM > -- > View this message in context: http://ofbiz.135035.n4.nabble.com/Transporter-configuration-issue-tp3843732p3844065.html > Sent from the OFBiz - User mailing list archive at Nabble.com. |
Free forum by Nabble | Edit this page |