[ 
https://issues.apache.org/jira/browse/WSCOMMONS-561?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Klaus updated WSCOMMONS-561:
-----------------------------------

    Attachment: EmptyTags.zip

Attached a project containing two unit tests illustrating the behavior (it is a 
maven build).

I tried to simulate the Spring-WS environment as good as possible so the setup 
may look a bit clumsy ...

> IllegalStateException SwitchingWrapper.getTextFromNode on empty Tag
> -------------------------------------------------------------------
>
>                 Key: WSCOMMONS-561
>                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-561
>             Project: WS-Commons
>          Issue Type: Bug
>          Components: AXIOM
>    Affects Versions: Axiom 1.2.9
>            Reporter: Robert Klaus
>         Attachments: EmptyTags.zip
>
>
> I'm using Spring Web Services in combination with the streaming api and 
> axiom-api and axiom-impl. I have some JUnit Testcases that parse some sample 
> webservice requests. Using Axiom 1.2.8 these tests pass. 
> After upgrading to 1.2.9 a tests fails with an IllegalStateException in 
> SwitchingWrapper#getTextFromNode. The xml soap body contains several empty 
> tags.
> When debugging I saw that currentEvent had the value 2, which is not covered 
> by the switch and thus the IllegalStateException. My guess is that it is the 
> constant END_ELEMENT.

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

Reply via email to