Attachment Actions are intermittently failing via SDK in 9.3.2.0 with error: java.lang.NullPointerException (Doc ID 1587621.1)

Last updated on AUGUST 21, 2016

Applies to:

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

Symptoms

After a short time whenever trying to do anything with Attachments (ie: get, checkIn, checkOut, etc) via SDK using getfile, checkOut, checkOutEx, checkIn, cancelCheckout, etc the following error occurs:

 Review <Note 1303695.1>: Location of Application Server and Filemgr Logs for Agile


ERROR in Application Server Log
------------------------------------
Error code : 60086
Error message : Call APIException.getRootCause() for details.
Root Cause exception : java.lang.NullPointerException

    at com.agile.api.pc.Session.createError(Session.java:1901)
    at com.agile.api.pc.attachment.IFSOutputStream.copyFrom(IFSOutputStream.java:93)
    at com.agile.api.pc.attachment.TableFiles$CreateServerRowAction.doSdkAction(TableFiles.java:438)
    at com.agile.api.common.SDKAction.run(SDKAction.java:23)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
    at weblogic.security.Security.runAs(Security.java:61)
    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.attachment.TableFiles.doCreateServerRowWithParam(TableFiles.java:325)
    at com.agile.api.pc.Table.createTableRow(Table.java:238)
    at com.agile.api.pc.Table.createRow(Table.java:202)

 

Error code : 60086
Error message : Call APIException.getRootCause() for details.
Root Cause exception : java.lang.RuntimeException

    at com.agile.api.pc.APIObject.createError(APIObject.java:131)
    at com.agile.api.pc.attachment.RowFile.access$200(RowFile.java:51)
    at com.agile.api.pc.attachment.RowFile$GetFileAction.doSdkAction(RowFile.java:359)
    at com.agile.api.common.SDKAction.run(SDKAction.java:23)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
    at weblogic.security.Security.runAs(Security.java:61)
    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.attachment.RowFile.getFile(RowFile.java:94)

ERROR in File Manager Log
--------------------------------
The Catalina log in the file manager shows
-----------------------------------------

<BasicAuthStrategy:INFO> Error while authenticating user.
com.agile.webfs.components.security.client.SecurityException: Authentication Failed for user <user>

at com.agile.webfs.components.security.BasicAuthStrategy.authenticate(BasicAuthStrategy.java:121)
at com.agile.webfs.components.security.SecurityManager.isValid(SecurityManager.java:70)
at com.agile.webfs.components.controller.FilemanagerAuthFilter.doFilter(FilemanagerAuthFilter.java:64)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at com.agile.webfs.components.controller.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:35)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)





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