function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
AnicheAniche 

Custom Java programs fail to connect.

Hi All,
 
We recently moved to a new proxy and from that day the batch Custom java programs that we have to extract data from Salesforce.com is failing however the batch data loads that we do thru  Dataloader is working fine. The dataloader and the custom programs connect using the same proxy and these details are in the same config file.
 
When i try to execute the Java program we get an Java exception like the below.
 
 
Creating the binding to the web service...
LOGGING IN NOW....
; nested exception is:
 javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode:
 faultString: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
 faultActor:
 faultNode:
 faultDetail:
 {http://xml.apache.org/axis/}stackTrace:javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
 at com.sun.net.ssl.internal.ssl.InputRecord.handleUnknownRecord(InputRecord.java:501)
 at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:343)
 at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:720)
 at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1025)
 at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1038)
 at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:186)
 at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)
 at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404)
 at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
 at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
 at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
 at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
 at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
 at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
 at org.apache.axis.client.Call.invoke(Call.java:2767)
 at org.apache.axis.client.Call.invoke(Call.java:2443)
 at org.apache.axis.client.Call.invoke(Call.java:2366)
 at org.apache.axis.client.Call.invoke(Call.java:1812)
 at com.sforce.soap.partner.SoapBindingStub.login(SoapBindingStub.java:1766)
 at AccountPlanExtract.login(AccountPlanExtract.java:494)
 at AccountPlanExtract.run(AccountPlanExtract.java:531)
 at AccountPlanExtract.main(AccountPlanExtract.java:540)
 
I dont know how to fix this error, I looked up the same problem in google and in few cases the solution was the certificates need to be installed.. Unfortunately i dont know which certificates to install and if i know which, then let me network team to add them.
This could or could not be the root cause...
 
Can anyone help.
 
Thanks
LosintikfosLosintikfos
Have you make sure the remote site is pointing the right webservice address?

B