Hi all!

When I test Hessian service (resin-doc) I have error UnknownHostException:
===

com.caucho.hessian.client.HessianRuntimeException:
java.net.UnknownHostException:
default
        at 
com.caucho.hessian.client.HessianProxy.sendRequest(HessianProxy.java:321)
        at com.caucho.hessian.client.HessianProxy.invoke(HessianProxy.java:166)
        at $Proxy37.add(Unknown Source)
        at _jsp._demo__jsp._jspService(demo.jsp:7)
        at _jsp._demo__jsp._jspService(demo.jsp:5)
        at com.caucho.jsp.JavaPage.service(JavaPage.java:61)
        at com.caucho.jsp.Page.pageservice(Page.java:580)
        at 
com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:195)
        at 
com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:189)
        at 
com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:266)
        at 
com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:292)
        at 
com.caucho.server.port.TcpConnection.handleRequests(TcpConnection.java:577)
        at 
com.caucho.server.port.TcpConnection$AcceptTask.doAccept(TcpConnection.java:1211)
        at 
com.caucho.server.port.TcpConnection$AcceptTask.run(TcpConnection.java:1152)
        at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:759)
        at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:681)
        at java.lang.Thread.run(Thread.java:595)
Caused by: java.net.UnknownHostException: default
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
        at java.net.Socket.connect(Socket.java:520)
        at java.net.Socket.connect(Socket.java:470)
        at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:388)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:523)
        at sun.net.www.http.HttpClient.<init>(HttpClient.java:231)
        at sun.net.www.http.HttpClient.New(HttpClient.java:304)
        at sun.net.www.http.HttpClient.New(HttpClient.java:321)
        at 
sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:813)
        at 
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:765)
        at 
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:690)
        at 
sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:857)
        at 
com.caucho.hessian.client.HessianProxy.sendRequest(HessianProxy.java:319)
        at com.caucho.hessian.client.HessianProxy.invoke(HessianProxy.java:166)
        at $Proxy37.add(Unknown Source)
        at _jsp._demo__jsp._jspService(demo.jsp:7)
        at _jsp._demo__jsp._jspService(demo.jsp:5)
        at com.caucho.jsp.JavaPage.service(JavaPage.java:61)
        at com.caucho.jsp.Page.pageservice(Page.java:580)
        at 
com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:195)
        at 
com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:189)
        at 
com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:266)
        at 
com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:292)
        at 
com.caucho.server.port.TcpConnection.handleRequests(TcpConnection.java:577)
        at 
com.caucho.server.port.TcpConnection$AcceptTask.doAccept(TcpConnection.java:1211)
        at 
com.caucho.server.port.TcpConnection$AcceptTask.run(TcpConnection.java:1152)
        at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:759)
        at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:681)
        at java.lang.Thread.run(Thread.java:595)

===

If I change in resin-web.xml
===
<uri>hessian:url=${webApp.url}/math/</uri>
===

to
===
<uri>hessian:url=http://myhost:8080/resin-doc/examples/hessian-service/math/
</uri>
===
demo can work properly.

-- 
Sincerely yours,
Vitaliy Berdinskikh (Виталий Бердинских)
_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to