<ShortMessage><![CDATA[Invalid authentication method.]]></ShortMessage> <LongMessage><![CDATA[The authentication method you are using is invalid. Please use the eBay Authentication & Authorization method.]]></LongMessage> </Error> </Errors> </eBay>
eBay web service
“ The velocity (rate of change) of eBay is notoriously fast. As anyone who has used eBay knows, things constantly change, and there is a fundamental release every 2 weeks. There are supporters and non-supporters of this, but it's something we all have to live with at this time, both eBay users and eBay employees…..”
[Fatal Error] request.xml:1:41: Content is not allowed in prolog.
Error Sending Request: org.xml.sax.SAXParseException: Content is not allowed in
org.xml.sax.SAXParseException: Content is not allowed in prolog.
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
titasmutsuddy Posts: 4 Member Since: 3/13/07 PKIX path building failed Posted: Mar 14, 2007 9:38 PM Reply Hi, I am getting a strange error. I didn't get it 4-hours ago. It is like the following:- SendRequest IO Error: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed : sun.security.provider.certpath.SunCertPathBuilderExce ption: unable to find valid certification path to requested target at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:150) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1 518) at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:174) at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:168) and so on------ Note that I am using the jre1.5.0_11 and checked for latest version and there is none. I will be pleased if you give any suggestions. Regards, Titas Mutsuddy
I think Sun changed the default TrustManagerFactory from SunX509 to SunPKIX sometime during the 1.5.0 update cycle. grep ManagerFactory $JAVA_HOME/jre/lib/security/java.security You should be able to override these with system properties.
OverWritten in the following properties file:- D:SunAppServerjdkjrelibsecurityjava.security(properties file):-
caradtester Posts: 1 Member Since: 3/10/06 Re: PKIX path building failed Posted: Mar 14, 2007 11:48 PM Reply Your JDK is probably missing one of the CA-certs in the path for https:// api.sandbox.ebay.com It seems sandbox may have updated the SSL certificate within the last 24 hours. Hopefully there will be an official update soon. Meanwhile.... you might try this (assuming windows platform): 1. In IE, connect to https:// api.sandbox.ebay.com 2. Go to Tools > Internet Options > Content > Certificates > Intermediate Certification Authorities [or "Trusted Root Certification Authorities"] 3. Choose "VeriSign Class 3 Secure Server CA" (I assume this is the certificate that is missing... you can confirm by comparing thumbprints to what is in your keystore) 4. Click "Export...", then "Next>" 5. Select "DER encoded binary X.509 (.CER)" 6. Name the file c: empverisignsecureserver.cer 7. Select "Finish" 8. j2sdk1.4.2_08inkeytool -keystore j2sdk1.4.2_08jrelibsecuritycacerts -import -alias verisignsecureserver -file c: empverisignsecureserver.cer -trustcacerts 9. del c: empverisignsecureserver.cer Note that you must have a full JDK installed (not just the JRE) to have access. The default password for the JDK keystore is well-known: changeit Please post feedback if this worked for you or not.