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

Andrei Shakirin updated CXF-3305:
---------------------------------

    Comment: was deleted

(was: Test case)

> Request payload as StaxSource: first event is -1
> ------------------------------------------------
>
>                 Key: CXF-3305
>                 URL: https://issues.apache.org/jira/browse/CXF-3305
>             Project: CXF
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.3.1, 2.3.2
>         Environment: Windows
>            Reporter: Andrei Shakirin
>         Attachments: HelloWorldService.zip
>
>
> Use case: provider is implements Provider<Source> interface and uses PAYLOAD 
> mode. By request, I get a StaxSource which wrappers the Stax reader.
> If I go through Stax reader the first event type is -1.
> That disturbs, for example, to directly convert stream reader to event reader 
> :
> XMLEventReader reader = inputFactory.createXMLEventReader()
> Exception: 
> Caused by: java.lang.IllegalStateException: Unrecognized event type -1. at 
> com.ctc.wstx.evt.DefaultEventAllocator.allocate(DefaultEventAllocator.java:259))
> As far as I skip first event, code above works.
> Are there any special reasons to put event (-1) on top of reader?

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to