aspose file tools*
The moose likes Web Services and the fly likes problem calling a remote webservice [ Algo Error] Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "problem calling a remote webservice [ Algo Error]" Watch "problem calling a remote webservice [ Algo Error]" New topic
Author

problem calling a remote webservice [ Algo Error]

Namrita Mohanty
Ranch Hand

Joined: Sep 26, 2010
Posts: 35
Hello,

Hey am new to webservices so please could someone please help me in solving the below error that am running into.

When I point my Java code to a local webservice am able to access it properly. But, if i try accessing it remotely say call another webservice which in returns calls my webservice I run into the below:

Error constructing implementation (algorithm: Default, provider: SunJSSE, class: com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl) Nested exception: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl)

java.lang.RuntimeException: org.dom4j.DocumentException: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl) Nested exception: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl)

Please suggest.

Thanks In Advance.
shivendra tripathi
Ranch Hand

Joined: Aug 26, 2008
Posts: 263
It seems like the remote service you are trying to invoke demands using SSL. And the SSL library (JSSE in your case) doesn't implement the algorithm needed by remote service for communication over SSL.

If you have option of turning off SSL for remote service, you can give it a try as to be sure root cause of the problem.


SCJP 1.5(97%) My Blog
Namrita Mohanty
Ranch Hand

Joined: Sep 26, 2010
Posts: 35
As am new to all these could you please elaborate as to what do I have to do.
Really having a stuff time...
shivendra tripathi
Ranch Hand

Joined: Aug 26, 2008
Posts: 263
Could you provide your client code and remote service WSDL to help you out with more detail?
Namrita Mohanty
Ranch Hand

Joined: Sep 26, 2010
Posts: 35
Sure, would you mind if I email it to you?
Namrita Mohanty
Ranch Hand

Joined: Sep 26, 2010
Posts: 35
<?xml version="1.0" encoding="utf-8" ?>
- <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://tempuri.org/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://tempuri.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
- <wsdl:types>
- <s:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/">
- <s:element name="InterfacingService">
- <s:complexType>
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="xml" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
- <s:element name="InterfacingServiceResponse">
- <s:complexType>
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="InterfacingServiceResult" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="AuthenticationHeader" type="tns:AuthenticationHeader" />
- <s:complexType name="AuthenticationHeader">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="Username" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Password" type="s:string" />
</s:sequence>
<s:anyAttribute />
</s:complexType>
</s:schema>
</wsdl:types>
- <wsdl:message name="InterfacingServiceSoapIn">
<wsdl:part name="parameters" element="tns:InterfacingService" />
</wsdl:message>
- <wsdl:message name="InterfacingServiceSoapOut">
<wsdl:part name="parameters" element="tns:InterfacingServiceResponse" />
</wsdl:message>
- <wsdl:message name="InterfacingServiceAuthenticationHeader">
<wsdl:part name="AuthenticationHeader" element="tns:AuthenticationHeader" />
</wsdl:message>
- <wsdl:portType name="InterfacingServiceSoap">
- <wsdlperation name="InterfacingService">
<wsdl:input message="tns:InterfacingServiceSoapIn" />
<wsdlutput message="tns:InterfacingServiceSoapOut" />
</wsdlperation>
</wsdl:portType>
- <wsdl:binding name="InterfacingServiceSoap" type="tns:InterfacingServiceSoap">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
- <wsdlperation name="InterfacingService">
<soapperation soapAction="http://tempuri.org/InterfacingService" style="document" />
- <wsdl:input>
<soap:body use="literal" />
<soap:header message="tns:InterfacingServiceAuthenticationHeader" part="AuthenticationHeader" use="literal" />
</wsdl:input>
- <wsdlutput>
<soap:body use="literal" />
</wsdlutput>
</wsdlperation>
</wsdl:binding>
- <wsdl:binding name="InterfacingServiceSoap12" type="tns:InterfacingServiceSoap">
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />
- <wsdlperation name="InterfacingService">
<soap12peration soapAction="http://tempuri.org/InterfacingService" style="document" />
- <wsdl:input>
<soap12:body use="literal" />
<soap12:header message="tns:InterfacingServiceAuthenticationHeader" part="AuthenticationHeader" use="literal" />
</wsdl:input>
- <wsdlutput>
<soap12:body use="literal" />
</wsdlutput>
</wsdlperation>
</wsdl:binding>
- <wsdl:service name="InterfacingService">
- <wsdl:port name="InterfacingServiceSoap" binding="tns:InterfacingServiceSoap">
<soap:address location="https://dipasservice/InterfacingService.asmx" />
</wsdl:port>
- <wsdl:port name="InterfacingServiceSoap12" binding="tns:InterfacingServiceSoap12">
<soap12:address location="https://dipasservice/InterfacingService.asmx" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
Namrita Mohanty
Ranch Hand

