sapia-oss / corus

Corus server
http://www.sapia-oss.org/projects/corus/index.html
GNU General Public License v3.0
2 stars 1 forks source link

Rest API command failing with NoRouteToHostException #60

Open jcdesrochers opened 6 years ago

jcdesrochers commented 6 years ago

Result from sending a PUT request to the /properties/process API to set a new process properties in the cluster:

{"status":500,"stackTrace":"java.lang.reflect.UndeclaredThrowableException
    at com.sun.proxy.$Proxy35.addProperties(Unknown Source)
    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:498)
    at org.sapia.corus.http.rest.RestConnectionContext.doInvoke(RestConnectionContext.java:285)
    at org.sapia.corus.http.rest.RestConnectionContext.invoke(RestConnectionContext.java:220)
    at org.sapia.corus.client.facade.DefaultInvocationDispatcher.invoke(DefaultInvocationDispatcher.java:35)
    at org.sapia.corus.client.facade.impl.ClusterInvoker.invokeLenient(ClusterInvoker.java:84)
    at org.sapia.corus.client.facade.impl.ConfiguratorFacadeImpl.addProperties(ConfiguratorFacadeImpl.java:62)
    at org.sapia.corus.client.rest.resources.PropertiesWriteResource.doAddProperties(PropertiesWriteResource.java:255)
    at org.sapia.corus.client.rest.resources.PropertiesWriteResource.addPropertiesForCluster(PropertiesWriteResource.java:70)
    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:498)
    at org.sapia.corus.client.rest.RestContainer.invoke(RestContainer.java:420)
    at org.sapia.corus.http.rest.RestExtension.processRequest(RestExtension.java:225)
    at org.sapia.corus.http.rest.RestExtension.process(RestExtension.java:186)
    at org.sapia.corus.http.HttpExtensionManager.doHandle(HttpExtensionManager.java:138)
    at org.sapia.corus.http.HttpExtensionManager.handle(HttpExtensionManager.java:90)
    at org.sapia.ubik.rmi.server.transport.http.Router.handle(Router.java:69)
    at org.simpleframework.http.core.Dispatcher.dispatch(Dispatcher.java:121)
    at org.simpleframework.http.core.Dispatcher.run(Dispatcher.java:103)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.net.NoRouteToHostException: No route to host (Host unreachable)
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    at java.net.Socket.connect(Socket.java:589)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:463)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:558)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:242)
    at sun.net.www.http.HttpClient.New(HttpClient.java:339)
    at sun.net.www.http.HttpClient.New(HttpClient.java:357)
    at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1220)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1156)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1050)
    at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:984)
    at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1334)
    at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1309)
    at org.sapia.ubik.rmi.server.transport.http.JdkRmiClientConnection.send(JdkRmiClientConnection.java:97)
    at org.sapia.ubik.rmi.server.transport.http.JdkRmiClientConnection.send(JdkRmiClientConnection.java:155)
    at org.sapia.corus.cluster.ServerSideClusterInterceptor.send(ServerSideClusterInterceptor.java:119)
    at org.sapia.corus.client.services.cluster.ClusteredCommand.cascade(ClusteredCommand.java:159)
    at org.sapia.corus.client.services.cluster.ClusteredCommand.execute(ClusteredCommand.java:129)
    at org.sapia.ubik.rmi.server.transport.CommandHandler.doHandleCommand(CommandHandler.java:74)
    at org.sapia.ubik.rmi.server.transport.CommandHandler.handleCommand(CommandHandler.java:50)
    at org.sapia.ubik.rmi.server.transport.http.UbikHttpHandler.doHandle(UbikHttpHandler.java:65)
    at org.sapia.ubik.rmi.server.transport.http.UbikHttpHandler.access$100(UbikHttpHandler.java:21)
    at org.sapia.ubik.rmi.server.transport.http.UbikHttpHandler$1.run(UbikHttpHandler.java:41)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
    at org.sapia.ubik.rmi.server.stub.RemoteRefEx.invoke(RemoteRefEx.java:76)
    ... 27 more
","feedback":[]}