【发布时间】:2013-07-31 14:40:48
【问题描述】:
伙计们,
我正在编写一个 WebService 应用程序,但我遇到了一个奇怪的问题。 当我打电话给 W.S 时,我收到此错误:
Exception Description: The object [2013-08-04T12:00:00:00], of class [class java.lang.String], from mapping [org.eclipse.persistence.oxm.mappings.XMLDirectMapping[dateEvent-->dateEvent/text()]] with descriptor [XMLDescriptor(br.com.gvt.armanagementapp.service.to.ReceivableInvoiceIn --> [DatabaseTable(ns0:receivableInvoiceIn)])], could not be converted to [class java.util.Calendar].
但我的 Objet ReceivableInvoiceIn 没有 java.util.Calendar 的属性,但有一个 java.util.Date 的属性
有人遇到过这个问题吗?
我的环境是带有maven的Weblogic12c
【问题讨论】:
-
听起来你需要使用
SimpleDateFormat将字符串解析成Date
标签: java web-services jpa weblogic