Forum Discussion
Gurpreet_40964
Nimbostratus
Mar 01, 2012Connecting to F5 i control API through JAVA code
I am getting error while connecting to F5 device. I guess probable reason is certificate (Caused by: java.lang.Exception: Truststore file does not exist:). Can anybody help me... how can i get this certificate...
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.net.SocketException: java.security.NoSuchAlgorithmException: SSLContext Default implementation not found:
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:java.net.SocketException: java.security.NoSuchAlgorithmException: SSLContext Default implementation not found:
at javax.net.ssl.DefaultSSLSocketFactory.a(SSLSocketFactory.java:7)
at javax.net.ssl.DefaultSSLSocketFactory.createSocket(SSLSocketFactory.java:11)
at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:92)
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 iControl.SystemFailoverBindingStub.get_failover_state(SystemFailoverBindingStub.java:274)
at f5Admin.F5Admin.connectToF5(F5Admin.java:419)
at f5Admin.F5Admin.main(F5Admin.java:1343)
Caused by: java.security.NoSuchAlgorithmException: SSLContext Default implementation not found:
at java.security.Provider$Service.newInstance(Provider.java:889)
at sun.security.jca.GetInstance.getInstance(GetInstance.java:299)
at sun.security.jca.GetInstance.getInstance(GetInstance.java:237)
at javax.net.ssl.SSLContext.getInstance(SSLContext.java:25)
at javax.net.ssl.SSLContext.getDefault(SSLContext.java:15)
at javax.net.ssl.SSLSocketFactory.getDefault(SSLSocketFactory.java:17)
at org.apache.axis.components.net.JSSESocketFactory.initFactory(JSSESocketFactory.java:61)
at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:79)
... 15 more
Caused by: java.lang.Exception: Truststore file does not exist: C:\Documents and Settings\gxsing\.keystore
at com.ibm.jsse2.tc.a(tc.java:59)
at com.ibm.jsse2.kc.f(kc.java:19)
at com.ibm.jsse2.kc.(kc.java:16)
at java.lang.J9VMInternals.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1325)
at java.security.Provider$Service.newInstance(Provider.java:875)
... 22 more
{http://xml.apache.org/axis/}hostname:PHXJ04968711
java.net.SocketException: java.security.NoSuchAlgorithmException: SSLContext Default implementation not found:
at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154)
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 iControl.SystemFailoverBindingStub.get_failover_state(SystemFailoverBindingStub.java:274)
at f5Admin.F5Admin.connectToF5(F5Admin.java:419)
at f5Admin.F5Admin.main(F5Admin.java:1343)
Caused by: java.net.SocketException: java.security.NoSuchAlgorithmException: SSLContext Default implementation not found:
at javax.net.ssl.DefaultSSLSocketFactory.a(SSLSocketFactory.java:7)
at javax.net.ssl.DefaultSSLSocketFactory.createSocket(SSLSocketFactory.java:11)
at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:92)
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)
... 12 more
Caused by: java.security.NoSuchAlgorithmException: SSLContext Default implementation not found:
at java.security.Provider$Service.newInstance(Provider.java:889)
at sun.security.jca.GetInstance.getInstance(GetInstance.java:299)
at sun.security.jca.GetInstance.getInstance(GetInstance.java:237)
at javax.net.ssl.SSLContext.getInstance(SSLContext.java:25)
at javax.net.ssl.SSLContext.getDefault(SSLContext.java:15)
at javax.net.ssl.SSLSocketFactory.getDefault(SSLSocketFactory.java:17)
at org.apache.axis.components.net.JSSESocketFactory.initFactory(JSSESocketFactory.java:61)
at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:79)
... 15 more
Caused by: java.lang.Exception: Truststore file does not exist: C:\Documents and Settings\user1\.keystore
at com.ibm.jsse2.tc.a(tc.java:59)
at com.ibm.jsse2.kc.f(kc.java:19)
at com.ibm.jsse2.kc.(kc.java:16)
at java.lang.J9VMInternals.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1325)
at java.security.Provider$Service.newInstance(Provider.java:875)
... 22 more
Mar 1, 2012 11:15:51 AM F5Admin connectToF5
SEVERE: ERROR: Could not connect to F5java.net.SocketException: java.security.NoSuchAlgorithmException: SSLContext Default implementation not found:
Mar 1, 2012 11:15:51 AM F5Admin Main
SEVERE: Failed to connect to F5
Mar 1, 2012 11:15:51 AM F5Admin exitF5Admin
5 Replies
Sort By
- Are you using the iControl library for Java that I built?
- Gurpreet_40964
Nimbostratus
Hi Joe, - Hasan_35483
Nimbostratus
How did you solve your problem ? - Hasan_35483
Nimbostratus
I added the following line of code to get rid of the above error ; but now i face the trustore file missing problem :. I am using iControl Assembly 10.2 Java - Gurpreet_40964
Nimbostratus
We were able to solve this problem by having jks keystore setup in our websphere servers. alternate is use signer certificates in websphere. In local you can add certificates manually.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects