Could not parse xs:dateTime: Format.parseObject(String) failed
来源:互联网 发布:用c语言打印出杨辉三角 编辑:程序博客网 时间:2024/06/06 02:19
xfire作为webService客户端开发框架时,采用日期格式会碰到日期格式化异常。 如下。
解决方法:检查服务器端Module的日期类型,将其改成java.util.Date
org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: Could not parse xs:dateTime: Format.parseObject(String) failed
org.codehaus.xfire.fault.XFireFault: Could not parse xs:dateTime: Format.parseObject(String) failed
at org.codehaus.xfire.aegis.type.basic.CalendarType.readObject(CalendarType.java:34)
注:java.util.Date和java.sql.Date的区别及应用
java.util.Date 是 java.sql.Date 的父类(注意拼写)
转换关系是
java.sql.Date date=new Java.sql.Date();
java.util.Date d=new java.util.Date (date.getTime());
反过来是一样的
org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: Could not parse xs:dateTime: Format.parseObject(String) failed
org.codehaus.xfire.fault.XFireFault: Could not parse xs:dateTime: Format.parseObject(String) failed
- Could not parse xs:dateTime: Format.parseObject(String) failed
- xfire 时: Could not parse xs:dateTime: Format.parseObject(String) failed
- DateTime Format String
- datetime string format
- string.Format DateTime
- Object of class DateTime could not be converted to string
- hibernate Could not parse 问题
- Could not parse POM gradle
- String Format for DateTime [C#]
- UnexpectedValueException Could not parse version constraint ^1.0.2: Invalid version string “^1.0.2”
- Settings: Could not parse struts.locale setting...
- Could not parse application stylesheet 这是什么原因
- Could not parse configuration: /hibernate.cfg.xml
- Could not parse configuration /hibernate.cfg.xml
- Could not parse stylesheet of widget
- Could not parse configuration: /hibernate.cfg.xml
- Could not parse configuration: /hibernate.cfg.xml
- PL/SQL Beautifier could not parse text
- iphone内存检测
- libxml2在linux下的使用
- The prefix "mvc" for element "mvc:annotation-driven" is not bound 的解决方法
- 基于OGNL的类型转换
- Codeforces Round #124 (Div. 2)
- Could not parse xs:dateTime: Format.parseObject(String) failed
- android打开系统联系人界面
- phpDocumentor基础
- 双缓冲区实现
- log4j自定义级别并将新级别日志信息输出到指定带日期格式的log文件
- xfire中wsdl中参数为in0,in1解决方法
- showModalDialog和dialogArguments
- xfire整合spring时引入的servlet
- 李开复先生感言什么是真正的点子或创意