axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steffen Bartsch (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-3359) Printing well-formed SOAP message causes OMException
Date Thu, 13 Mar 2008 11:19:46 GMT

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

Steffen Bartsch commented on AXIS2-3359:
----------------------------------------

I have tried the last nightly build, but can't get it to work. The request  
 from my test-client arrives
but gets blocked inside of Axis before reaching the critical code.

Attached the Axis log.

Ciao, St.

On Wed, 12 Mar 2008 22:46:46 +0100, Davanum Srinivas (JIRA)  




-- 
-------------------------------------------------------
Steffen Bartsch
IT Telecom S.p.A., Software Factory "Trento"
Via V. Zambra 1, I-38100 Trento - Italy
steffen.bartsch@telecomitalia.it
(+39) 0461/316-155
-------------------------------------------------------
--------------------------------------------------------------------

CONFIDENTIALITY NOTICE

This message and its attachments are addressed solely to the persons above and may contain
confidential information. If you have received the message in error, be informed that any
use of the content hereof is prohibited. Please return it immediately to the sender and delete
the message. Should you have any questions, please contact us by replying to webmaster@telecomitalia.it.

        Thank you

                                        www.telecomitalia.it

--------------------------------------------------------------------
                        


> Printing well-formed SOAP message causes OMException
> ----------------------------------------------------
>
>                 Key: AXIS2-3359
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3359
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: 1.3
>         Environment: windows xp, tomcat  6.0.14, jdk 1.6.0_03
>            Reporter: Steffen Bartsch
>
> I want to access the raw XML message but the function SOAPEnvelope.toString() fails.
> Here is my code to access the raw XML message:
> MessageContext mc = MessageContext.getCurrentMessageContext();
> SOAPEnvelope env = mc.getEnvelope();
> String rawXmlMsg = env.toString();
> The SOAP message:
> <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header><ns2:SOAPHeader
xmlns:ns2="http://www.ESB/SOAP/Header" soapenv:mustUnderstand="0"><ns2:user>bartsch</ns2:user><ns2:password>password</ns2:password><ns2:userU2A>userU2A</ns2:userU2A><ns2:passwordU2A>passwordU2A</ns2:passwordU2A><ns2:userA2A>automa</ns2:userA2A></ns2:SOAPHeader></soapenv:Header><soapenv:Body><ns1:RepairRequest
xmlns:ns1="http://sft.telecomitalia.it/cpc/interfacciaEos" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="ns1:RepairRequest"><tgu>012345678912</tgu><tecnologia>ATM</tecnologia><apoint>X</apoint></ns1:RepairRequest></soapenv:Body></soapenv:Envelope>
> The stacktrace:
> org.apache.axiom.om.OMException: java.util.NoSuchElementException
>         at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:239)
>         at org.apache.axiom.om.impl.llom.OMElementImpl.buildNext(OMElementImpl.java:552)
>         at org.apache.axiom.om.impl.llom.OMElementImpl.getFirstOMChild(OMElementImpl.java:563)
>         at org.apache.axiom.om.impl.llom.OMElementImpl.getChildren(OMElementImpl.java:280)
>         at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:770)
>         at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:756)
>         at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:772)
>         at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:756)
>         at org.apache.axiom.om.impl.llom.OMNodeImpl.serialize(OMNodeImpl.java:345)
>         at org.apache.axiom.om.impl.llom.OMElementImpl.toString(OMElementImpl.java:913)
>         at org.apache.log4j.or.DefaultRenderer.doRender(DefaultRenderer.java:35)
>         at org.apache.log4j.or.RendererMap.findAndRender(RendererMap.java:79)
>         at org.apache.log4j.spi.LoggingEvent.getRenderedMessage(LoggingEvent.java:297)
>         at org.apache.log4j.helpers.PatternParser$BasicPatternConverter.convert(PatternParser.java:403)
>         at org.apache.log4j.helpers.PatternConverter.format(PatternConverter.java:64)
>         at org.apache.log4j.PatternLayout.format(PatternLayout.java:503)
>         at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:301)
>         at org.apache.log4j.WriterAppender.append(WriterAppender.java:159)
>         at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:230)
>         at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:65)
>         at org.apache.log4j.Category.callAppenders(Category.java:203)
>         at org.apache.log4j.Category.forcedLog(Category.java:388)
>         at org.apache.log4j.Category.debug(Category.java:257)
>         at it.telecomitalia.sft.cpc.interfacciaeos.InterfacciaEosCpcSkeleton.getSOAPMessage(InterfacciaEosCpcSkeleton.java:171)
>         at it.telecomitalia.sft.cpc.interfacciaeos.InterfacciaEosCpcSkeleton.repair(InterfacciaEosCpcSkeleton.java:305)
>         at it.telecomitalia.sft.cpc.interfacciaeos.InterfacciaEosCpcMessageReceiverInOut.invokeBusinessLogic(InterfacciaEosCpcMessageReceiverInOut.java:51)

-- 
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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message