My Oracle Support Banner

" java.lang.NullPointerException at oracle.bpel.services.workflow.client.util.WorkflowAttachmentUtil.sendOverHttp" Exception while Uploading Attachments into UCM With useAccounts Enabled on UCM (Doc ID 1609783.1)

Last updated on AUGUST 09, 2018

Applies to:

Oracle Fusion Middleware - Version 11.1.1.6.0 and later
Information in this document applies to any platform.

Symptoms

On : 11.1.1.6.0 version, Install - SOA

While adding attachments to UCM through the worklist API, upload of attachment failed with the following exception. Exception occurs only when useAccounts option is enabled on UCM Side 

ERROR
-----------------------
ORABPEL-0


at oracle.bpel.services.workflow.client.util.WorkflowAttachmentUtil.addAttachmentViaServlet(WorkflowAttachmentUtil.java:505)
at oracle.bpel.services.workflow.task.client.AbstractDOMTaskServiceClient.addAttachment(AbstractDOMTaskServiceClient.java:477)
at view.WorkflowUtils.addAttachment(WorkflowUtils.java:185)
at view.WorkflowBean.addAttachmentActionListener(WorkflowBean.java:44)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:600)
at com.sun.el.parser.AstValue.invoke(AstValue.java:187)
at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:297)
at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1256)
...........
Caused by: java.lang.NullPointerException
at oracle.bpel.services.workflow.client.util.WorkflowAttachmentUtil.sendOverHttp(WorkflowAttachmentUtil.java:657)
at oracle.bpel.services.workflow.client.util.WorkflowAttachmentUtil.uploadAttachment(WorkflowAttachmentUtil.java:598)
at oracle.bpel.services.workflow.client.util.WorkflowAttachmentUtil.uploadAttachment(WorkflowAttachmentUtil.java:120)
at oracle.bpel.services.workflow.client.util.WorkflowAttachmentUtil.uploadAttachment(WorkflowAttachmentUtil.java:155)
at oracle.bpel.services.workflow.client.util.WorkflowAttachmentUtil.addAttachmentViaServlet(WorkflowAttachmentUtil.java:494)
... 70 more




STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Configure UCM
2. Modify the Human workflow project to store the attachments in UCM
3. Use workflow API to "addAttachment"



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.