Unable to Create Session With User for URL PX Using USERNAME and PASSWORD SDK API Parameters

(Doc ID 2311502.1)

Last updated on SEPTEMBER 26, 2017

Applies to:

Oracle Agile PLM Framework - Version 9.3.6.0 and later
Information in this document applies to any platform.

Symptoms

In URL PX, when trying to create a new session with SDK API:params.put(AgileSessionFactory.USERNAME,j_username) and params.put(AgileSessionFactory.PASSWORD,j_password), the session creation fails with error:

Error

Error code : 60099
Error message : Session has been already closed.
at com.agile.api.common.Security.doAs(Security.java:111)
at com.agile.api.pc.Session.getCurrentUserInfo(Session.java:1346)
at com.agile.api.pc.Session.getResourceBundle(Session.java:814)
at com.agile.api.pc.Session.createError(Session.java:2039)
at com.agile.api.pc.APIObject.checkParameter(APIObject.java:147)
at com.agile.api.pc.APIObject.checkParameter(APIObject.java:137)
at com.agile.api.pc.Session.(Session.java:234)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.agile.api.AgileSessionFactory.createSession(AgileSessionFactory.java:1137)

Error code : 60018
at com.agile.api.pc.Session.createError(Session.java:2039)
at com.agile.api.pc.APIObject.checkParameter(APIObject.java:147)
at com.agile.api.pc.APIObject.checkParameter(APIObject.java:137)
at com.agile.api.pc.Session.(Session.java:234)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.agile.api.AgileSessionFactory.createSession(AgileSessionFactory.java:1137)





Steps

The issue can be reproduced at will with the following steps:
1. Create a new session using SDK API:params.put(AgileSessionFactory.USERNAME,j_username) and params.put(AgileSessionFactory.PASSWORD,j_password)




Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms