用java实现onvif抓图,为啥在发现设备时出现这个错误,有没有大神遇到过
Exception in thread "main" javax.xml.ws.WebServiceException: Could not send Message.
at org.apache.cxf.jaxws.JaxWsClientProxy.mapException(JaxWsClientProxy.java:183)
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:145)
at com.sun.proxy.$Proxy78.setSystemDateAndTime(Unknown Source)
at io.pallass.onvif.soap.OnvifDevice.resetSystemDateAndTime(OnvifDevice.java:301)
at io.pallass.onvif.soap.OnvifDevice.init(OnvifDevice.java:155)
at io.pallass.onvif.soap.OnvifDevice.<init>(OnvifDevice.java:110)
at io.pallass.onvif.soap.OnvifDevice.<init>(OnvifDevice.java:91)
at io.pallass.vms.nvg.Test1.main(Test1.java:14)
Caused by: org.apache.cxf.transport.http.HTTPException: HTTP response '404: Not Found' when communicating with http://192.168.1.123/onvif/device_service
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.doProcessResponseCode(HTTPConduit.java:1620)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1627)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1572)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1373)
at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:673)
at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:63)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:532)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:441)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:356)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:314)
at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96)
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:140)
... 6 more
Exception in thread "main" javax.xml.ws.WebServiceException: Could not send Message.
at org.apache.cxf.jaxws.JaxWsClientProxy.mapException(JaxWsClientProxy.java:183)
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:145)
at com.sun.proxy.$Proxy78.setSystemDateAndTime(Unknown Source)
at io.pallass.onvif.soap.OnvifDevice.resetSystemDateAndTime(OnvifDevice.java:301)
at io.pallass.onvif.soap.OnvifDevice.init(OnvifDevice.java:155)
at io.pallass.onvif.soap.OnvifDevice.<init>(OnvifDevice.java:110)
at io.pallass.onvif.soap.OnvifDevice.<init>(OnvifDevice.java:91)
at io.pallass.vms.nvg.Test1.main(Test1.java:14)
Caused by: org.apache.cxf.transport.http.HTTPException: HTTP response '404: Not Found' when communicating with http://192.168.1.123/onvif/device_service
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.doProcessResponseCode(HTTPConduit.java:1620)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1627)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1572)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1373)
at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:673)
at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:63)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:532)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:441)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:356)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:314)
at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96)
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:140)
... 6 more
解决方案 »
- 学习Java设计模式
- ssh需要导入哪些包?
- xmlbean生成文件的问题
- 读取图片问题
- 在这个程序中为什么str1的值总是null
- hibernate出错,org.hibernate.MappingException: Unknown entity: com.yourcompany.struts.form.UserNameForm
- JAVA怎么从数据库中取出来的中文字符,急
- 请问Web Services 中的几个术语!
- 新手提问,关于hibernate.properties和hibernate.cfg.xml的问题
- Tomcat 4.0 server does not support EJB service.该怎么办?
- 初级多线程的例子
- 我在使用activiti7的时候, 使用businessruletask,会报错。 无法使用。
检查下IP、端口、项目名、服务名,看看有没有写错。。