cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Sahlbach (JIRA)" <>
Subject [jira] Created: (CXF-2051) Exception in REST Service creates not-well-formed xml responses
Date Thu, 19 Feb 2009 11:22:01 GMT
Exception in REST Service creates not-well-formed xml responses

                 Key: CXF-2051
             Project: CXF
          Issue Type: Bug
          Components: JAXB Databinding
    Affects Versions: 2.2
            Reporter: Andreas Sahlbach

I've got this with SOAP and REST services using JAXB Databinding. In case of errors during
the databinding phase, I get not well-formed xml like this:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Company><addresses><address1Ntl>street</address1Ntl><cityNtl>city</cityNtl><countryISO>276</countryISO><type>Extern</type><zipCity>69250</zipCity></addresses><ns1:XMLFault
xmlns:ns1=""><ns1:faultstring xmlns:ns1="">org.hibernate.LazyInitializationException:
failed to lazily initialize a collection of role:,
no session or session was closed</ns1:faultstring></ns1:XMLFault>

So the already created beginning of the response is not replaced but appended by the fault,
creating a not usable response.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message