在webservice项目中,出现异常:
Invocation of init method failed; nested exception is javax.xml.ws.WebServiceException: org.apache.cxf.service.factory.ServiceConstructionException
仔细查看程序中 一段详细错误信息:
java.sql.Timestamp does not have a no-arg default constructor.
this problem is related to the following location:
at java.sql.Timestamp
at public java.sql.Timestamp
===============网上查看类似解决方法===========================
网上搜索结果为:
class路径里面只有1个asm和1个cglib-NODEP-2.1_3.JAR
准确得说cglib还是在看了willem得回帖后加上去得,唯一得asm-2.2.3.jar也来自cxf。
=======================================================
但是我的程序,之前是正常可以运行、部署 在接口中增加方法不存在jar包冲突导致问题出现
在根据apache官网资料和网上资料指示:apache开源CXF虽然比较小型的简单的的webservice开发,但是有些数据类型支持不好
在项目中使用Apache开源的Services Framework CXF来发布WebService,发布的接口的入参有些类型支持不是很好,比如Timestamp和Map。这个时候我们就需要编写一些适配来类型转换(Timestamp为例:类型转换Timestamp和String)
在Timestamp注解:@XmlJavaTypeAdapter(Timestamp适配对象.class)
Timestamp适配对象中:Timestamp转换为String类型输出,传入String时候,转换以Timestamp类型存入
同理Map也需要转换
分享到:
相关推荐
Nested in org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in URL [file:/E:/cloudwave-core/src/main/webapp/WEB- INF/classes/...
javax.xml.ws.handler.soap javax.xml.ws.http javax.xml.ws.soap javax.xml.ws.spi javax.xml.xpath org.ietf.jgss org.omg.CORBA org.omg.CORBA_2_3 org.omg.CORBA_2_3.portable org.omg.CORBA....
A FilterChain is an object provided by the servlet container to the developer giving a view into the invocation chain of a filtered request for a resource. FilterConfig - interface javax.servlet....
解决axis2-CodegenWizardPlugin的BUG,java.lang.reflect.InvocationTargetException 带有相关jar 包及相关文件
InvocationTargetException, NoSuchMethodException, SecurityException, ClassNotFoundException, IllegalStateException, IllegalBlockSizeException, BadPaddingException, NoSuchPaddingException, ...
解决Android Studio编译错误问题,解决编译错误信息:kotlin.gradle.internal.KaptWithoutKotlincTask$KaptExecutionWorkAction InvocationTargetException (no error message)
faultString: java.lang.reflect.InvocationTargetException faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace: AxisFault faultCode: {...
在web开发中,使用java发送email,需要加入两个jar包。在普通的java程序中可能不需要加入。 但在web中没加入会抛 javax.mail.Authenticator not Founder或java.lang.reflect.InvocationTargetException
NULL 博文链接:https://kdisk-sina-com.iteye.com/blog/258942
at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:79) at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:114) at org.codehaus.xfire.client.Client.invoke(Client.java:336) ...
* utility method to get an icon from the resources of this class * @param name the name of the icon * @return the icon, or null if the icon wasn't found. */ public Icon getIcon(String name) { ...
JDK9-JSE- Java Remote Method Invocation API Guide-2
MyEclipse6.0下axis2插件的安装! 解决java.lang.reflect.InvocationTargetException本人亲自测试,完美使用!
JDK10-Java Platform, Standard Edition ,Java Remote Method Invocation API Guide-2
Provides implementations of the javax.security.auth.* interfaces and various authentication modules. jdk.security.jgss Defines Java extensions to the GSS-API and an implementation of the SASL GSSAPI ...
MyEclipse axis2 wsdl java.lang.reflect.invocationtargetexception code gen 大家要注意一定要仔细,这个问题基本上缺少包引起的,而且一定要clean 如果需要axis2插件 以及这个plugins中的包在我的其他资源里面有
3.2 Function Invocation........ 76 3.3 Function Definition........ 78 3.4 The return Statement........ . 79 3.5 Function Prototypes........ . . . 80 3.6 Call-By-Value......... . 81 3.7 Recursion.........
This method is called before the invocation of each test method in the class. } - (void)tearDown { // Put teardown code here. This method is called after the invocation of each test method in the ...
scrcpy投屏 AssertionError: java.lang.reflect.InvocationTargetException 安装这个版本的scrcpy即可。