cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrei Shakirin (JIRA)" <>
Subject [jira] Created: (CXF-3305) Request payload as StaxSource: first event is -1
Date Thu, 03 Feb 2011 13:25:28 GMT
Request payload as StaxSource: first event is -1

                 Key: CXF-3305
             Project: CXF
          Issue Type: Bug
          Components: Core
    Affects Versions: 2.3.2, 2.3.1
         Environment: Windows
            Reporter: Andrei Shakirin

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()
Caused by: java.lang.IllegalStateException: Unrecognized event type -1. at com.ctc.wstx.evt.DefaultEventAllocator.allocate(

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:


View raw message