问题描述
我有一些字段,其中 xsd 将其作为 xs:dateTime
由于某种原因,在编组时,它存储如下。
<dateIssuedField class="org.apache.xerces.jaxp.datatype.XMLGregorianCalendarImpl" resolves-to="org.apache.xerces.jaxp.datatype.SerializedXMLGregorianCalendar">
<lexicalValue>2021-08-06T00:00:00</lexicalValue>
</dateIssuedField>
我在下面收到此错误。
XStream unmarshalling failed.
com.thoughtworks.xstream.converters.ConversionException: Cannot construct type
---- Debugging information ----
message : Cannot construct type
cause-exception : java.lang.InstantiationException
cause-message : javax.xml.datatype.XMLGregorianCalendar
construction-type : javax.xml.datatype.XMLGregorianCalendar
class : javax.xml.datatype.XMLGregorianCalendar
required-type : javax.xml.datatype.XMLGregorianCalendar
converter-type : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
知道如何编写转换器来处理这个问题吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)