OEG: Large Messages Fails With Libxml Error 5: Extra Content At The End Of The Document when used with an WebSphere MQ (Doc ID 1570621.1)

Last updated on AUGUST 18, 2016

Applies to:

Oracle API Gateway - Version 11.1.1.6.1 and later
Information in this document applies to any platform.

Symptoms

Seeing the following in the OAG trace files when using a policy with Websphere MQ JMS:

DEBUG 07/Jun/2013:12:45:12.064 [037f] run circuit "Process_IES01_SPEED2_MQ_V1"...
DEBUG 07/Jun/2013:12:45:12.064 [037f] run filter [HTTP Parser] {
DEBUG 07/Jun/2013:12:45:12.065 [037f] parsing XML body from input stream of type com.vordel.dwe.InputStream. ContentSource is of type HTTP server transaction
DATA 07/Jun/2013:12:45:12.065 [037f] snd 0025: <HTTP/1.1 100 Continue

>
DATA 07/Jun/2013:12:45:12.065 [037e] rcv 25 from max of 3072: <HTTP/1.1 100 Continue

>
DEBUG 07/Jun/2013:12:45:12.065 [037e] HTTP response code from server: 100
DEBUG 07/Jun/2013:12:45:12.065 [037e] new buffered content stream 5043f10
DEBUG 07/Jun/2013:12:45:12.065 [037e] delete buffered content stream 5043f10
DATA 07/Jun/2013:12:45:12.065 [037e] chunk sync 0
DATA 07/Jun/2013:12:45:12.065 [037e] snd 0005: <0

>
DATA 07/Jun/2013:12:45:12.065 [037f] rcv 5 from max of 158: <0

>
ERROR 07/Jun/2013:12:45:12.065 [037f] libxml warning at line 1: Extra content at the end of the document
DEBUG 07/Jun/2013:12:45:12.065 [037f] } = 2, filter [HTTP Parser]
DEBUG 07/Jun/2013:12:45:12.065 [037f] Filter [HTTP Parser] completes in 1 milliseconds.
ERROR 07/Jun/2013:12:45:12.065 [037f] Filter that caused failure: HTTP Parser
ERROR 07/Jun/2013:12:45:12.065 [037f] Policy 'Process_IES01_SPEED2_MQ_V1' {
ERROR 07/Jun/2013:12:45:12.065 [037f] Filter 'HTTP Parser' Status: ABORTED
ERROR 07/Jun/2013:12:45:12.065 [037f] }
ERROR 07/Jun/2013:12:45:12.066 [037f] cannot parse body:
java.io.IOException: XML parse failed: libxml error 5: Extra content at the end of the document

at com.vordel.mime.XMLBody.parse(XMLBody.java:122)
at com.vordel.mime.Body.parse(Body.java:260)
at com.vordel.circuit.HTTPBodyParserProcessor.parse(HTTPBodyParserProcessor.java:16)
at com.vordel.circuit.HTTPBodyParserProcessor.invoke(HTTPBodyParserProcessor.java:29)
at com.vordel.circuit.InvocationEngine.invokeFilter(InvocationEngine.java:154)
at com.vordel.circuit.InvocationEngine.invokeCircuit(InvocationEngine.java:43)
at com.vordel.circuit.InvocationEngine.processMessage(InvocationEngine.java:229)
at com.vordel.circuit.SyntheticCircuitChainProcessor.invoke(SyntheticCircuitChainProcessor.java:36)
at com.vordel.dwe.http.HTTPPlugin.invokeDispose(HTTPPlugin.java:290)
at com.vordel.dwe.http.HTTPPlugin.invoke(HTTPPlugin.java:131)
Caused by: org.xml.sax.SAXException: libxml error 5: Extra content at the end of the document

at com.vordel.jaxprovider.libxml.DocumentBuilderImpl.parseNative(Native Method)
at com.vordel.jaxprovider.libxml.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:67)
at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:124)
at com.vordel.common.xml.XmlParserCache.getDocument(XmlParserCache.java:92)
at com.vordel.mime.XMLBody.parse(XMLBody.java:119)
... 9 more

This renders the policy inoperational.

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