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




Reply via email to