Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > General Computer Discussion > Software > Axis java client error "Unrecognized SSL message, plaintext connection"

Thread Tools

Axis java client error "Unrecognized SSL message, plaintext connection"

joeandmav joeandmav is offline
Junior Member
Join Date: Jan 2009
Posts: 1
I try to ask a webservice to an https server through a proxy server using a simple webservice client in java (Axis), and get the error of "Unrecognized SSL message, plaintext connection". The client code does have Https.proxy properties setting.

Note that I am able to use web browser client to send the https requests via the proxy server. In the browser setting, the https proxy server port is sepcified as "443", and same setting to Https.proxyPort on the client code . Since the web browser client made a succesful request through the proxy server, I assumed "443" is the correct port number used in both proxy server port and the https server, correct?

I have stucked on the issue for a whole week. Am I miss anything?
Thanks in advance !!!

Below is the client code snippet:

String KEYSTORE_LOCATION = "c:/dir1/jre/lib/securityacerts";
System.setProperty("", KEYSTORE_LOCATION);
System.getProperties().put("proxySet", "true");
System.getProperties().put("https.proxyHost", "proxyserver");
System.getProperties().put("https.proxyPort", "443");
String xmlRequest =ClmUtils.readLocalFile("C:/testdata/request");

Service service = new Service();
Call call = (Call) service.createCall();
call.setUsername("username") ;
call.setPassword("password") ;
options.setDefaultURL(WSDL_LOCATION);// the wsdl_location points to a https url

call.setTargetEndpointAddress( new URL(options.getURL()) );
SOAPBodyElement[] soapElementArr = new SOAPBodyElement[1];

org.w3c.dom.Document document = getXmlDocument(xmlRequest) ;
org.w3c.dom.Element eax = (document.getDocumentElement()) ;
soapElementArr[0] = new SOAPBodyElement(eax) ;
Vector outputVector = (Vector)call.invoke(soapElementArr);
SOAPBodyElement soapElement = (SOAPBodyElement) outputVector.get(0);
Element element = soapElement.getAsDOM();
String responseXml = XMLUtils.ElementToString(element);

Logs of error returned:
Exception in thread "main" AxisFault
faultCode: {}Server.userException
faultString: Unrecognized SSL message, plaintext connection?
faultDetail: {...} Unrecognized SSL message, plaintext connection?
at nownRecord(
at ord(
at InitialHandshake(
at ndshake(
at ndshake(
at reate(
at org.apache.axis.transport.http.HTTPSender.getSocke t(
at org.apache.axis.transport.http.HTTPSender.writeToS ocket(
at org.apache.axis.transport.http.HTTPSender.invoke(H
at org.apache.axis.strategies.InvocationStrategy.visi t(
at org.apache.axis.SimpleChain.doVisiting(SimpleChain .java:11
at org.apache.axis.SimpleChain.invoke(SimpleChain.jav a:83)
at org.apache.axis.client.AxisClient.invoke(AxisClien
at org.apache.axis.client.Call.invokeEngine( :2784)
at org.apache.axis.client.Call.invoke(
at org.apache.axis.client.Call.invoke(
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
AXIS jars org.apache.axis.wsi.* and org.apache.axis.transport.jms.* Java 0 02-23-2005 04:02 PM
Crypto.PublicKey.RSA.error: Plaintext too large Ajay Brar Python 5 08-04-2004 12:05 PM
axis.jar does not contain org.apache.axis.client.ServiceClient? Joey Vendetta Java 0 04-01-2004 05:51 PM
Python SSL Socket Client to Java SSL Server. HELP me PLEASE. Krzysztof Paź Python 1 09-26-2003 08:36 PM
Re: plaintext HTML 3 06-23-2003 07:35 PM