I was able to create a small sample which demonstrates the bug. I've submitted it into JIRA.
https://issues.apache.org/jira/browse/CXF-1602 It only happens if you have multiple schema types mapped to the same java type. It may be a bug with jaxb-impl and not CXF, I don't know enough about the JAXB spec to say whether or not this behavior is compliant with the spec. - Aaron -----Original Message----- From: Daniel Kulp [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 20, 2008 12:11 PM To: [email protected] Subject: Re: CXF 2.1 incompatible with jaxb-impl 2.1.6? Is there any way you can create a small sample project that demonstrates this? This might be a bug in the DataTypeAdapter code somehow, but I'm not really sure how that's possible as the code there is VERY simple. It looks like jaxb is sending a null into public static String printDateTime(Date dt) and I'm not sure why it would be doing that. An example would be a huge help. Dan On May 20, 2008, at 11:12 AM, Pieper, Aaron (SAIC) wrote: > I'm encountering the following exception using CXF 2.1 with JAXB-impl > 2.1.6: > > > > Caused by: java.lang.NullPointerException > > at java.util.Calendar.setTime(Calendar.java:1032) > > at > org > .apache.cxf.tools.common.DataTypeAdapter.printDateTime(DataTypeAdapte > r.java:52) > > at gen.jdnets.ds.Adapter2.marshal(Adapter2.java:17) > > at gen.jdnets.ds.Adapter2.marshal(Adapter2.java:7) > > at > com > .sun.xml.bind.v2.runtime.reflect.AdaptedAccessor.get(AdaptedAccessor. > java:31) > > ... 52 more > > > > The same problem exists all the way back to jaxb-impl v2.1, but the > problem goes away if I regress to jaxb-impl 2.0.3. Should I report > this > in JIRA? I read that CXF 2.1 was supposed to be compatible with JAXB > 2.1. > > > > - Aaron > --- Daniel Kulp [EMAIL PROTECTED] http://www.dankulp.com/blog
