axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Rheinheimer (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-4673) kernel TransportUtils.createSOAPEnvelope should return empty envelope for empty InputStream
Date Thu, 08 Apr 2010 14:06:36 GMT

    [ https://issues.apache.org/jira/browse/AXIS2-4673?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12854945#action_12854945
] 

Mike Rheinheimer commented on AXIS2-4673:
-----------------------------------------

All fair points.  Agree that if Sandesha is the only detector and reporter of this particular
problem, it's probably best to pursue resolution in Sandesha.  I've pointed David Parsons
to this Jira, so he's read up on the conversation.  Discussion of resolution with Sandesha
will continue.

> kernel TransportUtils.createSOAPEnvelope should return empty envelope for empty InputStream
> -------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-4673
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4673
>             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: org.apache.axiom.om.OMException: javax.xml.stream.XMLStreamException:
The root element is required in a well-formed document.
> 	at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:252)
> 	at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(StAXSOAPModelBuilder.java:156)
> 	at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.<init>(StAXSOAPModelBuilder.java:105)
> 	at org.apache.axis2.builder.BuilderUtil.getSOAPBuilder(BuilderUtil.java:677)
> 	at org.apache.axis2.transport.TransportUtils.createDocumentElement(TransportUtils.java:209)
> 	at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:139)
> 	at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:102)
> 	at org.apache.sandesha2.workers.SenderWorker.checkForSyncResponses(SenderWorker.java:610)
> 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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message