Two suggestions I would have: 1) Update to 2.2.6 or 2.2.7. 2) Make sure you are picking up Woodstox parser and not the Sun parser built into the JDK.
The Sun parser built into the JDK is known not to be thread safe so it may be trying to parse the wrong data or trying to share a buffer or something. That would be why it would work fine later. Just depends if other requests are going through at the same time. Woodstox is known to be thread safe. Plus, it's much faster than the sun parser so that would be a good thing as well. We did do some work in 2.2.4 (I think) and more in 2.2.6/7 to try and work around the thread safety issue. Thus, updating to 2.2.7 may also work, but using Woodstox is still the recommended parser due to the speed. Dan On Monday 19 April 2010 9:38:47 am Janvier F wrote: > Hi there, > > This email to expose you an issue I am actually facing using JaxB2 with > CXF. > > I have developed an application using cxf version 2.2.3, under java 1.5. > When deploying on similar Jboss with the same verion of java, things go > fine. But when the server run un Open JDK, the unmarshalling of the soap > request is not always successful. I have then got this kind of error: > <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> > <soap:Body> > <soap:Fault> > <faultcode>soap:Client</faultcode> > <faultstring>Unmarshalling Error: Unexpected character '<' > (code 60) excepted space, or '>' or "/>" at [row,col {unknown-source}]: > [19,26]</faultstring> > </soap:Fault> > </soap:Body> > </soap:Envelope> > > I would like to note that after some time, the same request get through > without any change. Also, when I run the same request on my installation > under java 1.5, things go fine. > > This issue seems really bizare to me. I expect someone here has an > explanation as to what is going wrong. I notice the following from the web > site: JDK 1.6 incorporates the JAXB reference implementation. However, it > incorporates an old version of the RI. CXF does not support this > version. As of 1.6_04, this is easy to deal with: you must put the > versions of JAXB RI (the 'impl' and 'xjc' jars) that we include with > CXF in your classpath. As of this writing, these are version 2.1.6. > > Is the same applies for open JDK? > > Well, than you in advance for any tip or idea. > > With kindest regards, > > Maj > > > _________________________________________________________________ > Consultez vos emails Orange, Gmail, Yahoo!, Free ... directement depuis > HOTMAIL ! http://www.windowslive.fr/hotmail/agregation/ -- Daniel Kulp [email protected] http://dankulp.com/blog
