Agile API and HttpURLConnection conflict?

Agile 9.3.4 on Windows 2008R2 64-bit system

I am trying to develop a SDK program which extract information from Agile and send the information with a HttpURLConnection.

factory = AgileSessionFactory.getInstance(url);

HashMap<Integer, String> params = new HashMap<Integer, String>();
params.put(AgileSessionFactory.USERNAME, uid);
params.put(AgileSessionFactory.PASSWORD, passWd);

//JAVA HttpURLConnection

u = new java.net.URL("https://host.com/services/soap/connect/soap");

conn = (java.net.HttpURLConnection) u.openConnection();
conn.setDoOutput(true);
conn.setRequestMethod("GET");
conn.setRequestProperty( "Content-Type", type );
conn.setRequestProperty( "Content-Length", String.valueOf(caseQueryString.length()));
conn.setRequestProperty("SOAPAction", "QueryObjects");
java.io.OutputStream os = conn.getOutputStream();
os.write(caseQueryString.getBytes()); //Error

I got the following error:

Exception in thread “main” java.lang.IllegalArgumentException: [Security:090461]Class not Found weblogic.security.SSL.jsseadapter.JaSSLContextImpl
at weblogic.security.utils.SSLSetup.getDelegateClass(SSLSetup.java:139)
at weblogic.security.utils.SSLSetup.getSSLDelegateInstance(SSLSetup.java:96)

at weblogic.net.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:341)

I can confirm that the HttpURLConnection worked fine without the Agile API code.

I also found a post and tried to add the following  JAVA_OPTIONS to startAgile.cmd but still did not work.

-Dweblogic.system.BootIdentityFile=D:\Agile\Agile934\agileDomain\config\boot.properties -Dagile.log.dir=D:\Agile\Agile934\agileDomain\servers\%SERVER_NAME%\logs

 

Does anyone ever see this problem and know how to resolve it?

 

Thanks,

 

Alex

Add Comment
0 Answer(s)

Your Answer

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