Hi XMLBeansJSONProvider is not easy to customize at the moment, so you may want to create a custom provider, using the same code XMLBeansJSONProvider does in its writeTo and adding xsw.writeStartDocument(); after the write has been created cheers, Sergey
On Tue, Jun 15, 2010 at 3:54 PM, Reed, Nate <[email protected]> wrote: > I'm running into a problem in CXF marshalling a JSON response document > using the XMLBeansJSONProvider and Jettison. It seems to be related to the > Woodstox STAX implementation. > > > > It looks like the MappedXMLStreamWriter expects a START_DOCUMENT event that > never occurs, as this line causes a NullPointerException: > > > > public void writeEndElement() throws XMLStreamException { > > if (stack.isEmpty()) throw new XMLStreamException("Too many > closing tags."); > > à current = stack.pop().withProperty(current); > > } > > > > Since it looks like a problem with this STAX implementation, is there 1) a > recommended STAX implementation to use?, and 2) a way to configure this in > CXF? > > > > Thanks, > > Nate > > > >