Joined: Sep 26, 2010
Posts: 35
The above is the WSDL that I am trying to call through my webservice...
To call dis ws i have mapped the URL of the above in the resource bundle and in my code am using the following:

// Service
String serviceName = findFirstServiceOfWsdl(wsdlDoc);
log.debug("service name----------------------"+ serviceName);
//Service service = new Service(new URL("http://redhat-apacv9app.adminserver.com:9097/ingws/services/TXLife?wsdl"),new QName(targetNamespace, serviceName));
System.setProperty("javax.net.ssl.trustStore","d:/Cert/certnew.cer");
Service service = new Service(new URL(serviceUrl),new QName(targetNamespace, serviceName));

shivendra tripathi
Ranch Hand

Joined: Aug 26, 2008
Posts: 263
Hi,
Looks like problem is with your keystore/certificate. Could you mail me your keystore/cer (with password if any) file so that I can try on my machine?
Namrita Mohanty
Ranch Hand

Joined: Sep 26, 2010
Posts: 35
Have emailed you....
Namrita Mohanty
Ranch Hand

Joined: Sep 26, 2010
Posts: 35
Any luck Sir...?
shivendra tripathi
Ranch Hand

Joined: Aug 26, 2008
Posts: 263
I did a simple test writing following java code:

System.setProperty("javax.net.ssl.trustStore","E:\abc.cer");
SSLContext def = SSLContext.getDefault();

And I got the exception mentioned by you. Then I imported same cer to java keystore(jks) and tried same code. I didn't get the exception. Hope it should work.

SSystem.setProperty("javax.net.ssl.trustStore","E:\truststore.jks");
System.setProperty("javax.net.ssl.trustStorePassword","shivendra");
SSLContext def = SSLContext.getDefault();

I have mailed you keystore file and code change details.
Namrita Mohanty
Ranch Hand

Joined: Sep 26, 2010
Posts: 35
no luck. Threw again the following:

java.lang.RuntimeException: org.dom4j.DocumentException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target Nested exception: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

keystore file kept in D:\

Code:

System.setProperty("javax.net.ssl.trustStore","D:/truststore.jks");
System.setProperty("javax.net.ssl.trustStorePassword","shivendra");
Service service = new Service(new URL(serviceUrl),new QName(targetNamespace, serviceName));
shivendra tripathi
Ranch Hand

Joined: Aug 26, 2008
Posts: 263
Don't worry we are on write track. Put the keystore in $JAVA_HOME/jre/lib/security and change location of keystore in your client code accordingly.
Namrita Mohanty
Ranch Hand

Joined: Sep 26, 2010
Posts: 35
no luck

System.setProperty("javax.net.ssl.trustStore","C:/Program Files/Java/jre6/lib/security/truststore.jks");

Same error
shivendra tripathi
Ranch Hand

Joined: Aug 26, 2008
Posts: 263
okey, the problem is JDK doesn't consider your certificate as trusted. Now follow below mentioned to import your certificate in jdk trusted certificate list (as mentioned in step 3).

How to make a certificate trusted by JDK?

1.To make a certificate trusted by a JDK, it has to added to JRE�s trust keystore.

2.To view the trusted certificate list, go to JRE�s security folder ($JAVA_HOME/jre/lib/security) and issue following command: keytool -list -keystore cacerts.

3.To add a certificate in this list: keytool -import -keystore cacerts -file C:\certnew.cer

4. as for trust, enter "Y"

5.The default password for cacerts is changeit.


now refer this in your client code as follows.

System.setProperty("javax.net.ssl.trustStore","C:/Program Files/Java/jdk1.6/jre/lib/security/cacerts");
System.setProperty("javax.net.ssl.trustStorePassword","changeit");

Hope this will work, or at least you will get some other error :-)
Namrita Mohanty
Ranch Hand

Joined: Sep 26, 2010
Posts: 35
I have tried with what you have said before but a little different. Please guide if I need to re-do it .. or is it correct:

C:\Program Files\Java\jre6\bin> keytool -import -alias ing -file d:\<path of cer file>
Asked for pswd : I gave my own name
Trust this certificate? [no]: Yes
System.setProperty("javax.net.ssl.trustStore","C:/Documents and Settings/NamritaM/.keystore");
System.setProperty("javax.net.ssl.trustStorePassword","namrita");

The above too is giving the same error.
Namrita Mohanty
Ranch Hand

Joined: Sep 26, 2010
Posts: 35
The point 2 that you have mentioned :

2.To view the trusted certificate list, go to JRE�s security folder ($JAVA_HOME/jre/lib/security) and issue following command: keytool -list -keystore cacerts.

it gives me keeytool not recognized therefore I tried it in bin folder...
shivendra tripathi
Ranch Hand

Joined: Aug 26, 2008
Posts: 263
I have tried with what you have said before but a little different. Please guide if I need to re-do it .. or is it correct:

