cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pat Turner (JIRA)" <>
Subject [jira] [Commented] (CXF-3483) JSONProvider: Don't force attributes to have @ if users doesn't want them too
Date Tue, 03 May 2011 10:38:03 GMT


Pat Turner commented on CXF-3483:

Update on this:
When I set the attributesAsElements on org.apache.cxf.jaxrs.provider.JAXBElementProvider,
nothing but the root element is rendered.

When I set the attributesAsElements on org.apache.cxf.jaxrs.provider.JSONProvider, I get the
following stacktrace:

11:32:28,200 INFO  [STDOUT] 11:32:28,200 WARN  [AbstractJAXBProvider] javax.xml.bind.MarshalException
 - with linked exception:
[ Missing some closing tags.]
	at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(
	at com.sun.xml.bind.v2.runtime.MarshallerImpl.marshal(
	at org.apache.cxf.jaxrs.provider.JSONProvider.marshal(
	at org.apache.cxf.jaxrs.provider.JSONProvider.marshalCollection(
	at org.apache.cxf.jaxrs.provider.JSONProvider.writeTo(
	at org.apache.cxf.jaxrs.interceptor.JAXRSOutInterceptor.serializeMessage(
	at org.apache.cxf.jaxrs.interceptor.JAXRSOutInterceptor.processResponse(
	at org.apache.cxf.jaxrs.interceptor.JAXRSOutInterceptor.handleMessage(
	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(
	at org.apache.cxf.interceptor.OutgoingChainInterceptor.handleMessage(
Caused by: Missing some closing tags.
	at org.codehaus.jettison.mapped.MappedXMLStreamWriter.writeEndDocument(
	at org.apache.cxf.staxutils.DelegatingXMLStreamWriter.writeEndDocument(
	at org.apache.cxf.staxutils.DelegatingXMLStreamWriter.writeEndDocument(
	at com.sun.xml.bind.v2.runtime.output.XMLStreamWriterOutput.endDocument(
	at com.sun.xml.bind.v2.runtime.XMLSerializer.endDocument(

> JSONProvider: Don't force attributes to have @ if users doesn't want them too
> -----------------------------------------------------------------------------
>                 Key: CXF-3483
>                 URL:
>             Project: CXF
>          Issue Type: Improvement
>          Components: JAX-RS
>    Affects Versions: 2.3.4
>            Reporter: Pat Turner
> Jettison provides a configuration option to omit the '@' from attributes:
>   org.codehaus.jettison.mapped.Configuration.setSupressAtAttributes(boolean)
>   see Jettison Jira:
> org.apache.cxf.jaxrs.provider.JSONProvider should also expose this property.

This message is automatically generated by JIRA.
For more information on JIRA, see:

View raw message