Re: Aw: Re: Re: Re: Re: Re: Re: Re: NPE with message body writer during load

2015-09-29 Thread Sergey Beryozkin
Re: Aw: Re: Re: Re: Re: Re: Re: NPE with message body writer during load Hi Veit I knew your test would catch any typos :-) Seriously though, even though I did this embarrassing typo in a hurry, I'd not close CXF-6599 without getting a confirmation, either from yourself or otherwise from m

Aw: Re: Re: Re: Re: Re: Re: Re: NPE with message body writer during load

2015-09-29 Thread Veit Guna
Hi Sergey.   Tested the latest SNAPSHOT - works for me :)!   Cheers Veit     Gesendet: Montag, 28. September 2015 um 23:46 Uhr Von: "Sergey Beryozkin" An: users@cxf.apache.org Betreff: Re: Aw: Re: Re: Re: Re: Re: Re: NPE with message body writer during load Hi Veit I knew your test w

Re: Aw: Re: Re: Re: Re: Re: Re: NPE with message body writer during load

2015-09-28 Thread Sergey Beryozkin
main resource interface and several sub resource interfaces. I hope that helps :). Regards, Veit Gesendet: Montag, 21. September 2015 um 12:28 Uhr Von: "Sergey Beryozkin" An: users@cxf.apache.org Betreff: Re: Aw: Re: Re: Re: Re: NPE with message body writer during load Hi Veit Many tha

Aw: Re: Re: Re: Re: Re: Re: NPE with message body writer during load

2015-09-28 Thread Veit Guna
I have a main resource interface and several sub resource > interfaces. > > I hope that helps :). > > Regards, > Veit > > > > Gesendet: Montag, 21. September 2015 um 12:28 Uhr > Von: "Sergey Beryozkin" > An: users@cxf.apache.org > Betreff: Re: Aw: Re: Re:

Re: Aw: Re: Re: Re: Re: Re: NPE with message body writer during load

2015-09-24 Thread Sergey Beryozkin
rfaces. I hope that helps :). Regards, Veit Gesendet: Montag, 21. September 2015 um 12:28 Uhr Von: "Sergey Beryozkin" An: users@cxf.apache.org Betreff: Re: Aw: Re: Re: Re: Re: NPE with message body writer during load Hi Veit Many thanks for the time you spent on identifying the

Aw: Re: Re: Re: Re: Re: NPE with message body writer during load

2015-09-21 Thread Veit Guna
uot;Sergey Beryozkin" An: users@cxf.apache.org Betreff: Re: Aw: Re: Re: Re: Re: NPE with message body writer during load Hi Veit Many thanks for the time you spent on identifying the issue. Excluding the primitives can be done. One more thing, can you please let me know: do you create a proxy

Re: Aw: Re: Re: Re: Re: NPE with message body writer during load

2015-09-21 Thread Sergey Beryozkin
er 2015 um 18:15 Uhr Von: "Daniel Kulp" An: users@cxf.apache.org Betreff: Re: Re: Re: Re: NPE with message body writer during load Can you put that code back in but then add a println or log or something in the two catch statements that are returning null and see if it’s now triggering

Aw: Re: Re: Re: Re: NPE with message body writer during load

2015-09-21 Thread Veit Guna
15 Uhr Von: "Daniel Kulp" An: users@cxf.apache.org Betreff: Re: Re: Re: Re: NPE with message body writer during load Can you put that code back in but then add a println or log or something in the two catch statements that are returning null and see if it’s now triggering those clauses? If it

Re: NPE with message body writer during load

2015-09-18 Thread Sergey Beryozkin
n: "Sergey Beryozkin" An: users@cxf.apache.org Betreff: Re: Aw: Re: Re: Re: NPE with message body writer during load Hi I'm not seeing anything immediately obvious from: https://issues.apache.org/jira/browse/CXF-6508?jql=project%20%3D%20CXF%20AND%20fixVersion%20%3D%203.0.6[https://issues.a

Re: Re: Re: Re: NPE with message body writer during load

2015-09-18 Thread Daniel Kulp
loaded classes is a solution? > > I'll do some additional tests though... > > Thanks > Veit > -- > > > Gesendet: Freitag, 18. September 2015 um 14:36 Uhr > Von: "Sergey Beryozkin" > An: users@cxf.apache.org > Betreff: Re: Aw: Re: Re: Re:

Aw: Re: Re: Re: Re: Re: NPE with message body writer during load

2015-09-18 Thread Veit Guna
can't live with that in production ;).   Thanks Veit --   Gesendet: Freitag, 18. September 2015 um 17:32 Uhr Von: "Sergey Beryozkin" An: users@cxf.apache.org Betreff: Re: Aw: Re: Re: Re: Re: NPE with message body writer during load Hi Veit That is quite impressive, great analysis.

Re: Aw: Re: Re: Re: Re: NPE with message body writer during load

2015-09-18 Thread Sergey Beryozkin
Hi Veit That is quite impressive, great analysis. I see Dan comments that is needed to avoid OSGI-related issues - so I think we can start from limiting that block of code to OSGI (if possible) and then see if it can be optimized. We are voting for CXF 3.1.3 but 3.0.7 has not been built yet -

Aw: Re: Re: Re: Re: NPE with message body writer during load

