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?

Agile User Asked on November 26, 2019 in Agile PLM (v9).
Add Comment
6 Answer(s)

Should mention – error occurs at cluster and non-cluster agile configuration

Agile User Answered on November 26, 2019.
Add Comment

What is the Agile version? Are you referring to correct AgileAPI.jar version?

Agile User Answered on November 26, 2019.
Add Comment

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.

-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

3. Restart the server.
4. Retest the issue.
>>

Hope this helps

– Raj

 

 

Agile Angel Answered on November 26, 2019.
Add Comment

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

Agile User Answered on November 27, 2019.
Add Comment

“Are you referring to correct AgileAPI.jar version?”

Yes, pretty sure AgileAPI.jar version is correct.

Agile User Answered on November 27, 2019.
Add Comment

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);

 

Agile User Answered on November 27, 2019.

Hello

So, was it a code issue? if so, what did you have earlier that caused this issue

– Raj

on November 27, 2019.

The code before was:

HashMap params = new HashMap();

params.put(AgileSessionFactory.URL, URL);

params.put(AgileSessionFactory.USERNAME, USERNAME);

params.put(AgileSessionFactory.PASSWORD, PASSWORD);

IAgileSession lsession = AgileSessionFactory.refreshSessionEx(params);

on November 28, 2019.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.