Hi everyone
I am interested in this idea: Improve Existing Hawkular-Android client. I
have experience in Java and Android. I have already hawkular-android-client
on my Android Studio, but not connect to the Web Admin.
My client version is 1.0.0 Alpha3 and sever is 1.0.0 Alpha9. I am on a
local network from my laptop and phone android. I try connect to the URL
192.168.0.106 with por 18080 from hawcular-android-client I get the
following error in my console:
03-19 15:24:17.167 30343-31518/org.hawkular.client.android
E/HttpRestProvider﹕ Error on POST of
http://192.168.0.106:18080/secret-store/v1/tokens/create
java.net.ConnectException: failed to connect to /192.168.0.106 (port
18080): connect failed: ECONNREFUSED (Connection refused)
at libcore.io.IoBridge.connect(IoBridge.java:114)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:192)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:459)
at java.net.Socket.connect(Socket.java:872)
at
libcore.net.http.HttpConnection.<init>(HttpConnection.java:76)
at
libcore.net.http.HttpConnection.<init>(HttpConnection.java:50)
at
libcore.net.http.HttpConnection$Address.connect(HttpConnection.java:340)
at
libcore.net.http.HttpConnectionPool.get(HttpConnectionPool.java:87)
at
libcore.net.http.HttpConnection.connect(HttpConnection.java:128)
at
libcore.net.http.HttpEngine.openSocketConnection(HttpEngine.java:315)
at libcore.net.http.HttpEngine.connect(HttpEngine.java:310)
at
libcore.net.http.HttpEngine.sendSocketRequest(HttpEngine.java:289)
at libcore.net.http.HttpEngine.sendRequest(HttpEngine.java:239)
at
libcore.net.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:80)
at
libcore.net.http.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:188)
at
org.jboss.aerogear.android.pipe.http.HttpRestProvider.addBodyRequest(HttpRestProvider.java:220)
at
org.jboss.aerogear.android.pipe.http.HttpRestProvider.post(HttpRestProvider.java:148)
at
org.jboss.aerogear.android.pipe.http.HttpRestProvider.post(HttpRestProvider.java:135)
at
org.hawkular.client.android.auth.SecretStoreAuthzModule$2.doInBackground(SecretStoreAuthzModule.java:117)
at
org.hawkular.client.android.auth.SecretStoreAuthzModule$2.doInBackground(SecretStoreAuthzModule.java:105)
at android.os.AsyncTask$2.call(AsyncTask.java:287)
at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
at java.util.concurrent.FutureTask.run(FutureTask.java:137)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
at java.lang.Thread.run(Thread.java:864)
Caused by: libcore.io.ErrnoException: connect failed: ECONNREFUSED
(Connection refused)
at libcore.io.Posix.connect(Native Method)
at libcore.io.BlockGuardOs.connect(BlockGuardOs.java:85)
at libcore.io.IoBridge.connectErrno(IoBridge.java:127)
at libcore.io.IoBridge.connect(IoBridge.java:112)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:192)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:459)
at java.net.Socket.connect(Socket.java:872)
at
libcore.net.http.HttpConnection.<init>(HttpConnection.java:76)
at
libcore.net.http.HttpConnection.<init>(HttpConnection.java:50)
at
libcore.net.http.HttpConnection$Address.connect(HttpConnection.java:340)
at
libcore.net.http.HttpConnectionPool.get(HttpConnectionPool.java:87)
at
libcore.net.http.HttpConnection.connect(HttpConnection.java:128)
at
libcore.net.http.HttpEngine.openSocketConnection(HttpEngine.java:315)
at libcore.net.http.HttpEngine.connect(HttpEngine.java:310)
at
libcore.net.http.HttpEngine.sendSocketRequest(HttpEngine.java:289)
at libcore.net.http.HttpEngine.sendRequest(HttpEngine.java:239)
at
libcore.net.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:80)
at
libcore.net.http.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:188)
at
org.jboss.aerogear.android.pipe.http.HttpRestProvider.addBodyRequest(HttpRestProvider.java:220)
at
org.jboss.aerogear.android.pipe.http.HttpRestProvider.post(HttpRestProvider.java:148)
at
org.jboss.aerogear.android.pipe.http.HttpRestProvider.post(HttpRestProvider.java:135)
at
org.hawkular.client.android.auth.SecretStoreAuthzModule$2.doInBackground(SecretStoreAuthzModule.java:117)
at
org.hawkular.client.android.auth.SecretStoreAuthzModule$2.doInBackground(SecretStoreAuthzModule.java:105)
at android.os.AsyncTask$2.call(AsyncTask.java:287)
at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
at java.util.concurrent.FutureTask.run(FutureTask.java:137)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
at java.lang.Thread.run(Thread.java:864)
03-19 15:24:17.167 30343-31518/org.hawkular.client.android
D/SecretStoreAuthzModule﹕ SecretStoreAuthzModule
03-19 15:24:17.187 30343-30343/org.hawkular.client.android
D/LoginActivity﹕ Authorization failed.
java.lang.RuntimeException: java.net.ConnectException: failed to
connect to /192.168.0.106 (port 18080): connect failed: ECONNREFUSED
(Connection refused)
at
org.jboss.aerogear.android.pipe.http.HttpRestProvider.post(HttpRestProvider.java:153)
at
org.jboss.aerogear.android.pipe.http.HttpRestProvider.post(HttpRestProvider.java:135)
at
org.hawkular.client.android.auth.SecretStoreAuthzModule$2.doInBackground(SecretStoreAuthzModule.java:117)
at
org.hawkular.client.android.auth.SecretStoreAuthzModule$2.doInBackground(SecretStoreAuthzModule.java:105)
at android.os.AsyncTask$2.call(AsyncTask.java:287)
at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
at java.util.concurrent.FutureTask.run(FutureTask.java:137)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
at java.lang.Thread.run(Thread.java:864)
Caused by: java.net.ConnectException: failed to connect to /
192.168.0.106 (port 18080): connect failed: ECONNREFUSED (Connection
refused)
at libcore.io.IoBridge.connect(IoBridge.java:114)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:192)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:459)
at java.net.Socket.connect(Socket.java:872)
at
libcore.net.http.HttpConnection.<init>(HttpConnection.java:76)
at
libcore.net.http.HttpConnection.<init>(HttpConnection.java:50)
at
libcore.net.http.HttpConnection$Address.connect(HttpConnection.java:340)
at
libcore.net.http.HttpConnectionPool.get(HttpConnectionPool.java:87)
at
libcore.net.http.HttpConnection.connect(HttpConnection.java:128)
at
libcore.net.http.HttpEngine.openSocketConnection(HttpEngine.java:315)
at libcore.net.http.HttpEngine.connect(HttpEngine.java:310)
at
libcore.net.http.HttpEngine.sendSocketRequest(HttpEngine.java:289)
at libcore.net.http.HttpEngine.sendRequest(HttpEngine.java:239)
at
libcore.net.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:80)
at
libcore.net.http.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:188)
at
org.jboss.aerogear.android.pipe.http.HttpRestProvider.addBodyRequest(HttpRestProvider.java:220)
at
org.jboss.aerogear.android.pipe.http.HttpRestProvider.post(HttpRestProvider.java:148)
at
org.jboss.aerogear.android.pipe.http.HttpRestProvider.post(HttpRestProvider.java:135)
at
org.hawkular.client.android.auth.SecretStoreAuthzModule$2.doInBackground(SecretStoreAuthzModule.java:117)
at
org.hawkular.client.android.auth.SecretStoreAuthzModule$2.doInBackground(SecretStoreAuthzModule.java:105)
at android.os.AsyncTask$2.call(AsyncTask.java:287)
at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
at java.util.concurrent.FutureTask.run(FutureTask.java:137)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
at java.lang.Thread.run(Thread.java:864)
Caused by: libcore.io.ErrnoException: connect failed: ECONNREFUSED
(Connection refused)
at libcore.io.Posix.connect(Native Method)
at libcore.io.BlockGuardOs.connect(BlockGuardOs.java:85)
at libcore.io.IoBridge.connectErrno(IoBridge.java:127)
at libcore.io.IoBridge.connect(IoBridge.java:112)
Someone can lend a hand with this
Rodrigo Garcete