Login  Register

Re: Unable to connect to cybersource..

Posted by rohit on Aug 27, 2006; 6:55am
URL: http://ofbiz.116.s1.nabble.com/Dev-FYI-7807-Runtime-Warnings-tp168536p168544.html

hi,

I guess there is a file missing which causes this problem. I was able to get this issue resolver by copying the file commons-httpclient-3.0.1 from the Cybersource Java client into ${ofbiz install dir}/framework/base/lib/commons folder.

I have also tried to do a small write-up on how to setup cybersource processing on ofbiz. I hope someone can go through it and if it is appropriate it can be added to ofbiz documentation.

Just to add, i am new to ofbiz as well as JAVA, most of the work is by trial and error, so please go easy on me if i have mentioned something stupid ;-).

Thanks Rohit.


rohit2006 wrote
Hi,

is there any resource on how to implemet cybersource in ofbiz.  i tried the steps outlined but still getting  errors...

2006-08-24 06:16:02,887 (http-0.0.0.0-7443-Processor4) [     ControlServlet.java:126:DEBUG] [[[processAuthorizeTransaction] Servlet Starting, doing setup- total:0.0010,since last(Begin):0.0010]]
2006-08-24 06:16:02,888 (http-0.0.0.0-7443-Processor4) [     ControlServlet.java:175:DEBUG] [[[processAuthorizeTransaction] Setup done, doing Event(s) and View(s)- total:0.0,since last([processAuthorize...):0.0]]
2006-08-24 06:16:02,980 (http-0.0.0.0-7443-Processor4) [            UtilXml.java:255:DEBUG] XML Read 0.089s: jndi:/0.0.0.0/accounting/WEB-INF/controller.xml
2006-08-24 06:16:02,985 (http-0.0.0.0-7443-Processor4) [    ConfigXMLReader.java:544:INFO ] ConfigMap Created: (4) records in 0.0030s
2006-08-24 06:16:02,987 (http-0.0.0.0-7443-Processor4) [    ConfigXMLReader.java:614:INFO ] HandlerMap Created: (2) records in 0.0s
2006-08-24 06:16:03,007 (http-0.0.0.0-7443-Processor4) [    ConfigXMLReader.java:294:INFO ] RequestMap Created: (238) records in 0.018s
2006-08-24 06:16:03,011 (http-0.0.0.0-7443-Processor4) [    ConfigXMLReader.java:403:INFO ] ViewMap Created: (115) records in 0.0020s
2006-08-24 06:16:03,013 (http-0.0.0.0-7443-Processor4) [     RequestHandler.java:203:INFO ] [Processing Request]: processAuthorizeTransaction
2006-08-24 06:16:06,184 (http-0.0.0.0-7443-Processor4) [ IcsPaymentServices.java:76 :ERROR]
---- exception report ----------------------------------------------------------
ERROR: CyberSource Client exception : null
Exception: com.cybersource.ws.client.ClientException
Message: null
---- stack trace ---------------------------------------------------------------
com.cybersource.ws.client.ClientException
com.cybersource.ws.client.Client.runTransaction(Client.java:144)
com.cybersource.ws.client.Client.runTransaction(Client.java:53)
org.ofbiz.accounting.thirdparty.cybersource.IcsPaymentServices.ccAuth(IcsPaymentServices.java:70)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:324)
org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:92)
org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:54)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:338)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:212)
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:126)
org.ofbiz.accounting.payment.PaymentGatewayServices.authPayment(PaymentGatewayServices.java:413)
org.ofbiz.accounting.payment.PaymentGatewayServices.authOrderPaymentPreference(PaymentGatewayServices.java:165)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:324)
org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:92)
org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:54)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:338)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:212)
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:114)
org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:292)
org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:407)
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:243)
org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:183)
org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:79)
javax.servlet.http.HttpServlet.service(HttpServlet.java:615)
javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:249)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
java.lang.Thread.run(Thread.java:534)
--------------------------------------------------------------------------------

2006-08-24 06:16:06,186 (http-0.0.0.0-7443-Processor4) [  ServiceDispatcher.java:410:ERROR] Service Error [cyberSourceCCAuth]: Unable to communicate with CyberSource
2006-08-24 06:16:06,190 (http-0.0.0.0-7443-Processor4) [    TransactionUtil.java:243: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:242)
org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:224)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:414)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:212)
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:126)
org.ofbiz.accounting.payment.PaymentGatewayServices.authPayment(PaymentGatewayServices.java:413)
org.ofbiz.accounting.payment.PaymentGatewayServices.authOrderPaymentPreference(PaymentGatewayServices.java:165)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:324)
org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:92)
org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:54)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:338)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:212)
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:114)
org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:292)
org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:407)
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:243)
org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:183)
org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:79)
javax.servlet.http.HttpServlet.service(HttpServlet.java:615)
javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:249)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
java.lang.Thread.run(Thread.java:534)
--------------------------------------------------------------------------------

2006-08-24 06:16:06,195 (http-0.0.0.0-7443-Processor4) [    TransactionUtil.java:253:INFO ] [TransactionUtil.rollback] transaction rolled back
2006-08-24 06:16:06,197 (http-0.0.0.0-7443-Processor4) [  ServiceDispatcher.java:450:DEBUG] [[Sync service finished- total:0.318,since last(Begin):0.318]] - 'accounting / cyberSourceCCAuth'
2006-08-24 06:16:06,200 (http-0.0.0.0-7443-Processor4) [PaymentGatewayServices.java:459:ERROR] Processor failed; will retry later: Unable to communicate with CyberSource
2006-08-24 06:16:06,202 (http-0.0.0.0-7443-Processor4) [  ServiceDispatcher.java:468:DEBUG] [[ASync service started...- total:0.0,since last(Begin):0.0]] - 'accounting / processPaymentServiceError'
2006-08-24 06:16:06,220 (http-0.0.0.0-7443-Processor4) [       SequenceUtil.java:263:INFO ] Got bank of sequenced IDs for [RuntimeData]; curSeqId=10100, maxSeqId=10110, bankSize=10
2006-08-24 06:16:08,063 (http-0.0.0.0-7443-Processor4) [       SequenceUtil.java:263:INFO ] Got bank of sequenced IDs for [JobSandbox]; curSeqId=10490, maxSeqId=10500, bankSize=10
2006-08-24 06:16:09,961 (http-0.0.0.0-7443-Processor4) [ GenericAsyncEngine.java:132:INFO ] Persisted job queued : 1156414568466
2006-08-24 06:16:09,963 (http-0.0.0.0-7443-Processor4) [  ServiceDispatcher.java:559:DEBUG] [[ASync service finished...- total:3.759,since last(ASync service sta...):3.759]] - 'accounting / processPaymentServiceError'



Jacopo Cappellato wrote
Hmmm...

sorry but I'm not an expert of payment processors, maybe others will
help... I'd suggest to post the log to the USER mailing list.

Jacopo

rohit2006 wrote:
> Thanks Jacopo, i had not really seen that, but now i know about and its
> working pretty fine.
>
> I need a little more assistance, can u please look at this link
> http://www.nabble.com/paypal-IPN-error.-IPN-is-not-received-and-transaction-is-not-recorded-tf2126743.html#a5868092.
>
> I think i am missing something as silly, as the cybersource files which i
> should have know. i tried my best to identify the cause of the error, but
> could not. Any help will be appreciated.
>
> Thanks,
>
> Rohit
>
Cybersource Payment Setup.doc