javax.xml.ws.soap.SOAPFaultException: This class does not support SAAJ 1.1

调用 远程的 由 CXF 写 的 WebService,Tomcat下 可以正常运行,但是部署到 Weblogic10.3.4 下就报 不支持 SAAJ1.1.

] Root cause of ServletException.
javax.xml.ws.soap.SOAPFaultException: This class does not support SAAJ 1.1
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:14
5)
at $Proxy154.getAreasByParentId(Unknown Source)
at com.ent.ws.service.impl.UserServiceImpl.getAreasByParentId(UserServic
eImpl.java:119)
at jsp_servlet._themes._uc.__regcompany._jspService(__regcompany.java:19
0)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
Truncated. see log file for complete stacktrace
Caused By: java.lang.UnsupportedOperationException: This class does not support
SAAJ 1.1
at weblogic.webservice.core.soap.SOAPPartImpl.createElementNS(SOAPPartIm
pl.java:819)
at org.apache.cxf.staxutils.W3CDOMStreamWriter.writeStartElement(W3CDOMS
treamWriter.java:98)
at org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor.writeSoapE
nvelopeStart(SoapOutInterceptor.java:98)
at org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor.handleMess
age(SoapOutInterceptor.java:79)
at org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor.handleMess
age(SoapOutInterceptor.java:60)
Truncated. see log file for complete stacktrace

2011-05-15 18:23:30,817 INFO [org.jasig.cas.services.DefaultServicesManagerImpl]

  • 2011-05-15 18:23:30,818 INFO [org.jasig.cas.services.DefaultServicesManagerImpl]
soa

1个回答

