You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Gabriel Guardincerri <gg...@gmail.com> on 2009/06/26 18:42:33 UTC
Using LoggingInInterceptor makes a JAX-RS proxy clients crash
Hi,
We are using a JAX-RS proxy client to invoke servicies. We are using the
default data binding (JAXB). And when we turn on the LoggingInInterceptor we
get this error
"JAXBException occurred : Premature end of file."
Debugging a little we notice that CXF tries to parse the xml using an
Inputstream, and we suppose that it was already consumed by the
LoggingInInterceptor, so that's way there is nothing more to read, and the
parser gets an end of file.
Should I create a jira issue?
--
View this message in context: http://www.nabble.com/Using-LoggingInInterceptor-makes-a-JAX-RS-proxy-clients-crash-tp24223626p24223626.html
Sent from the cxf-user mailing list archive at Nabble.com.
RE: Using LoggingInInterceptor makes a JAX-RS proxy clients crash
Posted by Sergey Beryozkin <se...@iona.com>.
This patch has been applied now (thanks, Eamonn) to trunk/2.2.x-fixes
cheers, Sergey
Sergey Beryozkin-2 wrote:
>
> Hi,
>
> I'll start working on Eamonn's patches either on weekends or early next
> week. It's a bit late today and I'm a bit concerned about not breaking
> things :-)
>
> Thanks, Sergey
>
> -----Original Message-----
> From: Gabriel Guardincerri [mailto:gguardin@gmail.com]
> Sent: 26 June 2009 18:20
> To: users@cxf.apache.org
> Subject: RE: Using LoggingInInterceptor makes a JAX-RS proxy clients
> crash
>
>
> wau.... that's what I call a fast response!!! Thanks!!!
>
> I'm using 2.2.2, so no problem there.
>
>
> Eamonn Dwyer wrote:
>>
>> Hi Gabriel
>> Would sounds like you need the patch I put in today
>>
> https://issues.apache.org/jira/secure/ManageAttachments.jspa?id=12428957
>>
>> The patch hasn't been approved and applied yet.
>>
>> Hope it helps
>> Eamonn
>>
>>
>> -----Original Message-----
>> From: Gabriel Guardincerri [mailto:gguardin@gmail.com]
>> Sent: 26 June 2009 17:43
>> To: users@cxf.apache.org
>> Subject: Using LoggingInInterceptor makes a JAX-RS proxy clients crash
>>
>>
>> Hi,
>>
>> We are using a JAX-RS proxy client to invoke servicies. We are using
> the
>> default data binding (JAXB). And when we turn on the
>> LoggingInInterceptor we
>> get this error
>>
>> "JAXBException occurred : Premature end of file."
>>
>> Debugging a little we notice that CXF tries to parse the xml using an
>> Inputstream, and we suppose that it was already consumed by the
>> LoggingInInterceptor, so that's way there is nothing more to read, and
>> the
>> parser gets an end of file.
>>
>> Should I create a jira issue?
>> --
>> View this message in context:
>>
> http://www.nabble.com/Using-LoggingInInterceptor-makes-a-JAX-RS-proxy-cl
>> ients-crash-tp24223626p24223626.html
>> Sent from the cxf-user mailing list archive at Nabble.com.
>>
>>
>>
>
> --
> View this message in context:
> http://www.nabble.com/Using-LoggingInInterceptor-makes-a-JAX-RS-proxy-cl
> ients-crash-tp24223626p24223916.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>
>
>
--
View this message in context: http://www.nabble.com/Using-LoggingInInterceptor-makes-a-JAX-RS-proxy-clients-crash-tp24223626p24245602.html
Sent from the cxf-user mailing list archive at Nabble.com.
RE: Using LoggingInInterceptor makes a JAX-RS proxy clients crash
Posted by Eamonn Dwyer <EA...@progress.com>.
I ran into a similar issue this week with my own interceptor which was
consuming the stream data. The patch fixed that issue so hope it fixes
your issue too
-----Original Message-----
From: Gabriel Guardincerri [mailto:gguardin@gmail.com]
Sent: 26 June 2009 18:20
To: users@cxf.apache.org
Subject: RE: Using LoggingInInterceptor makes a JAX-RS proxy clients
crash
wau.... that's what I call a fast response!!! Thanks!!!
I'm using 2.2.2, so no problem there.
Eamonn Dwyer wrote:
>
> Hi Gabriel
> Would sounds like you need the patch I put in today
>
https://issues.apache.org/jira/secure/ManageAttachments.jspa?id=12428957
>
> The patch hasn't been approved and applied yet.
>
> Hope it helps
> Eamonn
>
>
> -----Original Message-----
> From: Gabriel Guardincerri [mailto:gguardin@gmail.com]
> Sent: 26 June 2009 17:43
> To: users@cxf.apache.org
> Subject: Using LoggingInInterceptor makes a JAX-RS proxy clients crash
>
>
> Hi,
>
> We are using a JAX-RS proxy client to invoke servicies. We are using
the
> default data binding (JAXB). And when we turn on the
> LoggingInInterceptor we
> get this error
>
> "JAXBException occurred : Premature end of file."
>
> Debugging a little we notice that CXF tries to parse the xml using an
> Inputstream, and we suppose that it was already consumed by the
> LoggingInInterceptor, so that's way there is nothing more to read, and
> the
> parser gets an end of file.
>
> Should I create a jira issue?
> --
> View this message in context:
>
http://www.nabble.com/Using-LoggingInInterceptor-makes-a-JAX-RS-proxy-cl
> ients-crash-tp24223626p24223626.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>
>
>
--
View this message in context:
http://www.nabble.com/Using-LoggingInInterceptor-makes-a-JAX-RS-proxy-cl
ients-crash-tp24223626p24223916.html
Sent from the cxf-user mailing list archive at Nabble.com.
RE: Using LoggingInInterceptor makes a JAX-RS proxy clients crash
Posted by Sergey Beryozkin <sb...@progress.com>.
Hi,
I'll start working on Eamonn's patches either on weekends or early next
week. It's a bit late today and I'm a bit concerned about not breaking
things :-)
Thanks, Sergey
-----Original Message-----
From: Gabriel Guardincerri [mailto:gguardin@gmail.com]
Sent: 26 June 2009 18:20
To: users@cxf.apache.org
Subject: RE: Using LoggingInInterceptor makes a JAX-RS proxy clients
crash
wau.... that's what I call a fast response!!! Thanks!!!
I'm using 2.2.2, so no problem there.
Eamonn Dwyer wrote:
>
> Hi Gabriel
> Would sounds like you need the patch I put in today
>
https://issues.apache.org/jira/secure/ManageAttachments.jspa?id=12428957
>
> The patch hasn't been approved and applied yet.
>
> Hope it helps
> Eamonn
>
>
> -----Original Message-----
> From: Gabriel Guardincerri [mailto:gguardin@gmail.com]
> Sent: 26 June 2009 17:43
> To: users@cxf.apache.org
> Subject: Using LoggingInInterceptor makes a JAX-RS proxy clients crash
>
>
> Hi,
>
> We are using a JAX-RS proxy client to invoke servicies. We are using
the
> default data binding (JAXB). And when we turn on the
> LoggingInInterceptor we
> get this error
>
> "JAXBException occurred : Premature end of file."
>
> Debugging a little we notice that CXF tries to parse the xml using an
> Inputstream, and we suppose that it was already consumed by the
> LoggingInInterceptor, so that's way there is nothing more to read, and
> the
> parser gets an end of file.
>
> Should I create a jira issue?
> --
> View this message in context:
>
http://www.nabble.com/Using-LoggingInInterceptor-makes-a-JAX-RS-proxy-cl
> ients-crash-tp24223626p24223626.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>
>
>
--
View this message in context:
http://www.nabble.com/Using-LoggingInInterceptor-makes-a-JAX-RS-proxy-cl
ients-crash-tp24223626p24223916.html
Sent from the cxf-user mailing list archive at Nabble.com.
RE: Using LoggingInInterceptor makes a JAX-RS proxy clients crash
Posted by Gabriel Guardincerri <gg...@gmail.com>.
wau.... that's what I call a fast response!!! Thanks!!!
Eamonn Dwyer wrote:
>
> Hi Gabriel
> Would sounds like you need the patch I put in today
> https://issues.apache.org/jira/secure/ManageAttachments.jspa?id=12428957
>
> The patch hasn't been approved and applied yet.
>
> Hope it helps
> Eamonn
>
>
> -----Original Message-----
> From: Gabriel Guardincerri [mailto:gguardin@gmail.com]
> Sent: 26 June 2009 17:43
> To: users@cxf.apache.org
> Subject: Using LoggingInInterceptor makes a JAX-RS proxy clients crash
>
>
> Hi,
>
> We are using a JAX-RS proxy client to invoke servicies. We are using the
> default data binding (JAXB). And when we turn on the
> LoggingInInterceptor we
> get this error
>
> "JAXBException occurred : Premature end of file."
>
> Debugging a little we notice that CXF tries to parse the xml using an
> Inputstream, and we suppose that it was already consumed by the
> LoggingInInterceptor, so that's way there is nothing more to read, and
> the
> parser gets an end of file.
>
> Should I create a jira issue?
> --
> View this message in context:
> http://www.nabble.com/Using-LoggingInInterceptor-makes-a-JAX-RS-proxy-cl
> ients-crash-tp24223626p24223626.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>
>
>
--
View this message in context: http://www.nabble.com/Using-LoggingInInterceptor-makes-a-JAX-RS-proxy-clients-crash-tp24223626p24223916.html
Sent from the cxf-user mailing list archive at Nabble.com.
RE: Using LoggingInInterceptor makes a JAX-RS proxy clients crash
Posted by Eamonn Dwyer <EA...@progress.com>.
Hi Gabriel
Would sounds like you need the patch I put in today
https://issues.apache.org/jira/secure/ManageAttachments.jspa?id=12428957
The patch hasn't been approved and applied yet.
Hope it helps
Eamonn
-----Original Message-----
From: Gabriel Guardincerri [mailto:gguardin@gmail.com]
Sent: 26 June 2009 17:43
To: users@cxf.apache.org
Subject: Using LoggingInInterceptor makes a JAX-RS proxy clients crash
Hi,
We are using a JAX-RS proxy client to invoke servicies. We are using the
default data binding (JAXB). And when we turn on the
LoggingInInterceptor we
get this error
"JAXBException occurred : Premature end of file."
Debugging a little we notice that CXF tries to parse the xml using an
Inputstream, and we suppose that it was already consumed by the
LoggingInInterceptor, so that's way there is nothing more to read, and
the
parser gets an end of file.
Should I create a jira issue?
--
View this message in context:
http://www.nabble.com/Using-LoggingInInterceptor-makes-a-JAX-RS-proxy-cl
ients-crash-tp24223626p24223626.html
Sent from the cxf-user mailing list archive at Nabble.com.