NullPointerException when to use SDK API to get file (Doc ID 2242499.1)

Last updated on MARCH 10, 2017

Applies to:

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

Symptoms

On : 9.3.3.0 version, Software Development Kit

When attempting to download file attachments,
the following error occurs.

ERROR
-----------------------
java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:514)
at java.util.Properties.setProperty(Properties.java:161)
at java.lang.System.setProperty(System.java:787)
at com.agile.webfs.client.IFSLocator.getConnection(IFSLocator.java:156)
at com.agile.api.pc.EJBLookup.createFileSession(EJBLookup.java:473)
at com.agile.api.pc.attachment.IFSInputStream.createFileSession(IFSInputStream.java:132)
at com.agile.api.pc.attachment.IFSInputStream.<init>(IFSInputStream.java:37)
at com.agile.api.pc.RowAttachment$GetFileAction.doSdkAction(RowAttachment.java:556)
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.RowAttachment.getFile(RowAttachment.java:343)


STEPS
-----------------------
The issue can be reproduced at will with the following steps:

1. Develop a SDK client program to download file with following code


2. Run and find NullPointerException error


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