LZ可以参看下这篇文章——《[url=http://tsaiyee.blog.163.com/]问题解决记录-Weblogic WebService[/url]》
或许对你有帮助。
[quote]
在startWeblogic.sh(Windows下为startWeblogic.cmd)加上如下两行即可(Windows平台用户请修改为set)

export JAVA_OPTIONS="$JAVA_OPTIONS -Djavax.xml.soap.MessageFactory=com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl"
[/quote]

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
CXF报错啊!javax.xml.ws.soap.soapfaultexception bad number in .class file
<p>调用的时候出现这个错误。javax.xml.ws.soap.soapfaultexception bad number in .class file</p>
CXF报错Does it exist in service WSDL?如何处理
我spring整合cxf(cxf-2.6.16.jar),然后发布了一个测试服务,在浏览器中可访问到发布的服务。 ![图片说明](https://img-ask.csdn.net/upload/201706/01/1496301158_771615.png) 然后我写了一个客户端去调用我发布的服务,一直报错 ``` 六月 01, 2017 3:03:10 下午 org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet [springmvc] in context with path [/FeiBao] threw exception [Request processing failed; nested exception is javax.xml.ws.soap.SOAPFaultException: Message part {message.service.com}testStr was not recognized. (Does it exist in service WSDL?)] with root cause org.apache.cxf.binding.soap.SoapFault: Message part {message.service.com}testStr was not recognized. (Does it exist in service WSDL?) at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.unmarshalFault(Soap11FaultInInterceptor.java:84) at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:51) at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:40) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263) at org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:113) at org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:69) at org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:34) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263) at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:845) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1705) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1538) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1445) at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56) at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:660) at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263) at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:570) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:479) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:382) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:335) at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96) at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:137) ``` 我在百度上搜索问题答案,有说调用服务的接口和服务端不在同一命名空间下,于是我加上了在@WebService中加上了targetNamespace="message.service.com"属性,但是,依旧报同样的错误。找了几个小时,依旧未找到解决办法,跪求大神解答。 我服务端的cxf配置: ``` <bean id="MyTestServiceBean" class="com.webservice.message.impl.MyTestServiceImpl"/> <jaxws:endpoint id="MyTestService" implementor="#MyTestServiceBean" address="/MyTestService"> </jaxws:endpoint> ``` 服务端的接口文件: ``` package com.webservice.message; import javax.jws.WebService; import javax.jws.soap.SOAPBinding; import javax.jws.soap.SOAPBinding.Style; @WebService(targetNamespace="message.service.com") @SOAPBinding(style = Style.RPC) public interface MyTestService { public String testStr(String str); } ``` 服务端的接口实现: ``` package com.webservice.message.impl; import javax.jws.WebService; import com.webservice.message.MyTestService; @WebService (endpointInterface= "com.webservice.message.MyTestService",targetNamespace="message.service.com") public class MyTestServiceImpl implements MyTestService { @Override public String testStr(String str) { return "hello," + str; } } ``` 接下来是客户端的部分 客户端cxf的配置: ``` <jaxws:client id="MyTestService" serviceClass="com.buick.activity.webservice.service.MyTestService" address="http://127.0.0.1:8080/MessageService/ws/CheckVerifyCodeService?wsdl"> </jaxws:client> ``` 客户端的接口文件: ``` package com.buick.activity.webservice.service; import javax.jws.WebService; import javax.jws.soap.SOAPBinding; import javax.jws.soap.SOAPBinding.Style; @WebService(targetNamespace="message.service.com") @SOAPBinding(style = Style.RPC) public interface MyTestService { public String testStr(String str); } ``` 如果觉得我表意不清晰,欢迎追问。
求解!spring+cxf...调用时候出问题了!
[code="java"]21:39:35,781 INFO ClassPathXmlApplicationContext:486 - Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@1aac775: startup date [Sun Aug 07 21:39:35 CST 2011]; root of context hierarchy 21:39:35,937 INFO XmlBeanDefinitionReader:315 - Loading XML bean definitions from class path resource [com/scokim/security/test/client-beans.xml] 21:39:36,453 INFO DefaultListableBeanFactory:555 - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1af4abb: defining beans [client,clientFactory]; root of factory hierarchy 21:39:36,812 INFO BusApplicationContext:486 - Refreshing org.apache.cxf.bus.spring.BusApplicationContext@a5b39c: startup date [Sun Aug 07 21:39:36 CST 2011]; root of context hierarchy 21:39:36,875 INFO ControlledValidationXmlBeanDefinitionReader:315 - Loading XML bean definitions from class path resource [META-INF/cxf/cxf.xml] 21:39:37,046 INFO ControlledValidationXmlBeanDefinitionReader:315 - Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-corba.xml] 21:39:37,062 INFO ControlledValidationXmlBeanDefinitionReader:315 - Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-jaxws.xml] 21:39:37,062 INFO ControlledValidationXmlBeanDefinitionReader:315 - Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-soap.xml] 21:39:37,078 INFO ControlledValidationXmlBeanDefinitionReader:315 - Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-xml.xml] 21:39:37,078 INFO ControlledValidationXmlBeanDefinitionReader:315 - Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-addr.xml] 21:39:37,093 INFO ControlledValidationXmlBeanDefinitionReader:315 - Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-javascript-client.xml] 21:39:37,093 INFO ControlledValidationXmlBeanDefinitionReader:315 - Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-local.xml] 21:39:37,093 INFO ControlledValidationXmlBeanDefinitionReader:315 - Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-http.xml] 21:39:37,109 INFO ControlledValidationXmlBeanDefinitionReader:315 - Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-management.xml] 21:39:37,125 INFO ControlledValidationXmlBeanDefinitionReader:315 - Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-http-jetty.xml] 21:39:37,140 INFO ControlledValidationXmlBeanDefinitionReader:315 - Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-http.xml] 21:39:37,140 INFO DefaultListableBeanFactory:618 - Overriding bean definition for bean 'org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder': replacing [Generic bean: class [org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-http.xml]] with [Generic bean: class [org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-http.xml]] 21:39:37,140 INFO DefaultListableBeanFactory:618 - Overriding bean definition for bean 'org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder': replacing [Generic bean: class [org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-http.xml]] with [Generic bean: class [org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-http.xml]] 21:39:37,140 INFO DefaultListableBeanFactory:618 - Overriding bean definition for bean 'org.apache.cxf.transport.http.policy.NoOpPolicyInterceptorProvider': replacing [Generic bean: class [org.apache.cxf.transport.http.policy.NoOpPolicyInterceptorProvider]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-http.xml]] with [Generic bean: class [org.apache.cxf.transport.http.policy.NoOpPolicyInterceptorProvider]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-http.xml]] 21:39:37,140 INFO DefaultListableBeanFactory:618 - Overriding bean definition for bean 'org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory': replacing [Generic bean: class [org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory]; scope=; abstract=false; lazyInit=true; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-http.xml]] with [Generic bean: class [org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory]; scope=; abstract=false; lazyInit=true; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-http.xml]] 21:39:37,156 INFO ControlledValidationXmlBeanDefinitionReader:315 - Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-jms.xml] 21:39:37,156 INFO ControlledValidationXmlBeanDefinitionReader:315 - Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-object-binding.xml] 21:39:37,156 INFO ControlledValidationXmlBeanDefinitionReader:315 - Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-http-binding.xml] 21:39:37,171 INFO ControlledValidationXmlBeanDefinitionReader:315 - Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-jaxrs-binding.xml] 21:39:37,171 INFO ControlledValidationXmlBeanDefinitionReader:315 - Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-ws-security.xml] 21:39:37,171 INFO ControlledValidationXmlBeanDefinitionReader:315 - Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-policy.xml] 21:39:37,187 INFO ControlledValidationXmlBeanDefinitionReader:315 - Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-rm.xml] 21:39:37,187 INFO ControlledValidationXmlBeanDefinitionReader:315 - Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-corba.xml] 21:39:37,203 INFO DefaultListableBeanFactory:618 - Overriding bean definition for bean 'org.apache.cxf.binding.corba.CorbaBindingFactory': replacing [Generic bean: class [org.apache.cxf.binding.corba.CorbaBindingFactory]; scope=; abstract=false; lazyInit=true; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-corba.xml]] with [Generic bean: class [org.apache.cxf.binding.corba.CorbaBindingFactory]; scope=; abstract=false; lazyInit=true; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-corba.xml]] 21:39:37,203 INFO ControlledValidationXmlBeanDefinitionReader:315 - Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-jaxws.xml] 21:39:37,234 INFO DefaultListableBeanFactory:618 - Overriding bean definition for bean 'org.apache.cxf.jaxws.context.WebServiceContextResourceResolver': replacing [Generic bean: class [org.apache.cxf.jaxws.context.WebServiceContextResourceResolver]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-jaxws.xml]] with [Generic bean: class [org.apache.cxf.jaxws.context.WebServiceContextResourceResolver]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-jaxws.xml]] 21:39:37,234 INFO DefaultListableBeanFactory:618 - Overriding bean definition for bean 'org.apache.cxf.jaxws.context.WebServiceContextImpl': replacing [Generic bean: class [org.apache.cxf.jaxws.context.WebServiceContextImpl]; scope=; abstract=false; lazyInit=true; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-jaxws.xml]] with [Generic bean: class [org.apache.cxf.jaxws.context.WebServiceContextImpl]; scope=; abstract=false; lazyInit=true; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-jaxws.xml]] 21:39:37,234 INFO ControlledValidationXmlBeanDefinitionReader:315 - Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-soap.xml] 21:39:37,234 INFO DefaultListableBeanFactory:618 - Overriding bean definition for bean 'org.apache.cxf.binding.soap.SoapBindingFactory': replacing [Generic bean: class [org.apache.cxf.binding.soap.SoapBindingFactory]; scope=; abstract=false; lazyInit=true; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-soap.xml]] with [Generic bean: class [org.apache.cxf.binding.soap.SoapBindingFactory]; scope=; abstract=false; lazyInit=true; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-soap.xml]] 21:39:37,234 INFO DefaultListableBeanFactory:618 - Overriding bean definition for bean 'org.apache.cxf.binding.soap.SoapTransportFactory': replacing [Generic bean: class [org.apache.cxf.binding.soap.SoapTransportFactory]; scope=; abstract=false; lazyInit=true; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-soap.xml]] with [Generic bean: class [org.apache.cxf.binding.soap.SoapTransportFactory]; scope=; abstract=false; lazyInit=true; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-soap.xml]] 21:39:37,250 INFO DefaultListableBeanFactory:618 - Overriding bean definition for bean 'org.apache.cxf.binding.soap.customEditorConfigurer': replacing [Generic bean: class [org.springframework.beans.factory.config.CustomEditorConfigurer]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-soap.xml]] with [Generic bean: class [org.springframework.beans.factory.config.CustomEditorConfigurer]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-soap.xml]] 21:39:37,250 INFO ControlledValidationXmlBeanDefinitionReader:315 - Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-xml.xml] 21:39:37,250 INFO DefaultListableBeanFactory:618 - Overriding bean definition for bean 'org.apache.cxf.binding.xml.XMLBindingFactory': replacing [Generic bean: class [org.apache.cxf.binding.xml.XMLBindingFactory]; scope=; abstract=false; lazyInit=true; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-xml.xml]] with [Generic bean: class [org.apache.cxf.binding.xml.XMLBindingFactory]; scope=; abstract=false; lazyInit=true; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-xml.xml]] 21:39:37,250 INFO ControlledValidationXmlBeanDefinitionReader:315 - Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-addr.xml] 21:39:37,250 INFO DefaultListableBeanFactory:618 - Overriding bean definition for bean 'org.apache.cxf.ws.addressing.policy.AddressingAssertionBuilder': replacing [Generic bean: class [org.apache.cxf.ws.addressing.policy.AddressingAssertionBuilder]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-addr.xml]] with [Generic bean: class [org.apache.cxf.ws.addressing.policy.AddressingAssertionBuilder]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-addr.xml]] 21:39:37,250 INFO DefaultListableBeanFactory:618 - Overriding bean definition for bean 'org.apache.cxf.ws.addressing.policy.AddressingPolicyInterceptorProvider': replacing [Generic bean: class [org.apache.cxf.ws.addressing.policy.AddressingPolicyInterceptorProvider]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-addr.xml]] with [Generic bean: class [org.apache.cxf.ws.addressing.policy.AddressingPolicyInterceptorProvider]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-addr.xml]] 21:39:37,265 INFO DefaultListableBeanFactory:618 - Overriding bean definition for bean 'org.apache.cxf.ws.addressing.policy.UsingAddressingAssertionBuilder': replacing [Generic bean: class [org.apache.cxf.ws.policy.builder.primitive.PrimitiveAssertionBuilder]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-addr.xml]] with [Generic bean: class [org.apache.cxf.ws.policy.builder.primitive.PrimitiveAssertionBuilder]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-addr.xml]] 21:39:37,265 INFO ControlledValidationXmlBeanDefinitionReader:315 - Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-javascript-client.xml] 21:39:37,265 INFO DefaultListableBeanFactory:618 - Overriding bean definition for bean 'org.apache.cxf.javascript.JavascriptQueryHandlerRegistry': replacing [Generic bean: class [org.apache.cxf.javascript.JavascriptQueryHandlerRegistry]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=register; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-javascript-client.xml]] with [Generic bean: class [org.apache.cxf.javascript.JavascriptQueryHandlerRegistry]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=register; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-javascript-client.xml]] 21:39:37,265 INFO ControlledValidationXmlBeanDefinitionReader:315 - Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-local.xml] 21:39:37,265 INFO DefaultListableBeanFactory:618 - Overriding bean definition for bean 'org.apache.cxf.transport.local.LocalTransportFactory': replacing [Generic bean: class [org.apache.cxf.transport.local.LocalTransportFactory]; scope=; abstract=false; lazyInit=true; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-local.xml]] with [Generic bean: class [org.apache.cxf.transport.local.LocalTransportFactory]; scope=; abstract=false; lazyInit=true; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-local.xml]] 21:39:37,265 INFO ControlledValidationXmlBeanDefinitionReader:315 - Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-http.xml] 21:39:37,281 INFO DefaultListableBeanFactory:618 - Overriding bean definition for bean 'org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder': replacing [Generic bean: class [org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-http.xml]] with [Generic bean: class [org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-http.xml]] 21:39:37,281 INFO DefaultListableBeanFactory:618 - Overriding bean definition for bean 'org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder': replacing [Generic bean: class [org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-http.xml]] with [Generic bean: class [org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-http.xml]] 21:39:37,281 INFO DefaultListableBeanFactory:618 - Overriding bean definition for bean 'org.apache.cxf.transport.http.policy.NoOpPolicyInterceptorProvider': replacing [Generic bean: class [org.apache.cxf.transport.http.policy.NoOpPolicyInterceptorProvider]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-http.xml]] with [Generic bean: class [org.apache.cxf.transport.http.policy.NoOpPolicyInterceptorProvider]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-http.xml]] 21:39:37,281 INFO DefaultListableBeanFactory:618 - Overriding bean definition for bean 'org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory': replacing [Generic bean: class [org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory]; scope=; abstract=false; lazyInit=true; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-http.xml]] with [Generic bean: class [org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory]; scope=; abstract=false; lazyInit=true; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-http.xml]] 21:39:37,281 INFO ControlledValidationXmlBeanDefinitionReader:315 - Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-management.xml] 21:39:37,281 INFO DefaultListableBeanFactory:618 - Overriding bean definition for bean 'org.apache.cxf.management.InstrumentationManager': replacing [Generic bean: class [org.apache.cxf.management.jmx.InstrumentationManagerImpl]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-management.xml]] with [Generic bean: class [org.apache.cxf.management.jmx.InstrumentationManagerImpl]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-management.xml]] 21:39:37,281 INFO ControlledValidationXmlBeanDefinitionReader:315 - Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-http-jetty.xml] 21:39:37,296 INFO ControlledValidationXmlBeanDefinitionReader:315 - Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-http.xml] 21:39:37,296 INFO DefaultListableBeanFactory:618 - Overriding bean definition for bean 'org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder': replacing [Generic bean: class [org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-http.xml]] with [Generic bean: class [org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-http.xml]] 21:39:37,296 INFO DefaultListableBeanFactory:618 - Overriding bean definition for bean 'org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder': replacing [Generic bean: class [org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-http.xml]] with [Generic bean: class [org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-http.xml]] 21:39:37,296 INFO DefaultListableBeanFactory:618 - Overriding bean definition for bean 'org.apache.cxf.transport.http.policy.NoOpPolicyInterceptorProvider': replacing [Generic bean: class [org.apache.cxf.transport.http.policy.NoOpPolicyInterceptorProvider]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-http.xml]] with [Generic bean: class [org.apache.cxf.transport.http.policy.NoOpPolicyInterceptorProvider]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-http.xml]] 21:39:37,437 INFO DefaultListableBeanFactory:618 - Overriding bean definition for bean 'org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory': replacing [Generic bean: class [org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory]; scope=; abstract=false; lazyInit=true; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-http.xml]] with [Generic bean: class [org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory]; scope=; abstract=false; lazyInit=true; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-http.xml]] 21:39:37,437 INFO DefaultListableBeanFactory:618 - Overriding bean definition for bean 'org.apache.cxf.transport.http_jetty.JettyHTTPTransportFactory': replacing [Generic bean: class [org.apache.cxf.transport.http_jetty.JettyHTTPTransportFactory]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-http-jetty.xml]] with [Generic bean: class [org.apache.cxf.transport.http_jetty.JettyHTTPTransportFactory]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-http-jetty.xml]] 21:39:37,437 INFO ControlledValidationXmlBeanDefinitionReader:315 - Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-jms.xml] 21:39:37,437 INFO DefaultListableBeanFactory:618 - Overriding bean definition for bean 'org.apache.cxf.transport.jms.JMSTransportFactory': replacing [Generic bean: class [org.apache.cxf.transport.jms.JMSTransportFactory]; scope=; abstract=false; lazyInit=true; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-jms.xml]] with [Generic bean: class [org.apache.cxf.transport.jms.JMSTransportFactory]; scope=; abstract=false; lazyInit=true; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-jms.xml]] 21:39:37,437 INFO ControlledValidationXmlBeanDefinitionReader:315 - Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-object-binding.xml] 21:39:37,500 INFO DefaultListableBeanFactory:618 - Overriding bean definition for bean 'org.apache.cxf.binding.object.ObjectBindingFactory': replacing [Generic bean: class [org.apache.cxf.binding.object.ObjectBindingFactory]; scope=; abstract=false; lazyInit=true; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-object-binding.xml]] with [Generic bean: class [org.apache.cxf.binding.object.ObjectBindingFactory]; scope=; abstract=false; lazyInit=true; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-object-binding.xml]] 21:39:37,500 INFO ControlledValidationXmlBeanDefinitionReader:315 - Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-http-binding.xml] 21:39:37,500 INFO DefaultListableBeanFactory:618 - Overriding bean definition for bean 'org.apache.cxf.binding.http.HttpBindingFactory': replacing [Generic bean: class [org.apache.cxf.binding.http.HttpBindingFactory]; scope=; abstract=false; lazyInit=true; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-http-binding.xml]] with [Generic bean: class [org.apache.cxf.binding.http.HttpBindingFactory]; scope=; abstract=false; lazyInit=true; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-http-binding.xml]] 21:39:37,500 INFO ControlledValidationXmlBeanDefinitionReader:315 - Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-jaxrs-binding.xml] 21:39:37,500 INFO DefaultListableBeanFactory:618 - Overriding bean definition for bean 'org.apache.cxf.jaxrs.JAXRSBindingFactory': replacing [Generic bean: class [org.apache.cxf.jaxrs.JAXRSBindingFactory]; scope=; abstract=false; lazyInit=true; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-jaxrs-binding.xml]] with [Generic bean: class [org.apache.cxf.jaxrs.JAXRSBindingFactory]; scope=; abstract=false; lazyInit=true; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-jaxrs-binding.xml]] 21:39:37,500 INFO ControlledValidationXmlBeanDefinitionReader:315 - Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-ws-security.xml] 21:39:37,500 INFO DefaultListableBeanFactory:618 - Overriding bean definition for bean 'org.apache.cxf.ws.security.policy.WSSecurityPolicyLoader': replacing [Generic bean: class [org.apache.cxf.ws.security.policy.WSSecurityPolicyLoader]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-ws-security.xml]] with [Generic bean: class [org.apache.cxf.ws.security.policy.WSSecurityPolicyLoader]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-ws-security.xml]] 21:39:37,500 INFO ControlledValidationXmlBeanDefinitionReader:315 - Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-policy.xml] 21:39:37,515 INFO DefaultListableBeanFactory:618 - Overriding bean definition for bean 'org.apache.cxf.ws.policy.AssertionBuilderRegistry': replacing [Generic bean: class [org.apache.cxf.ws.policy.AssertionBuilderRegistryImpl]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-policy.xml]] with [Generic bean: class [org.apache.cxf.ws.policy.AssertionBuilderRegistryImpl]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-policy.xml]] 21:39:37,515 INFO DefaultListableBeanFactory:618 - Overriding bean definition for bean 'org.apache.cxf.ws.policy.PolicyInterceptorProviderRegistry': replacing [Generic bean: class [org.apache.cxf.ws.policy.PolicyInterceptorProviderRegistryImpl]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-policy.xml]] with [Generic bean: class [org.apache.cxf.ws.policy.PolicyInterceptorProviderRegistryImpl]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-policy.xml]] 21:39:37,515 INFO DefaultListableBeanFactory:618 - Overriding bean definition for bean 'org.apache.cxf.ws.policy.attachment.external.DomainExpressionBuilderRegistry': replacing [Generic bean: class [org.apache.cxf.ws.policy.attachment.external.DomainExpressionBuilderRegistry]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-policy.xml]] with [Generic bean: class [org.apache.cxf.ws.policy.attachment.external.DomainExpressionBuilderRegistry]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-policy.xml]] 21:39:37,531 INFO DefaultListableBeanFactory:618 - Overriding bean definition for bean 'org.apache.cxf.ws.policy.attachment.external.EndpointReferenceDomainExpressionBuilder': replacing [Generic bean: class [org.apache.cxf.ws.policy.attachment.external.EndpointReferenceDomainExpressionBuilder]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-policy.xml]] with [Generic bean: class [org.apache.cxf.ws.policy.attachment.external.EndpointReferenceDomainExpressionBuilder]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-policy.xml]] 21:39:37,531 INFO DefaultListableBeanFactory:618 - Overriding bean definition for bean 'org.apache.cxf.ws.policy.PolicyBuilder': replacing [Generic bean: class [org.apache.cxf.ws.policy.PolicyBuilderImpl]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-policy.xml]] with [Generic bean: class [org.apache.cxf.ws.policy.PolicyBuilderImpl]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-policy.xml]] 21:39:37,531 INFO DefaultListableBeanFactory:618 - Overriding bean definition for bean 'org.apache.cxf.ws.policy.PolicyEngine': replacing [Generic bean: class [org.apache.cxf.ws.policy.PolicyEngineImpl]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-policy.xml]] with [Generic bean: class [org.apache.cxf.ws.policy.PolicyEngineImpl]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-policy.xml]] 21:39:37,531 INFO DefaultListableBeanFactory:618 - Overriding bean definition for bean 'org.apache.cxf.ws.policy.attachment.wsdl11.Wsdl11AttachmentPolicyProvider': replacing [Generic bean: class [org.apache.cxf.ws.policy.attachment.wsdl11.Wsdl11AttachmentPolicyProvider]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-policy.xml]] with [Generic bean: class [org.apache.cxf.ws.policy.attachment.wsdl11.Wsdl11AttachmentPolicyProvider]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-policy.xml]] 21:39:37,531 INFO DefaultListableBeanFactory:618 - Overriding bean definition for bean 'org.apache.cxf.ws.policy.attachment.ServiceModelPolicyProvider': replacing [Generic bean: class [org.apache.cxf.ws.policy.attachment.ServiceModelPolicyProvider]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-policy.xml]] with [Generic bean: class [org.apache.cxf.ws.policy.attachment.ServiceModelPolicyProvider]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-policy.xml]] 21:39:37,531 INFO DefaultListableBeanFactory:618 - Overriding bean definition for bean 'org.apache.cxf.ws.policy.mtom.MTOMAssertionBuilder': replacing [Generic bean: class [org.apache.cxf.ws.policy.mtom.MTOMAssertionBuilder]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-policy.xml]] with [Generic bean: class [org.apache.cxf.ws.policy.mtom.MTOMAssertionBuilder]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-policy.xml]] 21:39:37,531 INFO DefaultListableBeanFactory:618 - Overriding bean definition for bean 'org.apache.cxf.ws.policy.mtom.MTOMPolicyInterceptorProvider': replacing [Generic bean: class [org.apache.cxf.ws.policy.mtom.MTOMPolicyInterceptorProvider]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-policy.xml]] with [Generic bean: class [org.apache.cxf.ws.policy.mtom.MTOMPolicyInterceptorProvider]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-policy.xml]] 21:39:37,531 INFO ControlledValidationXmlBeanDefinitionReader:315 - Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-rm.xml] 21:39:37,546 INFO DefaultListableBeanFactory:618 - Overriding bean definition for bean 'org.apache.cxf.ws.rm.RMManager': replacing [Generic bean: class [org.apache.cxf.ws.rm.RMManager]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-rm.xml]] with [Generic bean: class [org.apache.cxf.ws.rm.RMManager]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-rm.xml]] 21:39:37,546 INFO DefaultListableBeanFactory:618 - Overriding bean definition for bean 'org.apache.cxf.ws.rm.policy.RMPolicyInterceptorProvider': replacing [Generic bean: class [org.apache.cxf.ws.rm.policy.RMPolicyInterceptorProvider]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-rm.xml]] with [Generic bean: class [org.apache.cxf.ws.rm.policy.RMPolicyInterceptorProvider]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-rm.xml]] 21:39:37,546 INFO DefaultListableBeanFactory:618 - Overriding bean definition for bean 'org.apache.cxf.ws.rm.RMAssertionBuilder': replacing [Generic bean: class [org.apache.cxf.ws.policy.builder.jaxb.JaxbAssertionBuilder]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-rm.xml]] with [Generic bean: class [org.apache.cxf.ws.policy.builder.jaxb.JaxbAssertionBuilder]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-rm.xml]] 21:39:37,843 INFO DefaultListableBeanFactory:555 - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@fec586: defining beans [cxf,org.apache.cxf.bus.spring.BusApplicationListener,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,org.apache.cxf.resource.ResourceManager,org.apache.cxf.configuration.Configurer,org.apache.cxf.binding.BindingFactoryManager,org.apache.cxf.transport.DestinationFactoryManager,org.apache.cxf.transport.ConduitInitiatorManager,org.apache.cxf.wsdl.WSDLManager,org.apache.cxf.phase.PhaseManager,org.apache.cxf.workqueue.WorkQueueManager,org.apache.cxf.buslifecycle.BusLifeCycleManager,org.apache.cxf.endpoint.ServerRegistry,org.apache.cxf.endpoint.ServerLifeCycleManager,org.apache.cxf.endpoint.ClientLifeCycleManager,org.apache.cxf.transports.http.QueryHandlerRegistry,org.apache.cxf.endpoint.EndpointResolverRegistry,org.apache.cxf.headers.HeaderManager,org.apache.cxf.catalog.OASISCatalogManager,org.apache.cxf.endpoint.ServiceContractResolverRegistry,org.apache.cxf.binding.corba.CorbaBindingFactory,org.apache.cxf.binding.corba.wsdl.WSDLExtensionRegister#0,org.apache.cxf.jaxws.context.WebServiceContextResourceResolver,org.apache.cxf.jaxws.context.WebServiceContextImpl,org.apache.cxf.binding.soap.SoapBindingFactory,org.apache.cxf.binding.soap.SoapTransportFactory,org.apache.cxf.binding.soap.customEditorConfigurer,org.apache.cxf.binding.xml.XMLBindingFactory,org.apache.cxf.ws.addressing.policy.AddressingAssertionBuilder,org.apache.cxf.ws.addressing.policy.AddressingPolicyInterceptorProvider,org.apache.cxf.ws.addressing.policy.UsingAddressingAssertionBuilder,org.apache.cxf.javascript.JavascriptQueryHandlerRegistry,org.apache.cxf.transport.local.LocalTransportFactory,org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder,org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder,org.apache.cxf.transport.http.policy.NoOpPolicyInterceptorProvider,org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory,org.apache.cxf.management.InstrumentationManager,org.apache.cxf.transport.http_jetty.JettyHTTPTransportFactory,org.apache.cxf.transport.jms.JMSTransportFactory,org.apache.cxf.binding.object.ObjectBindingFactory,org.apache.cxf.binding.http.HttpBindingFactory,org.apache.cxf.jaxrs.JAXRSBindingFactory,org.apache.cxf.ws.security.policy.WSSecurityPolicyLoader,org.apache.cxf.ws.policy.AssertionBuilderRegistry,org.apache.cxf.ws.policy.PolicyInterceptorProviderRegistry,org.apache.cxf.ws.policy.attachment.external.DomainExpressionBuilderRegistry,org.apache.cxf.ws.policy.attachment.external.EndpointReferenceDomainExpressionBuilder,org.apache.cxf.ws.policy.PolicyBuilder,org.apache.cxf.ws.policy.PolicyEngine,org.apache.cxf.ws.policy.attachment.wsdl11.Wsdl11AttachmentPolicyProvider,org.apache.cxf.ws.policy.attachment.ServiceModelPolicyProvider,org.apache.cxf.ws.policy.mtom.MTOMAssertionBuilder,org.apache.cxf.ws.policy.mtom.MTOMPolicyInterceptorProvider,org.apache.cxf.ws.rm.RMManager,org.apache.cxf.ws.rm.policy.RMPolicyInterceptorProvider,org.apache.cxf.ws.rm.RMAssertionBuilder,org.apache.cxf.binding.corba.wsdl.WSDLExtensionRegister#1]; root of factory hierarchy 八月 07, 2011 9:39:39 下午 org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromClass 信息: Creating Service {http://ws.scokim.com/}HelloWorldService from class com.scokim.ws.HelloWorld 八月 07, 2011 9:39:41 下午 org.apache.cxf.phase.PhaseInterceptorChain doIntercept 警告: Interceptor has thrown exception, unwinding now org.apache.cxf.interceptor.Fault: Response was of unexpected text/html ContentType. Incoming portion of HTML stream: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><HTML><HEAD><LINK type="text/css" rel="stylesheet" href="/HelloWorld/?stylesheet=1"><meta http-equiv=content-type content="text/html; charset=UTF-8"><title>CXF - Service list</title></head><body><span class="heading">No services have been found.</span></body></html> at org.apache.cxf.interceptor.StaxInInterceptor.handleMessage(StaxInInterceptor.java:77) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236) at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:671) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:2177) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:2057) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1982) at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66) at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:637) at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:483) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:309) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:261) at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73) at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124) at $Proxy44.sayHi(Unknown Source) at com.scokim.security.test.Client.main(Client.java:18) Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: Response was of unexpected text/html ContentType. Incoming portion of HTML stream: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><HTML><HEAD><LINK type="text/css" rel="stylesheet" href="/HelloWorld/?stylesheet=1"><meta http-equiv=content-type content="text/html; charset=UTF-8"><title>CXF - Service list</title></head><body><span class="heading">No services have been found.</span></body></html> at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:146) at $Proxy44.sayHi(Unknown Source) at com.scokim.security.test.Client.main(Client.java:18) Caused by: org.apache.cxf.interceptor.Fault: Response was of unexpected text/html ContentType. Incoming portion of HTML stream: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><HTML><HEAD><LINK type="text/css" rel="stylesheet" href="/HelloWorld/?stylesheet=1"><meta http-equiv=content-type content="text/html; charset=UTF-8"><title>CXF - Service list</title></head><body><span class="heading">No services have been found.</span></body></html> at org.apache.cxf.interceptor.StaxInInterceptor.handleMessage(StaxInInterceptor.java:77) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236) at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:671) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:2177) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:2057) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1982) at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66) at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:637) at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:483) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:309) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:261) at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73) at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124) ... 2 more [/code]
camel中发布webservice的问题
camel自带的例子:camel-example-cxf-tomcat 运行OK。 但是把WebService接口方法的返回值由对象改为List, 当然,实现中也调整为返回List。 但执行错误: Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: org.apache.camel.example.cxf.incident.OutputReportIncident cannot be cast to java.util.List ~~~~~~~~~~~~~ 同样的,含有List返回值的WebService,如果使用CXF发布和实现,执行正常。 <jaxws:endpoint id="foo" implementorClass="my.FooImpl" address="/foo" /> 但是调整为camel发布的方式: <bean id="fooImpl" class="my.FooImpl"/> <camelContext xmlns="http://camel.apache.org/schema/spring"> <route> <from uri="cxf:/foo?serviceClass=my.IFoo"/> <to uri="bean:fooImpl"/> </route> </camelContext> 就会出现cannot be cast to java.util.List的错误。 如果把List返回方式改为普通对象,就执行正常。 有人帮看一下吗? 多谢!
使用cxf查询天气预报报错
异常信息如下: 警告: Interceptor for {http://WebXml.com.cn/}WeatherWS#{http://WebXml.com.cn/}getWeather has thrown exception, unwinding now org.apache.cxf.binding.soap.SoapFault: No namespace on "html" element. You must send a SOAP message. at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.readVersion(ReadHeadersInterceptor.java:122) at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:172) at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:69) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308) at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:798) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1670) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1551) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1348) at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56) at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:651) at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308) at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:514) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:423) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:324) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:277) at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96) at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:139) at com.sun.proxy.$Proxy43.getWeather(Unknown Source) at com.atguigu.client.MainClient.main(MainClient.java:14) Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: No namespace on "html" element. You must send a SOAP message. at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:161) at com.sun.proxy.$Proxy43.getWeather(Unknown Source) at com.atguigu.client.MainClient.main(MainClient.java:14) Caused by: org.apache.cxf.binding.soap.SoapFault: No namespace on "html" element. You must send a SOAP message. at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.readVersion(ReadHeadersInterceptor.java:122) at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:172) at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:69) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308) at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:798) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1670) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1551) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1348) at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56) at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:651) at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308) at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:514) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:423) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:324) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:277) at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96) at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:139) ... 2 more 我是在cxf的bin文件夹中输入命令wsdl2java 生成服务端的各个类,然后简单写了一个main方法: public class MainClient { public static void main(String[] args) { WeatherWSSoap weatherWSSoap = new WeatherWS().getWeatherWSSoap(); ArrayOfString weather = weatherWSSoap.getWeather("北京", ""); List<String> list = weather.getString(); for (String string : list) { System.out.println(string); } } } 运行时就报了如上异常。。。 哪位好心人帮我看看怎么出的错,百度了一些然而并没有明白。。。 谢谢!
webservice链接服务端失败,求帮助!
客户端 链接服务端 总是报错。java.lang.RuntimeException: Cannot create a secure XMLInputFactory 下面是报错信息 九月 09, 2016 12:57:04 上午 org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromClass INFO: Creating Service {http://service.bpmservice.tarena.com/}BpmserviceService from class client.Bpmservice 九月 09, 2016 12:57:05 上午 org.apache.cxf.phase.PhaseInterceptorChain doDefaultLogging WARNING: Interceptor for {http://service.bpmservice.tarena.com/}BpmserviceService#{http://service.bpmservice.tarena.com/}StudentChg has thrown exception, unwinding now java.lang.RuntimeException: Cannot create a secure XMLInputFactory at org.apache.cxf.staxutils.StaxUtils.createXMLInputFactory(StaxUtils.java:303) at org.apache.cxf.staxutils.StaxUtils.getXMLInputFactory(StaxUtils.java:258) at org.apache.cxf.staxutils.StaxUtils.createXMLStreamReader(StaxUtils.java:1399) at org.apache.cxf.interceptor.StaxInInterceptor.handleMessage(StaxInInterceptor.java:112) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271) at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:811) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1590) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1486) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1305) at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56) at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:623) at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271) at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:541) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:474) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:377) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:330) at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96) at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:134) at com.sun.proxy.$Proxy40.studentChg(Unknown Source) at client.BpmTest.main(BpmTest.java:19) Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: Cannot create a secure XMLInputFactory at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:156) at com.sun.proxy.$Proxy40.studentChg(Unknown Source) at client.BpmTest.main(BpmTest.java:19) Caused by: java.lang.RuntimeException: Cannot create a secure XMLInputFactory at org.apache.cxf.staxutils.StaxUtils.createXMLInputFactory(StaxUtils.java:303) at org.apache.cxf.staxutils.StaxUtils.getXMLInputFactory(StaxUtils.java:258) at org.apache.cxf.staxutils.StaxUtils.createXMLStreamReader(StaxUtils.java:1399) at org.apache.cxf.interceptor.StaxInInterceptor.handleMessage(StaxInInterceptor.java:112) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271) at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:811) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1590) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1486) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1305) at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56) at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:623) at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271) at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:541) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:474) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:377) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:330) at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96) at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:134) ... 2 more
java调用cxf时返回list类型,出错,请高手给个提示
首先看我的代码: UserSerivceImpl.java [code="java"] @WebService public class UserSerivceImpl implements UserService { private UserDao userDao; public void setUserDao(UserDao userDao){ this.userDao = userDao; } public List<User> getAllUsers() { // TODO Auto-generated method stub return userDao.getAllUserList(); } } [/code] UserDao.java [code="java"] public List<User> getAllUserList() { List rows = jt.queryForList("select id as userid,username,email as useremail,profile as userage from tbl_user"); List<User> list = new ArrayList<User>(); if(rows == null){ //rows = new ArrayList<User>(); User user = new User(); user.setUserage("21"); user.setUseremail("jack@123.com"); user.setUserid("23"); user.setUsername("jack"); list.add(user); }else{//rows !=null for(int i=0;i<rows.size();i++){ User user1 = new User(); Hashtable ht = (Hashtable)rows.get(i); user1.setUserage(ht.get("userage")!=null?(String)ht.get("userage"):"2"); user1.setUseremail(ht.get("useremail")!=null?(String)ht.get("useremail"):"2"); user1.setUserid(ht.get("userid")!=null?(String)ht.get("userid"):"2"); user1.setUsername(ht.get("username")!=null?(String)ht.get("username"):"2"); list.add(user1); System.out.println("username == "+user1.getUsername()); } } return list; } [/code] 客户端代码: [code="java"] JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean(); factory.getInInterceptors().add(new LoggingInInterceptor()); factory.getOutInterceptors().add(new LoggingOutInterceptor()); factory.setAddress("http://localhost:8080/CxfSpring/service/UserManager"); factory.setServiceClass(UserService.class); UserService service = (UserService)factory.create(); //User user = service.getUserByID("1"); //System.out.println("username == "+user.getUsername()); List<User> list = service.getAllUsers(); System.out.println("list size == "+list); [/code] 运行客户端 ,然后提示的错误是: Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: org.springframework.util.LinkedCaseInsensitiveMap cannot be cast to java.util.Hashtable at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:146) at $Proxy38.getAllUsers(Unknown Source) at test.SoapExample.main(SoapExample.java:53) Caused by: org.apache.cxf.binding.soap.SoapFault: org.springframework.util.LinkedCaseInsensitiveMap cannot be cast to java.util.Hashtable at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.unmarshalFault(Soap11FaultInInterceptor.java:75) at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:46) at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:35) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:247) at org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:99) at org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:69) at org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:34) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:247) at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:733) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:2201) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:2071) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1925) at org.apache.cxf.io.CacheAndWriteOutputStream.postClose(CacheAndWriteOutputStream.java:47) at org.apache.cxf.io.CachedOutputStream.close(CachedOutputStream.java:188) at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56) at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:662) at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:247) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:516) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:313) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:265) at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73) at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124) ... 2 more 请问这是什么错误?怎么解决?
CXF+spring+hibernate客户端调用总出错
我用cxf做的webserver已经发布成功并能看到以下wsdl [code="java"] <?xml version="1.0" encoding="UTF-8" ?> - <wsdl:definitions name="cxfWebServerImplService" targetNamespace="http://spingDao.com/" xmlns:ns1="http://spingdao.com/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://spingDao.com/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <wsdl:import location="http://localhost:8899/hib3/cxfWebServer?wsdl=cxfWebServer.wsdl" namespace="http://spingdao.com/" /> - <wsdl:message name="getJobseekeruser"> <wsdl:part element="ns1:getJobseekeruser" name="parameters" /> </wsdl:message> - <wsdl:message name="insertDataResponse"> <wsdl:part element="ns1:insertDataResponse" name="parameters" /> </wsdl:message> - <wsdl:message name="getJobseekeruserResponse"> <wsdl:part element="ns1:getJobseekeruserResponse" name="parameters" /> </wsdl:message> - <wsdl:message name="insertData"> <wsdl:part element="ns1:insertData" name="parameters" /> </wsdl:message> - <wsdl:binding name="cxfWebServerImplServiceSoapBinding" type="ns1:cxfWebServer"> <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" /> - <wsdl:operation name="getJobseekeruser"> <soap:operation soapAction="" style="document" /> - <wsdl:input name="getJobseekeruser"> <soap:body use="literal" /> </wsdl:input> - <wsdl:output name="getJobseekeruserResponse"> <soap:body use="literal" /> </wsdl:output> </wsdl:operation> - <wsdl:operation name="insertData"> <soap:operation soapAction="" style="document" /> - <wsdl:input name="insertData"> <soap:body use="literal" /> </wsdl:input> - <wsdl:output name="insertDataResponse"> <soap:body use="literal" /> </wsdl:output> </wsdl:operation> </wsdl:binding> - <wsdl:service name="cxfWebServerImplService"> - <wsdl:port binding="tns:cxfWebServerImplServiceSoapBinding" name="cxfWebServerPort"> <soap:address location="http://localhost:8899/hib3/cxfWebServer" /> </wsdl:port> </wsdl:service> </wsdl:definitions>[/code] 但是当我在客户端写以下调用时总出错: 客户端代码: [code="java"] public static void main(String[] args) { ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext( new String[] { "classpath:/com/webserver/clinet/client-beans.xml"}); cxfWebServer client = (cxfWebServer) context.getBean("client"); Jobseekeruser user=new Jobseekeruser(); user.setCheckstatus((long)1); user.setJobseekerid((long)1092); java.util.Date d=new java.util.Date(); user.setCreatedate(d); user.setEmail("21@job88.com"); user.setEmailstatus((long)1); user.setJobseekercode("JP00332d3"); user.setJobseekerlogin("trais"); user.setLastlogindate(d); user.setUpdatedate(d); user.setCheckstatus((long)1); user.setPassword("123w"); boolean response = client.insertData(user); System.out.println("Response: " + response); System.exit(0); }[/code] 错误: [list=1] [*] [*] [*]Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer [*] at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:199) [*] at $Proxy42.insertData(Unknown Source) [*] at com.webserver.clinet.jobseekerclient.main(jobseekerclient.java:44) [*]Caused by: org.apache.cxf.binding.soap.SoapFault: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer [*] at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:70) [*] at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:1) [*] at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:221) [*] at org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:96) [*] at org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:65) [*] at org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:1) [*] at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:221) [*] at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:449) [*] at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1996) [*] at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1832) [*] at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66) [*] at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:591) [*] at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62) [*] at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:221) [*] at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:296) [*] at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:242) [*] at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73) [*] at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:178) [*] ... 2 more [/list] 其他的服务端代码: [code="java"] @WebService(name="cxfWebServer", targetNamespace="http://spingdao.com/") public interface cxfWebServer { public boolean insertData(Jobseekeruser user); public Jobseekeruser getJobseekeruser(long id); }[/code] [code="java"] @WebService(endpointInterface="com.spingDao.cxfWebServer",name="cxfWebServer") public class cxfWebServerImpl implements cxfWebServer { public Jobseekeruser getJobseekeruser(long id) { //ApplicationContext ap = new ClassPathXmlApplicationContext("applicationContext.xml"); JobseekeruserDAO jdo =new JobseekeruserDAO(); // TODO Auto-generated method stub return (Jobseekeruser) jdo.findAll().get(0); } public boolean insertData(Jobseekeruser user) { SaveJobseeker sav=new SaveJobseeker(); sav.insertJobseekerUser(user); return true; } }[/code] [code="java"]*/ @XmlAccessorType() @XmlType(name = "User") public class Jobseekeruser implements java.io.Serializable { // Fields private Long jobseekerid; private String jobseekerlogin; private String jobseekercode; private String email; private String password; private Date createdate; private Date updatedate; private Date lastlogindate; private Long checkstatus; private Long emailstatus; // Constructors /** default constructor */ public Jobseekeruser() { } /** minimal constructor */ public Jobseekeruser(Long jobseekerid, String jobseekerlogin, String email) { this.jobseekerid = jobseekerid; this.jobseekerlogin = jobseekerlogin; this.email = email; } /** full constructor */ public Jobseekeruser(Long jobseekerid, String jobseekerlogin, String jobseekercode, String email, String password, Date createdate, Date updatedate, Date lastlogindate, Long checkstatus, Long emailstatus) { this.jobseekerid = jobseekerid; this.jobseekerlogin = jobseekerlogin; this.jobseekercode = jobseekercode; this.email = email; this.password = password; this.createdate = createdate; this.updatedate = updatedate; this.lastlogindate = lastlogindate; this.checkstatus = checkstatus; this.emailstatus = emailstatus; } // Property accessors public Long getJobseekerid() { return this.jobseekerid; } public void setJobseekerid(Long jobseekerid) { this.jobseekerid = jobseekerid; } public String getJobseekerlogin() { return this.jobseekerlogin; } public void setJobseekerlogin(String jobseekerlogin) { this.jobseekerlogin = jobseekerlogin; } public String getJobseekercode() { return this.jobseekercode; } public void setJobseekercode(String jobseekercode) { this.jobseekercode = jobseekercode; } public String getEmail() { return this.email; } public void setEmail(String email) { this.email = email; } public String getPassword() { return this.password; } public void setPassword(String password) { this.password = password; } public Date getCreatedate() { return this.createdate; } public void setCreatedate(Date createdate) { this.createdate = createdate; } public Date getUpdatedate() { return this.updatedate; } public void setUpdatedate(Date updatedate) { this.updatedate = updatedate; } public Date getLastlogindate() { return this.lastlogindate; } public void setLastlogindate(Date lastlogindate) { this.lastlogindate = lastlogindate; } public Long getCheckstatus() { return this.checkstatus; } public void setCheckstatus(Long checkstatus) { this.checkstatus = checkstatus; } public Long getEmailstatus() { return this.emailstatus; } public void setEmailstatus(Long emailstatus) { this.emailstatus = emailstatus; } }[/code] 与数据库操作的代码: [code="java"] public class SaveJobseeker { public boolean insertJobseekerUser(Jobseekeruser user) { ClassPathXmlApplicationContext ap = new ClassPathXmlApplicationContext( "/applicationContext.xml"); JobseekeruserDAO jdo = (JobseekeruserDAO) ap.getBean("personDao"); //System.out.println("insert Start!"); try { jdo.save(user); } catch (Exception ex) { //System.out.println(ex.getLocalizedMessage()); return false; } //System.out.println("insert end!"); return true; } }[/code] 其他的是spring与hibernate生成的JobseekeruserDAO.java(略) 而在.net端调用时出现的错错误以下: [list] [*] [*] Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer [/list]
在中国程序员是青春饭吗?
今年,我也32了 ,为了不给大家误导,咨询了猎头、圈内好友,以及年过35岁的几位老程序员……舍了老脸去揭人家伤疤……希望能给大家以帮助,记得帮我点赞哦。 目录: 你以为的人生 一次又一次的伤害 猎头界的真相 如何应对互联网行业的「中年危机」 一、你以为的人生 刚入行时,拿着傲人的工资,想着好好干,以为我们的人生是这样的: 等真到了那一天,你会发现,你的人生很可能是这样的: ...
《MySQL 性能优化》之理解 MySQL 体系结构
本文介绍 MySQL 的体系结构,包括物理结构、逻辑结构以及插件式存储引擎。
程序员请照顾好自己,周末病魔差点一套带走我。
程序员在一个周末的时间,得了重病,差点当场去世,还好及时挽救回来了。
复习一周,京东+百度一面,不小心都拿了Offer
京东和百度一面都问了啥,面试官百般刁难,可惜我全会。
Java 14 都快来了,为什么还有这么多人固守Java 8?
从Java 9开始,Java版本的发布就让人眼花缭乱了。每隔6个月,都会冒出一个新版本出来,Java 10 , Java 11, Java 12, Java 13, 到2020年3月份,...
达摩院十大科技趋势发布:2020 非同小可!
【CSDN编者按】1月2日,阿里巴巴发布《达摩院2020十大科技趋势》,十大科技趋势分别是:人工智能从感知智能向认知智能演进;计算存储一体化突破AI算力瓶颈;工业互联网的超融合;机器间大规模协作成为可能;模块化降低芯片设计门槛;规模化生产级区块链应用将走入大众;量子计算进入攻坚期;新材料推动半导体器件革新;保护数据隐私的AI技术将加速落地;云成为IT技术创新的中心 。 新的画卷,正在徐徐展开。...
轻松搭建基于 SpringBoot + Vue 的 Web 商城应用
首先介绍下在本文出现的几个比较重要的概念: 函数计算(Function Compute): 函数计算是一个事件驱动的服务,通过函数计算,用户无需管理服务器等运行情况,只需编写代码并上传。函数计算准备计算资源,并以弹性伸缩的方式运行用户代码,而用户只需根据实际代码运行所消耗的资源进行付费。Fun: Fun 是一个用于支持 Serverless 应用部署的工具,能帮助您便捷地管理函数计算、API ...
讲真,这两个IDE插件,可以让你写出质量杠杠的代码
周末躺在床上看《拯救大兵瑞恩》 周末在闲逛的时候,发现了两个优秀的 IDE 插件,据说可以提高代码的质量,我就安装了一下,试了试以后发现,确实很不错,就推荐给大家。 01、Alibaba Java 代码规范插件 《阿里巴巴 Java 开发手册》,相信大家都不会感到陌生,其 IDEA 插件的下载次数据说达到了 80 万次,我今天又贡献了一次。嘿嘿。 该项目的插件地址: https://github....
Python+OpenCV实时图像处理
目录 1、导入库文件 2、设计GUI 3、调用摄像头 4、实时图像处理 4.1、阈值二值化 4.2、边缘检测 4.3、轮廓检测 4.4、高斯滤波 4.5、色彩转换 4.6、调节对比度 5、退出系统 初学OpenCV图像处理的小伙伴肯定对什么高斯函数、滤波处理、阈值二值化等特性非常头疼,这里给各位分享一个小项目,可通过摄像头实时动态查看各类图像处理的特点,也可对各位调参、测试...
2020年一线城市程序员工资大调查
人才需求 一线城市共发布岗位38115个,招聘120827人。 其中 beijing 22805 guangzhou 25081 shanghai 39614 shenzhen 33327 工资分布 2020年中国一线城市程序员的平均工资为16285元,工资中位数为14583元,其中95%的人的工资位于5000到20000元之间。 和往年数据比较: yea...
为什么猝死的都是程序员,基本上不见产品经理猝死呢?
相信大家时不时听到程序员猝死的消息,但是基本上听不到产品经理猝死的消息,这是为什么呢? 我们先百度搜一下:程序员猝死,出现将近700多万条搜索结果: 搜索一下:产品经理猝死,只有400万条的搜索结果,从搜索结果数量上来看,程序员猝死的搜索结果就比产品经理猝死的搜索结果高了一倍,而且从下图可以看到,首页里面的五条搜索结果,其实只有两条才是符合条件。 所以程序员猝死的概率真的比产品经理大,并不是错...
害怕面试被问HashMap?这一篇就搞定了!
声明:本文以jdk1.8为主! 搞定HashMap 作为一个Java从业者,面试的时候肯定会被问到过HashMap,因为对于HashMap来说,可以说是Java集合中的精髓了,如果你觉得自己对它掌握的还不够好,我想今天这篇文章会非常适合你,至少,看了今天这篇文章,以后不怕面试被问HashMap了 其实在我学习HashMap的过程中,我个人觉得HashMap还是挺复杂的,如果真的想把它搞得明明白...
毕业5年,我问遍了身边的大佬,总结了他们的学习方法
我问了身边10个大佬,总结了他们的学习方法,原来成功都是有迹可循的。
python爬取百部电影数据,我分析出了一个残酷的真相
2019年就这么匆匆过去了,就在前几天国家电影局发布了2019年中国电影市场数据,数据显示去年总票房为642.66亿元,同比增长5.4%;国产电影总票房411.75亿元,同比增长8.65%,市场占比 64.07%;城市院线观影人次17.27亿,同比增长0.64%。 看上去似乎是一片大好对不对?不过作为一名严谨求实的数据分析师,我从官方数据中看出了一点端倪:国产票房增幅都已经高达8.65%了,为什...
推荐10个堪称神器的学习网站
每天都会收到很多读者的私信,问我:“二哥,有什么推荐的学习网站吗?最近很浮躁,手头的一些网站都看烦了,想看看二哥这里有什么新鲜货。” 今天一早做了个恶梦,梦到被老板辞退了。虽然说在我们公司,只有我辞退老板的份,没有老板辞退我这一说,但是还是被吓得 4 点多都起来了。(主要是因为我掌握着公司所有的核心源码,哈哈哈) 既然 4 点多起来,就得好好利用起来。于是我就挑选了 10 个堪称神器的学习网站,推...
这些软件太强了,Windows必装!尤其程序员!
Windows可谓是大多数人的生产力工具,集娱乐办公于一体,虽然在程序员这个群体中都说苹果是信仰,但是大部分不都是从Windows过来的,而且现在依然有很多的程序员用Windows。 所以,今天我就把我私藏的Windows必装的软件分享给大家,如果有一个你没有用过甚至没有听过,那你就赚了????,这可都是提升你幸福感的高效率生产力工具哦! 走起!???? NO、1 ScreenToGif 屏幕,摄像头和白板...
阿里面试,面试官没想到一个ArrayList,我都能跟他扯半小时
我是真的没想到,面试官会这样问我ArrayList。
曾经优秀的人,怎么就突然不优秀了。
职场上有很多辛酸事,很多合伙人出局的故事,很多技术骨干被裁员的故事。说来模板都类似,曾经是名校毕业,曾经是优秀员工,曾经被领导表扬,曾经业绩突出,然而突然有一天,因为种种原因,被裁员了,...
大学四年因为知道了这32个网站,我成了别人眼中的大神!
依稀记得,毕业那天,我们导员发给我毕业证的时候对我说“你可是咱们系的风云人物啊”,哎呀,别提当时多开心啦????,嗯,我们导员是所有导员中最帅的一个,真的???? 不过,导员说的是实话,很多人都叫我大神的,为啥,因为我知道这32个网站啊,你说强不强????,这次是绝对的干货,看好啦,走起来! PS:每个网站都是学计算机混互联网必须知道的,真的牛杯,我就不过多介绍了,大家自行探索,觉得没用的,尽管留言吐槽吧???? 社...
良心推荐,我珍藏的一些Chrome插件
上次搬家的时候,发了一个朋友圈,附带的照片中不小心暴露了自己的 Chrome 浏览器插件之多,于是就有小伙伴评论说分享一下我觉得还不错的浏览器插件。 我下面就把我日常工作和学习中经常用到的一些 Chrome 浏览器插件分享给大家,随便一个都能提高你的“生活品质”和工作效率。 Markdown Here Markdown Here 可以让你更愉快的写邮件,由于支持 Markdown 直接转电子邮...
看完这篇HTTP,跟面试官扯皮就没问题了
我是一名程序员,我的主要编程语言是 Java,我更是一名 Web 开发人员,所以我必须要了解 HTTP,所以本篇文章就来带你从 HTTP 入门到进阶,看完让你有一种恍然大悟、醍醐灌顶的感觉。 最初在有网络之前,我们的电脑都是单机的,单机系统是孤立的,我还记得 05 年前那会儿家里有个电脑,想打电脑游戏还得两个人在一个电脑上玩儿,及其不方便。我就想为什么家里人不让上网,我的同学 xxx 家里有网,每...
2020 年,大火的 Python 和 JavaScript 是否会被取而代之?
Python 和 JavaScript 是目前最火的两大编程语言,但是2020 年,什么编程语言将会取而代之呢? 作者 |Richard Kenneth Eng 译者 |明明如月,责编 | 郭芮 出品 | CSDN(ID:CSDNnews) 以下为译文: Python 和 JavaScript 是目前最火的两大编程语言。然而,他们不可能永远屹立不倒。最终,必将像其他编程语言一...
史上最全的IDEA快捷键总结
现在Idea成了主流开发工具,这篇博客对其使用的快捷键做了总结,希望对大家的开发工作有所帮助。
阿里程序员写了一个新手都写不出的低级bug,被骂惨了。
这种新手都不会范的错,居然被一个工作好几年的小伙子写出来,差点被当场开除了。
谁是华为扫地僧?
是的,华为也有扫地僧!2020年2月11-12日,“养在深闺人不知”的华为2012实验室扫地僧们,将在华为开发者大会2020(Cloud)上,和大家见面。到时,你可以和扫地僧们,吃一个洋...
Idea 中最常用的10款插件(提高开发效率),一定要学会使用!
学习使用一些插件,可以提高开发效率。对于我们开发人员很有帮助。这篇博客介绍了开发中使用的插件。
AI 没让人类失业,搞 AI 的人先失业了
最近和几个 AI 领域的大佬闲聊 根据他们讲的消息和段子 改编出下面这个故事 如有雷同 都是巧合 1. 老王创业失败,被限制高消费 “这里写我跑路的消息实在太夸张了。” 王葱葱哼笑一下,把消息分享给群里。 阿杰也看了消息,笑了笑。在座几位也都笑了。 王葱葱是个有名的人物,21岁那年以全额奖学金进入 KMU 攻读人工智能博士,累计发表论文 40 余篇,个人技术博客更是成为深度学习领域内风向标。 ...
2020年,冯唐49岁:我给20、30岁IT职场年轻人的建议
点击“技术领导力”关注∆每天早上8:30推送 作者|Mr.K 编辑| Emma 来源|技术领导力(ID:jishulingdaoli) 前天的推文《冯唐:职场人35岁以后,方法论比经验重要》,收到了不少读者的反馈,觉得挺受启发。其实,冯唐写了不少关于职场方面的文章,都挺不错的。可惜大家只记住了“春风十里不如你”、“如何避免成为油腻腻的中年人”等不那么正经的文章。 本文整理了冯...
作为一名大学生,如何在B站上快乐的学习?
B站是个宝,谁用谁知道???? 作为一名大学生,你必须掌握的一项能力就是自学能力,很多看起来很牛X的人,你可以了解下,人家私底下一定是花大量的时间自学的,你可能会说,我也想学习啊,可是嘞,该学习啥嘞,不怕告诉你,互联网时代,最不缺的就是学习资源,最宝贵的是啥? 你可能会说是时间,不,不是时间,而是你的注意力,懂了吧! 那么,你说学习资源多,我咋不知道,那今天我就告诉你一个你必须知道的学习的地方,人称...
那些年,我们信了课本里的那些鬼话
教材永远都是有错误的,从小学到大学,我们不断的学习了很多错误知识。 斑羚飞渡 在我们学习的很多小学课文里,有很多是错误文章,或者说是假课文。像《斑羚飞渡》: 随着镰刀头羊的那声吼叫,整个斑羚群迅速分成两拨,老年斑羚为一拨,年轻斑羚为一拨。 就在这时,我看见,从那拨老斑羚里走出一只公斑羚来。公斑羚朝那拨年轻斑羚示意性地咩了一声,一只半大的斑羚应声走了出来。一老一少走到伤心崖,后退了几步,突...
一个程序在计算机中是如何运行的?超级干货!!!
强烈声明:本文很干,请自备茶水!???? 开门见山,咱不说废话! 你有没有想过,你写的程序,是如何在计算机中运行的吗?比如我们搞Java的,肯定写过这段代码 public class HelloWorld { public static void main(String[] args) { System.out.println("Hello World!"); } ...
【蘑菇街技术部年会】程序员与女神共舞,鼻血再次没止住。(文末内推)
蘑菇街技术部的年会,别开生面,一样全是美女。
那个在阿里养猪的工程师,5年了……
简介: 在阿里,走过1825天,没有趴下,依旧斗志满满,被称为“五年陈”。他们会被授予一枚戒指,过程就叫做“授戒仪式”。今天,咱们听听阿里的那些“五年陈”们的故事。 下一个五年,猪圈见! 我就是那个在养猪场里敲代码的工程师,一年多前我和20位工程师去了四川的猪场,出发前总架构师慷慨激昂的说:同学们,中国的养猪产业将因为我们而改变。但到了猪场,发现根本不是那么回事:要个WIFI,没有;...
为什么程序猿都不愿意去外包?
分享外包的组织架构,盈利模式,亲身经历,以及根据一些外包朋友的反馈,写了这篇文章 ,希望对正在找工作的老铁有所帮助
Java校招入职华为,半年后我跑路了
何来 我,一个双非本科弟弟,有幸在 19 届的秋招中得到前东家华为(以下简称 hw)的赏识,当时秋招签订就业协议,说是入了某 java bg,之后一系列组织架构调整原因等等让人无法理解的神操作,最终毕业前夕,被通知调往其他 bg 做嵌入式开发(纯 C 语言)。 由于已至于校招末尾,之前拿到的其他 offer 又无法再收回,一时感到无力回天,只得默默接受。 毕业后,直接入职开始了嵌入式苦旅,由于从未...
世界上有哪些代码量很少,但很牛逼很经典的算法或项目案例?
点击上方蓝字设为星标下面开始今天的学习~今天分享四个代码量很少,但很牛逼很经典的算法或项目案例。1、no code 项目地址:https://github.com/kelseyhight...
​两年前不知如何编写代码的我,现在是一名人工智能工程师
全文共3526字,预计学习时长11分钟 图源:Unsplash 经常有小伙伴私信给小芯,我没有编程基础,不会写代码,如何进入AI行业呢?还能赶上AI浪潮吗? 任何时候努力都不算晚。 下面,小芯就给大家讲一个朋友的真实故事,希望能给那些处于迷茫与徘徊中的小伙伴们一丝启发。(下文以第一人称叙述) 图源:Unsplash 正如Elsa所说,职业转换是...
强烈推荐10本程序员必读的书
很遗憾,这个春节注定是刻骨铭心的,新型冠状病毒让每个人的神经都是紧绷的。那些处在武汉的白衣天使们,尤其值得我们的尊敬。而我们这些窝在家里的程序员,能不外出就不外出,就是对社会做出的最大的贡献。 有些读者私下问我,窝了几天,有点颓丧,能否推荐几本书在家里看看。我花了一天的时间,挑选了 10 本我最喜欢的书,你可以挑选感兴趣的来读一读。读书不仅可以平复恐惧的压力,还可以对未来充满希望,毕竟苦难终将会...
作为一个程序员,内存的这些硬核知识你必须懂!
我们之前讲过CPU,也说了CPU和内存的那点事儿,今天咱就再来说说有关内存,作为一个程序员,你必须要懂的哪那些硬核知识! 大白话聊一聊,很重要! 先来大白话的跟大家聊一聊,我们这里说的内存啊,其实就是说的我们电脑里面的内存条,所以嘞,内存就是内存条,数据要放在这上面才能被cpu读取从而做运算,还有硬盘,就是电脑中的C盘啥的,一个程序需要运行的话需要向内存申请一块独立的内存空间,这个程序本身是存放在...
非典逼出了淘宝和京东,新冠病毒能够逼出什么?
loonggg读完需要5分钟速读仅需 2 分钟大家好,我是你们的校长。我知道大家在家里都憋坏了,大家可能相对于封闭在家里“坐月子”,更希望能够早日上班。今天我带着大家换个思路来聊一个问题...
牛逼!一行代码居然能解决这么多曾经困扰我半天的算法题
春节假期这么长,干啥最好?当然是折腾一些算法题了,下面给大家讲几道一行代码就能解决的算法题,当然,我相信这些算法题你都做过,不过就算做过,也是可以看一看滴,毕竟,你当初大概率不是一行代码解决的。 学会了一行代码解决,以后遇到面试官问起的话,就可以装逼了。 一、2 的幂次方 问题描述:判断一个整数 n 是否为 2 的幂次方 对于这道题,常规操作是不断这把这个数除以 2,然后判断是否有余数,直到 ...
立即提问