UPS validation Error in 12.x

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

UPS validation Error in 12.x

SkipDever
Hi

I am STILL trying to get all the bugs worked out of my 9.x to 12.x port.
One more is that ups street validation no longer works.   I am getting the
ssl exception shown below.  This is using the default ootb ofbizssl.jks file
for both 9.x and 12.x.

The 9.x installation works, the 12.x version does not on the same machine.
I am guessing that this is an import error, but I know nothing about what to
do.  I read the SSL Certification section of the setup, but I just want to
use what is there because it has always worked in the past.

Can someone point me in the right direction?

Skip

Exception: java.security.cert.CertificateException
Message: No trusted certificate found
---- stack
trace ---------------------------------------------------------------
java.security.cert.CertificateException: No trusted certificate found
org.ofbiz.base.util.MultiTrustManager.checkServerTrusted(MultiTrustManager.j
ava:70)
com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandsh
aker.java:1198)
com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshake
r.java:136)
com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:593)
com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:529)
com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:893
)
com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocket
Impl.java:1138)
com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java
:1165)
com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java
:1149)
sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:434)
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Abstra
ctDelegateHttpsURLConnection.java:166)
sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnectio
n.java:1014)
sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLCo
nnectionImpl.java:230)
org.ofbiz.base.util.HttpClient.sendHttpRequestStream(HttpClient.java:478)
org.ofbiz.base.util.HttpClient.sendHttpRequestStream(HttpClient.java:398)
org.ofbiz.base.util.HttpClient.sendHttpRequest(HttpClient.java:340)
org.ofbiz.base.util.HttpClient.post(HttpClient.java:260)
org.ofbiz.shipment.thirdparty.ups.UpsServices.sendUpsRequest(UpsServices.jav
a:2091)
org.ofbiz.shipment.thirdparty.ups.UpsServices.upsStreetLevelAddressValidatio
n(UpsServices.java:3389)
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:597)
org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngin
e.java:100)
org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:
57)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:390)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:225)
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163)
com.fs.inventory.InventoryServices.addressValidationDirector(InventoryServic
es.java:3045)
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:597)
org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngin
e.java:100)
org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:
57)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:390)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:225)
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163)
org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:3
49)
org.ofbiz.webapp.event.JSONServiceEventHandler.invoke(JSONServiceEventHandle
r.java:53)
org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:663)
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:406)
org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:224)
javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:305)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:210)
org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:337)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:243)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:210)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:222)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:123)
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:472)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168
)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:118)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Proce
ssor.java:1002)
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(Abstrac
tProtocol.java:585)
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:
310)
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.ja
va:886)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:9
08)
java.lang.Thread.run(Thread.java:662)
----------------------------------------------------------------------------
----

2013-10-15 07:48:24,573 (http-bio-0.0.0.0-443-exec-32) [
ServiceDispatcher.java:525:ERROR] Error in Service
[upsStreetLevelAddressValidation]: An error occurred [code:264030] with
severity Hard: The state is not supported in the Customer Integration
Environment.. , Error status code : 0
2013-10-15 07:48:24,573 (http-bio-0.0.0.0-443-exec-32) [
TransactionUtil.java:379:WARN ]

Reply | Threaded
Open this post in threaded view
|

Re: UPS validation Error in 12.x

Robert Gan
This post was updated on .
Hello,

the SSL error should not be a problem (have it as well :) ).

The problem source is in my opinion:

org.ofbiz.shipment.thirdparty.ups.UpsServices.upsStreetLevelAddressValidation(UpsServices.java:3389)

please check this section what could be wrong there.

In my UpsServices,java I do not have the method "upsStreetLevelAddressValidation"...just check if the validation is not successfull (maybe it is looking for a hous number)...or remove the validation.

greetings