Error on Agile SDK usage from Java code
Hello. I’m getting error:
Error code : 60086 Error message : Call APIException.getRootCause() for details. Root Cause exception : java.lang.IllegalArgumentException: [Security:090461]Class not Found weblogic.security.SSL.jsseadapter.JaSSLContextImpl } at [AgileSessionFactory.java.com.agile.api.AgileSessionFactory::<init>(830) AgileSessionFactory.java.com.agile.api.AgileSessionFactory::refreshInstanceEx(1,272) AgileSessionFactory.java.com.agile.api.AgileSessionFactory::refreshSessionEx(1,303) AgileSession.java.connectors.AgileSession::<init>(50) AgileQuery.java.connectors.AgileQuery::getQueries(64) ]. 4128.710@ZF8=$ OTM[agile] (0): [queries][end][hr:80004005][sres:Error code : 60086 Error message : Call APIException.getRootCause() for details. Root Cause exception : java.lang.IllegalArgumentException: [Security:090461]Class not Found weblogic.security.SSL.jsseadapter.JaSSLContextImpl ]
trying to connect to Agile Server via SDK.
Tried using both methods:
- AgileSessionFactory.createSessionEx(params)
- AgileSessionFactory.refreshSessionEx(params)
Where the problem can be?
Hello
Looks like there could be missing parameters in your appserver config. I see theĀ same exception in this metalink article. Even though this talks about web service, the exception is coming when making a connection
Check this out
Error:’Class Not Found weblogic.security.SSL.jsseadapter.JaSSLContextImpl’ in Web Service (Doc ID 2195810.1)
This is the solution they have
<<
1. Open the Application Server startup script.
2. Add the below Parameters in the Application Server Start command, for Cluster add the same in startup scripts of all Managed Servers.
-Dssl.SocketFactory.provider=com.sun.net.ssl.internal.SSLSocketFactoryImpl
-DUseSunHttpHandler=true -Dweblogic.wsee.client.ssl.usejdk=true
3. Restart the server.
4. Retest the issue.
>>
Hope this helps
– Raj
Hello, rchinnia. Tried using parameters from this oracle issue
-Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol
-Dssl.SocketFactory.provider=com.sun.net.ssl.internal.SSLSocketFactoryImpl
-DUseSunHttpHandler=true -Dweblogic.wsee.client.ssl.usejdk=true
Result is the same.
Agile version 9.3.3
“Are you referring to correct AgileAPI.jar version?”
Yes, pretty sure AgileAPI.jar version is correct.
In case someone will hit the same issue: https://docs.oracle.com/cd/E60149_28/otn/pdf/integration/agaap.pdf
See page 33:
HashMap params = new HashMap();
params.put(AgileSessionFactory.URL, URL);
params.put(AgileSessionFactory.USERNAME, USERNAME);
params.put(AgileSessionFactory.PASSWORD, PASSWORD);
AgileSessionFactory factory = AgileSessionFactory.refreshInstanceEx(params);
IAgileSession lsession = factory.createSession(params);