You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Jean-Marc JAMET <je...@laposte.net> on 2011/09/26 15:16:22 UTC

Transporter configuration issue

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
  *TARIFS COLISSIMO SUIVI POUR UN ENVOI VERS LA FRANCE*  Poids /
RecommandéSansR1R2R3R4R5Jusqu'à 500g5.60 €8.10 €9.00 €10.20 €11.40
€12.60 €Jusqu'à 1kg6.95 €9.45 €10.35 €11.55 €12.75 €13.95 €Jusqu'à
2kg7.95 €10.45 €11.35 €12.55 €13.75 €14.95 €Jusqu'à 3kg8.95 €11.45
€12.35 €13.55 €14.75 €15.95 €Jusqu'à 5kg10.95 €13.45 €14.35 €15.55
€16.75 €17.95 €Jusqu'à 7kg12.95 €15.45 €16.35 €17.55 €18.75 €19.95
€Jusqu'à 10kg15.95 €18.45 €19.35 €20.55 €21.75 €22.95 €Jusqu'à
15kg18.20 €20.70 €21.60 €22.80 €24.00 €25.20 €Jusqu'à 30kg24.90 €27.40
€28.30 €29.50 €30.70 €31.90 €


When I would like to check Out through the e-commerce application, il got
the following problem (the article weight is 10kg)


 [image: image.png]

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

Re: Transporter configuration issue

Posted by BJ Freeman <bj...@free-man.net>.
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.
> 

Re: Transporter configuration issue

Posted by Jacques Le Roux <ja...@les7arts.com>.
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" <je...@laposte.net>
> 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. 

Re: Transporter configuration issue

Posted by Jim <je...@laposte.net>.
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.