Agile SDK/API getRevision Ends in java.lang.StackOverflowError Error
(Doc ID 2432328.1)
Last updated on APRIL 04, 2023
Applies to:
Oracle Agile PLM Framework - Version 9.3.3.0 and laterInformation in this document applies to any platform.
Symptoms
ACTUAL BEHAVIOR
Agile SDK API getRevision ends in java.lang.StackOverflowError error.
This occurs on following scenario:
1) The SDK user try to access a Part with latest revision having Lifecycle Phase : Inactive from Agile SDK using getRevision API.
2) The SDK user has Role with Privilege : Discover Items and custom Read Privilege set, which can only Read Parts with Lifecycle Phase other than Inactive status.
ERROR
Exception in thread "main" java.lang.StackOverflowError
at java.security.AccessController.doPrivileged(Native Method)
at weblogic.security.acl.internal.AuthenticatedSubject$SealableSet.<init>(AuthenticatedSubject.java:554)
at weblogic.security.acl.internal.AuthenticatedSubject.<init>(AuthenticatedSubject.java:117)
at weblogic.security.acl.internal.AuthenticatedSubject$1.run(AuthenticatedSubject.java:146)
at java.security.AccessController.doPrivileged(Native Method)
at weblogic.security.acl.internal.AuthenticatedSubject.getFromSubject(AuthenticatedSubject.java:132)
at weblogic.security.Security.runAs(Security.java:60)
at com.agile.api.common.WebLogicAuthenticator.doAs(WebLogicAuthenticator.java:111)
at com.agile.api.common.Security.doAs(Security.java:54)
at com.agile.api.common.Security.doAs(Security.java:109)
at com.agile.api.pc.item.Item.getSiteRevInfo(Item.java:100)
at com.agile.api.pc.Revisioned.getRevisions(Revisioned.java:178)
at com.agile.api.pc.Revisioned.getRevision(Revisioned.java:129)
at com.agile.api.pc.Revisioned.getRevision(Revisioned.java:133)
at com.agile.api.pc.Revisioned.getRevision(Revisioned.java:133)
at com.agile.api.pc.Revisioned.getRevision(Revisioned.java:133)
at com.agile.api.pc.Revisioned.getRevision(Revisioned.java:133)
at com.agile.api.pc.Revisioned.getRevision(Revisioned.java:133)
at com.agile.api.pc.Revisioned.getRevision(Revisioned.java:133)
at com.agile.api.pc.Revisioned.getRevision(Revisioned.java:133)
....
1. Open eclipse and set up a Java Project including the following code.
> GetRevSample
> JRE System Library [JavaSE-1.7]
> src
> og
> GetRevSample.java
> Referenced Libraries
> AgileAPI.jar <DIR>\oracle\Agile\Agile933\integragtion\sdk\lib
Changes
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Changes |
Cause |
Solution |
References |