C:\Program Files\Java\jre6\bin> keytool -import -alias ing -file d:\<path of cer file>
Asked for pswd : I gave my own name
Trust this certificate? [no]: Yes
System.setProperty("javax.net.ssl.trustStore","C:/Documents and Settings/NamritaM/.keystore");
System.setProperty("javax.net.ssl.trustStorePassword","namrita");

The above too is giving the same error.


> C:\Program Files\Java\jre6\bin> keytool -import -alias ing -file d:\<path of cer file> should be C:\Program Files\Java\jdk1.6\jre\lib\security>keytool -import -keystore cacerts
-file C:\certnew.cer you have to go to security dir of your jre.
when ask for pwd it is "changeit".
>System.setProperty("javax.net.ssl.trustStore","C:/Program Files/Java/jdk1.6/jre/lib/security/cacerts"); // C:/Program Files/Java/jdk1.6/jre/lib/security your jre path till security
System.setProperty("javax.net.ssl.trustStorePassword","changeit"); // pwd is changeit not your name
The point 2 that you have mentioned :

2.To view the trusted certificate list, go to JRE�s security folder ($JAVA_HOME/jre/lib/security) and issue following command: keytool -list -keystore cacerts.

it gives me keeytool not recognized therefore I tried it in bin folder...


Set JDK class path. Go to env variables in case of windows and append C:\Program Files\Java\jdk1.6\bin to path
Namrita Mohanty
Ranch Hand

Joined: Sep 26, 2010
Posts: 35
I did try doing what you have explained but it says "Keytool is not recognized as an internal or external command"

PATH: c:\app\Oracle\product\11.1.0\client_1\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\PROGRA~1\IBM\CLIENT~1;C:\PROGRA~1\IBM\CLIENT~1\Shared;C:\PROGRA~1\IBM\CLIENT~1\Emulator;C:\Program Files\Microsoft Office\OFFICE11;c:\Program Files\Intel\DMIX;C:\Program Files\Windows Imaging\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Java\jdk1.6\bin\;C:\Program Files\QuickTime\QTSystem\

shivendra tripathi
Ranch Hand

Joined: Aug 26, 2008
Posts: 263
C:\Program Files\Java\jdk1.6\bin\
I can see additional "\".

Change it to "C:\Program Files\Java\jdk1.6\bin". Save your changes, open a new command prompt and try keytool.
Namrita Mohanty
Ranch Hand

Joined: Sep 26, 2010
Posts: 35
C:\Program Files\Java\jre6\lib\security>keytool -import -keystore cacerts -fil
D:\certnew.cer
'keytool' is not recognized as an internal or external command,
operable program or batch file.

C:\Program Files\Java\jre6\lib\security>
---------------------------------------------------------------------------------------------
Path:
c:\app\Oracle\product\11.1.0\client_1\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\PROGRA~1\IBM\CLIENT~1;C:\PROGRA~1\IBM\CLIENT~1\Shared;C:\PROGRA~1\IBM\CLIENT~1\Emulator;C:\Program Files\Microsoft Office\OFFICE11;c:\Program Files\Intel\DMIX;C:\Program Files\Windows Imaging\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Java\jdk1.6\bin;C:\Program Files\QuickTime\QTSystem\
Namrita Mohanty
Ranch Hand

Joined: Sep 26, 2010
Posts: 35
This is now becoming very very tricky
shivendra tripathi
Ranch Hand

Joined: Aug 26, 2008
Posts: 263
Did you open your command prompt after you corrected JDK class path? If not open a new command prompt and try. Since you were able to execute keytool from bin folder that says keytool utility is available on your machine. Just you have to put in your class path so that you can execute it form anywhere.
Namrita Mohanty
Ranch Hand

Joined: Sep 26, 2010
Posts: 35
Crosschecked... Though am able to ping keytool in bin path of jre6 folder am not able to do so in the security path
Namrita Mohanty
Ranch Hand

Joined: Sep 26, 2010
Posts: 35
There was a typo in setting the path ... keytool pinged and working fine now...
Thanks a ton
It worked early in the morning.... Guess I was bugged up yesterday which resulted to the typo ;)
shivendra tripathi
Ranch Hand

Joined: Aug 26, 2008
Posts: 263
Is java/javac recognized from security folder? I am sure you will not be able to do this as well.

Now since our issue is different and we just want to import your certificate in "cacerts" file present in security folder using keytool utility. Lets try a workaround.

Copy "cacerts" from your security folder to bin, execute keytool command to import your certificate as mentioned in earlier message. Take backup of your "cacerts" in security file and copy updated "cacerts " file from bin to security folder.

Modify your client code as mentioned earlier and try calling webservice.
Namrita Mohanty
Ranch Hand

Joined: Sep 26, 2010
Posts: 35
Sure wil try the workaround and update you....
Don Donn
Greenhorn

Joined: Jan 04, 2012
Posts: 1
Hi,

I have the same problem, but it happens intermittently. Sometimes it works well. Any body could help me on this?

[18:45:51] [ACE] org.apache.axis2.AxisFault: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl)
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:193)
at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:371)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:209)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:448)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:401)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
at mc_style.functions.soap.sap.document.sap_com.ZFIAR_OUTS_PAYMENT_INStub.ZfiarOutstandingPymtWs(ZFIAR_OUTS_PAYMENT_INStub.java:194)
at io.ace.EclipsClientACEWS.sendOutsPaymentInfo(EclipsClientACEWS.java:232)
at io.ace.EclipsClientACEWS.callService(EclipsClientACEWS.java:82)
at io.ace.ACEOutsndPaymtRequestOut.sendOutsPaymentInfo(ACEOutsndPaymtRequestOut.java:150)
at ejb.session.payment.PaymentUtilBean.getInvoiceList(PaymentUtilBean.java:983)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.enterprise.security.SecurityUtil$2.run(SecurityUtil.java:181)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.enterprise.security.application.EJBSecurityManager.doAsPrivileged(EJBSecurityManager.java:985)
at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:186)
at com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2928)
at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:4019)
at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:203)
at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:120)
at $Proxy67.getInvoiceList(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(StubInvocationHandlerImpl.java:233)
at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:152)
at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(BCELStubBase.java:225)
at ejb.session.payment._PaymentUtil_DynamicStub.getInvoiceList(ejb/session/payment/_PaymentUtil_DynamicStub.java)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.dsm.util.BeanInvoker.invokeMethod(BeanInvoker.java:452)
at org.dsm.util.BeanInvoker.invokeMethod(BeanInvoker.java:399)
at org.dsm.builders.StateBuilder.invokeFromElement(StateBuilder.java:1702)
at org.dsm.builders.StateBuilder.build(StateBuilder.java:2087)
at org.dsm.builders.StateBuilder.buildTableFromElement(StateBuilder.java:426)
at org.dsm.builders.StateBuilder.build(StateBuilder.java:1972)
at org.dsm.builders.StateBuilder.buildState(StateBuilder.java:328)
at servlet.DSMServiceServlet.build(DSMServiceServlet.java:598)
at servlet.DSMServiceServlet.createResponse(DSMServiceServlet.java:139)
at servlet.DSMServiceServlet.doPost(DSMServiceServlet.java:79)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:292)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:325)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:208)
at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:420)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:315)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:288)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:647)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:579)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:831)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
at com.sun.enterprise.web.connector.grizzly.ssl.SSLReadTask.process(SSLReadTask.java:440)
at com.sun.enterprise.web.connector.grizzly.ssl.SSLReadTask.doTask(SSLReadTask.java:228)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
Caused by: java.net.SocketException: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl)
at javax.net.ssl.DefaultSSLSocketFactory.throwException(SSLSocketFactory.java:179)
at javax.net.ssl.DefaultSSLSocketFactory.createSocket(SSLSocketFactory.java:186)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:115)
at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:129)
at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:706)
at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1321)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:386)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:542)
at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:189)
... 85 more
Caused by: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl)
at java.security.Provider$Service.newInstance(Provider.java:1245)
at sun.security.jca.GetInstance.getInstance(GetInstance.java:220)
at sun.security.jca.GetInstance.getInstance(GetInstance.java:147)
at javax.net.ssl.SSLContext.getInstance(SSLContext.java:125)
at javax.net.ssl.SSLContext.getDefault(SSLContext.java:68)
at javax.net.ssl.SSLSocketFactory.getDefault(SSLSocketFactory.java:102)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:111)
... 94 more
Caused by: java.security.PrivilegedActionException: java.io.FileNotFoundException: /app/SUNWappserver/nodeagents/avaecapp1/instance-psi/config/keystore.jks (No such file or directory)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl.getDefaultKeyManager(DefaultSSLContextImpl.java:120)
at com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl.<init>(DefaultSSLContextImpl.java:40)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at java.security.Provider$Service.newInstance(Provider.java:1221)
... 104 more
Caused by: java.io.FileNotFoundException: /app/SUNWappserver/nodeagents/avaecapp1/instance-psi/config/keystore.jks (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl$2.run(DefaultSSLContextImpl.java:123)
at com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl$2.run(DefaultSSLContextImpl.java:121)
... 114 more
[io.ace.EclipsClientACEWS.sendOutsPaymentInfo(EclipsClientACEWS.java:237)]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem calling a remote webservice [ Algo Error]
 
Similar Threads
Problem with unrecoverable key
Need help with 403 error accessing webservice.
Error in Calling Web service Through SSL
MD5 encryption and decryption
Getting CertificateParsingException while calling a webservice with SSL