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

 

Reply via email to