2015-09-18 Thread Veit Guna
g, 18. September 2015 um 14:36 Uhr Von: "Sergey Beryozkin" An: users@cxf.apache.org Betreff: Re: Aw: Re: Re: Re: NPE with message body writer during load Hi I'm not seeing anything immediately obvious from: https://issues.apache.org/jira/browse/CXF-6508?jql=project%20%3D%20CXF%20AND%20fixV

Re: Aw: Re: Re: Re: NPE with message body writer during load

2015-09-18 Thread Sergey Beryozkin
ng on. Thanks Veit -- Gesendet: Freitag, 18. September 2015 um 13:15 Uhr Von: "Sergey Beryozkin" An: users@cxf.apache.org Betreff: Re: Aw: Re: Re: NPE with message body writer during load Hi Veit On 18/09/15 12:01, Veit Guna wrote: Hi Sergey. It seems the "problems" came in wit

Aw: Re: Re: Re: NPE with message body writer during load

2015-09-18 Thread Veit Guna
eryozkin" An: users@cxf.apache.org Betreff: Re: Aw: Re: Re: NPE with message body writer during load Hi Veit On 18/09/15 12:01, Veit Guna wrote: > Hi Sergey. > > It seems the "problems" came in with 3.0.6 - not with the ThreadLocal fix you > did in 3.0.7-SNAPSHOT :). >

Re: Aw: Re: Re: NPE with message body writer during load

2015-09-18 Thread Sergey Beryozkin
Thanks Veit Gesendet: Freitag, 18. September 2015 um 11:15 Uhr Von: "Sergey Beryozkin" An: users@cxf.apache.org Betreff: Re: Aw: Re: NPE with message body writer during load Hi Veit Thanks for this thorough analysis. The fix I did does not introduce some state. Are you using 2.0 API ? I t

Aw: Re: Re: NPE with message body writer during load

2015-09-18 Thread Veit Guna
it    Gesendet: Freitag, 18. September 2015 um 11:15 Uhr Von: "Sergey Beryozkin" An: users@cxf.apache.org Betreff: Re: Aw: Re: NPE with message body writer during load Hi Veit Thanks for this thorough analysis. The fix I did does not introduce some state. Are you using 2.0 API ? I think

Re: Aw: Re: NPE with message body writer during load

2015-09-18 Thread Sergey Beryozkin
.png http://s17.postimg.org/sv7inhwv3/cxf307.png Gesendet: Freitag, 18. September 2015 um 09:04 Uhr Von: "Veit Guna" An: users@cxf.apache.org Betreff: Aw: Re: NPE with message body writer during load Hi Sergey. Thanks for the fix. Now I had time to test the new 3.0.7-SNAPSHOT ver

Re: Aw: Re: NPE with message body writer during load

2015-09-18 Thread Sergey Beryozkin
6.png http://s17.postimg.org/sv7inhwv3/cxf307.png Gesendet: Freitag, 18. September 2015 um 09:04 Uhr Von: "Veit Guna" An: users@cxf.apache.org Betreff: Aw: Re: NPE with message body writer during load Hi Sergey. Thanks for the fix. Now I had time to test the new 3.0.7-SNAPSHOT vers

Aw: Re: NPE with message body writer during load

2015-09-18 Thread Veit Guna
:04 Uhr Von: "Veit Guna" An: users@cxf.apache.org Betreff: Aw: Re: NPE with message body writer during load Hi Sergey.   Thanks for the fix.   Now I had time to test the new 3.0.7-SNAPSHOT version. Although I couldn't reproduce the error again, I encountered other side effects.   It

Aw: Re: NPE with message body writer during load

2015-09-18 Thread Veit Guna
uot;Sergey Beryozkin" An: users@cxf.apache.org Betreff: Re: NPE with message body writer during load This particular issue has been addressed: https://issues.apache.org/jira/browse/CXF-6593 However this is a short term solution and a more effective solution would need to be done in a new t

Re: NPE with message body writer during load

2015-09-15 Thread Sergey Beryozkin
This particular issue has been addressed: https://issues.apache.org/jira/browse/CXF-6593 However this is a short term solution and a more effective solution would need to be done in a new trunk. The way the thread local proxies are managed is somewhat complex in CXF JAX-RS - partially becaus

Re: NPE with message body writer during load

2015-09-10 Thread Sergey Beryozkin
FYI, two more similar issues have been reported in the last couple of days. I start suspecting it might be a WeakHashMap optimization I did. In TomEE, the guys wanted to do a clean refresh of CXF (JAX-RS) module and the fact the bus was holding strong references to CXF context implementations

Re: NPE with message body writer during load

2015-09-02 Thread Sergey Beryozkin
Hi When CXF JAX-RS injects thread-local proxies into providers/resource classes it keeps field and method proxy maps on the bus. I recall there was a problem in one of the complex setups where there were many endpoints with multiple Jackson instances (as opposed to a single instance shared be

NPE with message body writer during load

2015-09-02 Thread Veit Guna
Hi.   I'm using CXF 3.0.4 in client proxy mode, using my server REST interfaces. In addition I'm using the httpclient cxf module to workaround earlier problems with concurrency under load (as suggested by Sergey in a post some months ago here on the mailing list).   For Multipart handling I'm usi