Hetty icon indicating copy to clipboard operation
Hetty copied to clipboard

入门级问题 望解答

Open aChenspring opened this issue 7 years ago • 2 comments

Exception in thread "main" com.caucho.hessian.client.HessianConnectionException: HessianProxy cannot connect to 'http://localhost:8081/apis/hello/ at com.caucho.hessian.client.HessianURLConnection.sendRequest(HessianURLConnection.java:139) at com.caucho.hessian.client.HessianProxy.sendRequest(HessianProxy.java:283) at com.caucho.hessian.client.HessianProxy.invoke(HessianProxy.java:170) at com.sun.proxy.$Proxy0.hello(Unknown Source) at com.hetty.Test.main(Test.java:30) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144) Caused by: java.io.FileNotFoundException: http://localhost:8081/apis/hello/ at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:422) at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1890) at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1885) at java.security.AccessController.doPrivileged(Native Method) at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1884) at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1457) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441) at com.caucho.hessian.client.HessianURLConnection.sendRequest(HessianURLConnection.java:122) ... 9 more Caused by: java.io.FileNotFoundException: http://localhost:8081/apis/hello/ at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1836) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441) at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480) at com.caucho.hessian.client.HessianURLConnection.sendRequest(HessianURLConnection.java:109) ... 9 more

Process finished with exit code 1

aChenspring avatar May 18 '17 07:05 aChenspring

客户端调用时发生的错误,谢谢

aChenspring avatar May 18 '17 07:05 aChenspring

Received.Kyrin

KyrinCode avatar Feb 01 '24 15:02 KyrinCode