ws-savan-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Rheinheimer (JIRA)" <>
Subject [jira] Commented: (AXIS2-4673) kernel TransportUtils.createSOAPEnvelope should return empty envelope for empty InputStream
Date Wed, 07 Apr 2010 20:54:33 GMT


Mike Rheinheimer commented on AXIS2-4673:

The problem originated from Sandesha.  Cut/paste from a very old note:  "The problem is that
if we don't get a response on the back channel of a sync 2-way message we don't know this
so we start to parse the message which causes this exception."  "The best solution is for
Sandesha to not call the createSOAPMessage if there is nothing to create, but at the moment
I don't think there is any way to tell."

David Parsons might be the better person to ask if we really want to dig into it.

Meanwhile, I can put together a better patch for the cases where .available() returns 0. 
I figure I'd have to check if mark() is supported, then read ahead and reset, or when mark()
is not supported, read the whole thing into a BAIS to be passed along.  Your thoughts?

> kernel TransportUtils.createSOAPEnvelope should return empty envelope for empty InputStream
> -------------------------------------------------------------------------------------------
>                 Key: AXIS2-4673
>                 URL:
>             Project: Axis2
>          Issue Type: Bug
>          Components: kernel
>            Reporter: Mike Rheinheimer
>            Assignee: Mike Rheinheimer
>         Attachments: AXIS2-4673.patch
> Currently, the org.apache.axis2.transport.TransportUtils.createSOAPMessage correctly
throws an exception for a null InputStream, but passes an empty InputStream down to the parser,
which may throw an exception resulting in an exception stack similar to:
> Throwable occurred:
The root element is required in a well-formed document.
> 	at
> 	at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(
> 	at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.<init>(
> 	at org.apache.axis2.builder.BuilderUtil.getSOAPBuilder(
> 	at org.apache.axis2.transport.TransportUtils.createDocumentElement(
> 	at org.apache.axis2.transport.TransportUtils.createSOAPMessage(
> 	at org.apache.axis2.transport.TransportUtils.createSOAPMessage(
> 	at org.apache.sandesha2.workers.SenderWorker.checkForSyncResponses(
> I'll attach a proposed patch with fix.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message