CyberSource / cybersource-sdk-java

Java SDK for CyberSource Simple Order API
Other
51 stars 84 forks source link

An issue with could not transform to ICS request #182

Open trungnvfet opened 2 months ago

trungnvfet commented 2 months ago

What is meaning with the error msg which is "Could not transform to ICS request"? and how to penetrace futher troubleshooting in this situation?

2024-07-02 10:01:41,315 [http-nio-8080-exec-32] ERROR [g.c.c.c.s.RunAllFunctions:264] - Fault:
Could not transform to ICS request
 (requestID=7198893010786607204093)
com.cybersource.ws.client.FaultException: Fault:
Could not transform to ICS request
 (requestID=7198893010786607204093)
        at com.cybersource.ws.client.Connection.checkForFault(Connection.java:198) ~[cybersource-sdk-java-6.2.13.jar:?]
        at com.cybersource.ws.client.Connection.post(Connection.java:138) ~[cybersource-sdk-java-6.2.13.jar:?]
        at com.cybersource.ws.client.XMLClient.runTransaction(XMLClient.java:194) ~[cybersource-sdk-java-6.2.13.jar:?]
        at com.cybersource.ws.client.XMLClient.runTransaction(XMLClient.java:97) ~[cybersource-sdk-java-6.2.13.jar:?]
        at gateway.core.channel.cybersource.service.RunAllFunctions.runCheckEnroll(RunAllFunctions.java:256) ~[classes/:0.0.1-SNAPSHOT]
        at gateway.core.channel.cybersource.implement.CybersourceImplement.runCheckEnrollment(CybersourceImplement.java:573) ~[classes/:0.0.1-SNAPSHOT]
        at gateway.core.channel.cybersource.implement.CybersourceImplement$$FastClassBySpringCGLIB$$ac0d9824.invoke(<generated>) ~[classes/:0.0.1-SNAPSHOT]
        at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) ~[spring-core-5.0.13.RELEASE.jar:5.0.13.RELEASE]
        at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:746) ~[spring-aop-5.0.13.RELEASE.jar:5.0.13.RELEASE]
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) ~[spring-aop-5.0.13.RELEASE.jar:5.0.13.RELEASE]
        at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:294) [spring-tx-5.0.13.RELEASE.jar:5.0.13.RELEASE]
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:98) [spring-tx-5.0.13.RELEASE.jar:5.0.13.RELEASE]
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185) [spring-aop-5.0.13.RELEASE.jar:5.0.13.RELEASE]
        at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688) [spring-aop-5.0.13.RELEASE.jar:5.0.13.RELEASE]
        at gateway.core.channel.cybersource.implement.CybersourceImplement$$EnhancerBySpringCGLIB$$1be718b0.runCheckEnrollment(<generated>) [classes/:0.0.1-SNAPSHOT]
        at gateway.core.api.controller.ApiCybersourceController.callCybersourceGateway(ApiCybersourceController.java:146) [classes/:0.0.1-SNAPSHOT]
        at gateway.core.api.controller.ApiCybersourceController.request(ApiCybersourceController.java:69) [classes/:0.0.1-SNAPSHOT]
        at sun.reflect.GeneratedMethodAccessor451.invoke(Unknown Source) ~[?:?]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_232]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_232]

AND

2024-07-02 10:01:39.973 http-nio-8080-exec-32 INFO     > Client, End of soapWrap   1ms
2024-07-02 10:01:39.973 http-nio-8080-exec-32 INFO     > Client, End of loading Merchant Certificate   0ms
2024-07-02 10:01:39.973 http-nio-8080-exec-32 INFO     > Signing request...
2024-07-02 10:01:39.977 http-nio-8080-exec-32 INFO     > Client, End of createSignedDoc   3ms
2024-07-02 10:01:39.977 http-nio-8080-exec-32 INFO     > Encrypting Signed doc ...
2024-07-02 10:01:39.978 http-nio-8080-exec-32 INFO     > Client, End of handleMessageCreation   2ms
2024-07-02 10:01:39.978 http-nio-8080-exec-32 INFO     > Using HttpClient for connections.
2024-07-02 10:01:39.979 http-nio-8080-exec-32 INFO     > Request Headers: [v-c-client-computetime: 7, v-c-client-iat: 1719889299979]
2024-07-02 10:01:39.979 http-nio-8080-exec-32 INFO     > Sending 8740 bytes to https://ics2wsa.ic3.com/commerce/1.x/transactionProcessor/
2024-07-02 10:01:41.314 http-nio-8080-exec-32 INFO     > waiting for response...
2024-07-02 10:01:41.314 http-nio-8080-exec-32 INFO     > Response Headers[X-OPNET-Transaction-Trace: a2_d6e444ec-9a46-4419-9ab5-6372e7069b15, Strict-Transport-Security: max-age=31536000, X-Frame-Options: DENY, X-Content-Type-Options: nosniff, X-XSS-Protection: 1; mode=block, v-c-correlation-id: 9cfdffca-2ecf-446d-adee-b705b870c72a, Cache-Control: no-cache, no-store, max-age=0, Pragma: no-cache, Expires: -1, X-Download-Options: noopen, Content-Type: text/xml, Content-Length: 896, Date: Tue, 02 Jul 2024 03:01:40 GMT, X-Cnection: close]
2024-07-02 10:01:41.315 http-nio-8080-exec-32 FAULT    >
FaultException details:
requestID = 7198893010786607204093
<?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="Timestamp-784755825">
<wsu:Created>2024-07-02T03:01:41.176Z</wsu:Created>
</wsu:Timestamp>
</wsse:Security>
</soap:Header>
<soap:Body>
<soap:Fault xmlns:c="urn:schemas-cybersource-com:transaction-data-1.220" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<faultcode>c:ServerError</faultcode>
<faultstring>
Could not transform to ICS request
</faultstring>
<detail>
<c:faultDetails>
<c:requestID>7198893010786607204093</c:requestID>
</c:faultDetails>
</detail>
</soap:Fault>
</soap:Body>
</soap:Envelope>