My Oracle Support Banner

NPE Error When Downloading File Stored In UCM From BPM Workspace (Doc ID 2703817.1)

Last updated on AUGUST 25, 2020

Applies to:

Oracle Business Process Management Suite - Version 12.2.1.4.0 and later
Information in this document applies to any platform.

Symptoms

On : 12.2.1.4.0 version, Orchestration Engine

When attempting to download the file from UCM using the ADF Task Form associated to a task, the following error occurs,
the following error occurs.

ERROR
-----------------------
In Browser:
Error
java.lang.NullPointerException
Error
The file was not downloaded or was not downloaded correctly

In log file:
Caused By: java.lang.NullPointerException

  at
oracle.bpel.services.workflow.ecm.cmis.spi.ridc.ObjectServiceImpl.getSuggested
FileName(ObjectServiceImpl.java:409)

  at
oracle.bpel.services.workflow.ecm.cmis.spi.ridc.ObjectServiceImpl.getContentSt
ream(ObjectServiceImpl.java:384)

  at
org.apache.chemistry.opencmis.client.runtime.SessionImpl.getContentStream(Sess
ionImpl.java:930)

  at
org.apache.chemistry.opencmis.client.runtime.DocumentImpl.getContentStream(Doc
umentImpl.java:371)

  at
org.apache.chemistry.opencmis.client.runtime.DocumentImpl.getContentStream(Doc
umentImpl.java:358)

  at
oracle.bpel.worklistapp.ecm.CMISEventListener.onView(CMISEventListener.java:33
3)

  at
oracle.bpel.worklistapp.ecm.AbstractTypedEventListener.onEvent(AbstractTypedEv
entListener.java:209)

  at
oracle.bpel.worklistapp.ecm.SequentialBreakChainExecutor.execute(SequentialBre
akChainExecutor.java:82)

  at
oracle.bpel.worklistapp.ecm.AbstractDocMgmtBean.downloadDocument(AbstractDocMg
mtBean.java:702)

  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

  at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

  at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.j
ava:43)

  at java.lang.reflect.Method.invoke(Method.java:498)

  at com.sun.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:181)

  at com.sun.el.parser.AstValue.invoke(AstValue.java:289)


STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Create a bpm process instance on EM by run Test on UCM_Bpm_Test_Project.
2. Access human task on BPM workspace, click "UCM_BPM_Test_Humantask" and open the form.
3. Attach a file to the ADF Form associated to the Task
4. Try to download the file. The error occurs in BPM Workspace
5. Open the bpm server log/out file, will see error.



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
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.