Hi Sitesh,
It seems that shopping cart items are missing in your google checkout
request.
Please make sure that you are passing cart items to google for processing.
--
Thanks and Regards
Amit Sharma
HotWax Media
http://www.hotwaxmedia.com
On Tuesday 22 March 2011 03:11 PM, Sitesh Gupta wrote:
Hi Erwan,
I have configured the google checkout using link:
https://cwiki.apache.org/confluence/display/OFBIZ/Placing+Order+Through+GoogleCheckout
url .
After adding item in the cart, I am getting the following errors, while trying
to checkout using google checkout.
<?xml version="1.0" encoding="UTF-8"?><checkout-shopping-cart
xmlns="http://checkout.google.com/schema/2">
<shopping-cart>
<cart-expiration>
<good-until-date>2011-03-24T11:39:25.776Z</good-until-date>
</cart-expiration>
</shopping-cart>
<checkout-flow-support>
<merchant-checkout-flow-support>
<continue-shopping-url>http://localhost:8080/ecommerce/control/returnBackFromGoogle</continue-shopping-url>
<edit-cart-url>http://localhost:8080/ecommerce/control/view/showcart</edit-cart-url>
<tax-tables>
<alternate-tax-tables>
<alternate-tax-table name="tax_exempt" standalone="true">
<alternate-tax-rules>
<alternate-tax-rule>
<rate>0.0</rate>
<tax-areas>
<world-area/>
</tax-areas>
</alternate-tax-rule>
</alternate-tax-rules>
</alternate-tax-table>
</alternate-tax-tables>
</tax-tables>
<shipping-methods>
<flat-rate-shipping name="Express">
<price currency="USD">20.0</price>
</flat-rate-shipping>
<flat-rate-shipping name="Standard">
<price currency="USD">10.0</price>
</flat-rate-shipping>
<flat-rate-shipping name="Free">
<price currency="USD">0.0</price>
</flat-rate-shipping>
</shipping-methods>
<request-buyer-phone-number>true</request-buyer-phone-number>
</merchant-checkout-flow-support>
</checkout-flow-support>
<order-processing-support>
<request-initial-auth-details>true</request-initial-auth-details>
</order-processing-support>
</checkout-shopping-cart>
2011-03-22 15:09:49,259 (http-0.0.0.0-8080-4) [
ServiceDispatcher.java:515:INFO ] [[Sync service failed...- total:0.0,since
last(Begin):0.0]] - 'ecommerce / sendGoogleCheckoutRequest'
2011-03-22 15:09:49,259 (http-0.0.0.0-8080-4) [
TransactionUtil.java:344:INFO ] [TransactionUtil.rollback] transaction rolled
back
2011-03-22 15:09:49,260 (http-0.0.0.0-8080-4) [
TransactionUtil.java:269:WARN ] [TransactionUtil.commit] Not committing
transaction, status is No Transaction (6)
2011-03-22 15:09:49,262 (http-0.0.0.0-8080-4)
[ServiceEventHandler.java:352:ERROR]
---- exception report ----------------------------------------------------------
Service invocation error
Exception: org.ofbiz.service.GenericServiceException
Message: Service [sendGoogleCheckoutRequest] target threw an unexpected
exception (IOException encountered.)
---- cause ---------------------------------------------------------------------
Exception: com.google.checkout.CheckoutSystemException
Message: IOException encountered.
---- stack trace ---------------------------------------------------------------
com.google.checkout.CheckoutSystemException: IOException encountered.
com.google.checkout.AbstractCheckoutRequest.send(AbstractCheckoutRequest.java:170)
org.ofbiz.googlecheckout.GoogleRequestServices.sendShoppingCartRequest(GoogleRequestServices.java:208)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.lang.reflect.Method.invoke(Unknown Source)
org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:100)
org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:57)
org.ofbiz.service.ModelServiceReader$GenericInvokerImpl.runSync(ModelServiceReader.java:761)
_$gen.file_58$.D_58$.apache_45$ofbiz_45$10_46$04.specialpurpose.googlecheckout.servicedef.services_95$request_46$xml_35$sendGoogleCheckoutRequest.runSync(file:/D:/apache-ofbiz-10.04/specialpurpose/googlecheckout/servicedef/services_request.xml#sendGoogleCheckoutRequest:26)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:399)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226)
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:165)
org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:336)
org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:636)
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:382)
org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:227)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
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:269)
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:555)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
java.lang.Thread.run(Unknown Source)
--------------------------------------------------------------------------------
2011-03-22 15:09:49,263 (http-0.0.0.0-8080-4) [
ControlServlet.java:230:ERROR]
---- exception report ----------------------------------------------------------
Error in request handler:
Exception: org.ofbiz.webapp.event.EventHandlerException
Message: Service invocation error (IOException encountered.)
---- cause ---------------------------------------------------------------------
Exception: com.google.checkout.CheckoutSystemException
Message: IOException encountered.
---- stack trace ---------------------------------------------------------------
com.google.checkout.CheckoutSystemException: IOException encountered.
com.google.checkout.AbstractCheckoutRequest.send(AbstractCheckoutRequest.java:170)
org.ofbiz.googlecheckout.GoogleRequestServices.sendShoppingCartRequest(GoogleRequestServices.java:208)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.lang.reflect.Method.invoke(Unknown Source)
org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:100)
org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:57)
org.ofbiz.service.ModelServiceReader$GenericInvokerImpl.runSync(ModelServiceReader.java:761)
_$gen.file_58$.D_58$.apache_45$ofbiz_45$10_46$04.specialpurpose.googlecheckout.servicedef.services_95$request_46$xml_35$sendGoogleCheckoutRequest.runSync(file:/D:/apache-ofbiz-10.04/specialpurpose/googlecheckout/servicedef/services_request.xml#sendGoogleCheckoutRequest:26)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:399)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226)
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:165)
org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:336)
org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:636)
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:382)
org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:227)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
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:269)
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:555)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
java.lang.Thread.run(Unknown Source)
--------------------------------------------------------------------------------
-----Original Message-----
From: Erwan de FERRIERES [mailto:[email protected]]
Sent: Tuesday, March 22, 2011 2:06 PM
To: [email protected]
Subject: Re: Ofbiz integration with google checkout
Le 22/03/2011 07:08, Sitesh Gupta a écrit :
Hi
while trying to checkout product using google check out, i am getting the
folllowing error.
org.ofbiz.webapp.event.EventHandlerException: Service invocation
error(IOException encountered.)
Please let me know how can I fix this issue.
Regards
Sitesh
________________________________
::DISCLAIMER::
----------------------------------------------------------------------
-------------------------------------------------
The contents of this e-mail and any attachment(s) are confidential and intended
for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its
affiliates. Any views or opinions presented in this email are solely those of
the author and may not necessarily reflect the opinions of HCL or its
affiliates.
Any form of reproduction, dissemination, copying, disclosure,
modification, distribution and / or publication of this message
without the prior written consent of the author of this e-mail is
strictly prohibited. If you have received this email in error please delete it
and notify the sender immediately. Before opening any mail and attachments
please check them for viruses and defect.
----------------------------------------------------------------------
-------------------------------------------------
Hi Sitesh,
you better send a more complete stacktrace and the steps you followed to be
able to reproduce this error. With so little, we can't do anything...
Cheers,
--
Erwan de FERRIERES
www.nereide.biz