Content not allowed in prolog error in Service Bus Assign action (Doc ID 1505484.1)

Last updated on SEPTEMBER 26, 2016

Applies to:

Oracle Service Bus - Version 11.1.1.3.0 and later
Linux x86-64

Symptoms

When a transformation using XSLT is attempted, sometimes the error below is raised:

 

BEA-382510: OSB Assign action failed updating variable "runtimeInstance": javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Content is not allowed in prolog.

 

This problem does not occur on Windows platform.

Findings show that manually adding a carriage return (or even a space) within the first approximately 5800 characters of the XML will result in a successful transformation. 

There are no special characters within the content of the message itself.

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