Skip to content

Instantly share code, notes, and snippets.

@molikto
Last active July 26, 2016 04:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save molikto/6bec90d31e0dc12c317dbf985edd9a78 to your computer and use it in GitHub Desktop.
Save molikto/6bec90d31e0dc12c317dbf985edd9a78 to your computer and use it in GitHub Desktop.
java.lang.SecurityException: Permission denied (missing INTERNET permission?)
	at java.net.InetAddress.lookupHostByName(InetAddress.java:418)
	at java.net.InetAddress.getAllByNameImpl(InetAddress.java:236)
	at java.net.InetAddress.getByName(InetAddress.java:289)
	at com.mixpanel.android.util.HttpService$1.run(HttpService.java:38)
	at java.lang.Thread.run(Thread.java:841)
Caused by: libcore.io.GaiException: getaddrinfo failed: EAI_NODATA (No address associated with hostname)
	at libcore.io.Posix.getaddrinfo(Posix.java)
	at libcore.io.ForwardingOs.getaddrinfo(ForwardingOs.java:61)
	at java.net.InetAddress.lookupHostByName(InetAddress.java:405)
	... 4 more
Caused by: libcore.io.ErrnoException: getaddrinfo failed: EACCES (Permission denied)
	... 7 more
libcore.io.GaiException: getaddrinfo failed: EAI_NODATA (No address associated with hostname)
	at libcore.io.Posix.getaddrinfo(Posix.java)
	at libcore.io.ForwardingOs.getaddrinfo(ForwardingOs.java:61)
	at java.net.InetAddress.lookupHostByName(InetAddress.java:405)
	at java.net.InetAddress.getAllByNameImpl(InetAddress.java:236)
	at java.net.InetAddress.getByName(InetAddress.java:289)
	at com.mixpanel.android.util.HttpService$1.run(HttpService.java:38)
	at java.lang.Thread.run(Thread.java:841)
Caused by: libcore.io.ErrnoException: getaddrinfo failed: EACCES (Permission denied)
	... 7 more
libcore.io.ErrnoException: getaddrinfo failed: EACCES (Permission denied)
	at libcore.io.Posix.getaddrinfo(Posix.java)
	at libcore.io.ForwardingOs.getaddrinfo(ForwardingOs.java:61)
	at java.net.InetAddress.lookupHostByName(InetAddress.java:405)
	at java.net.InetAddress.getAllByNameImpl(InetAddress.java:236)
	at java.net.InetAddress.getByName(InetAddress.java:289)
	at com.mixpanel.android.util.HttpService$1.run(HttpService.java:38)
	at java.lang.Thread.run(Thread.java:841)
java.lang.AssertionError: libcore.io.ErrnoException: getsockname failed: ENOTSOCK (Socket operation on non-socket)
	at libcore.io.IoBridge.getSocketLocalPort(IoBridge.java:649)
	at libcore.io.IoBridge.closeSocket(IoBridge.java:202)
	at java.net.PlainSocketImpl.close(PlainSocketImpl.java:162)
	at java.net.Socket.connect(Socket.java:867)
	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:117)
	at libcore.net.http.HttpEngine.openSocketConnection(HttpEngine.java:316)
	at libcore.net.http.HttpsURLConnectionImpl$HttpsEngine.makeSslConnection(HttpsURLConnectionImpl.java:461)
	at libcore.net.http.HttpsURLConnectionImpl$HttpsEngine.connect(HttpsURLConnectionImpl.java:433)
	at libcore.net.http.HttpEngine.sendSocketRequest(HttpEngine.java:290)
	at libcore.net.http.HttpEngine.sendRequest(HttpEngine.java:240)
	at libcore.net.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:292)
	at libcore.net.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:185)
	at libcore.net.http.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:271)
	at com.mixpanel.android.util.HttpService.performRequest(HttpService.java:124)
	at com.mixpanel.android.mpmetrics.DecideChecker.getUrls(DecideChecker.java:290)
	at com.mixpanel.android.mpmetrics.DecideChecker.getDecideResponseFromServer(DecideChecker.java:233)
	at com.mixpanel.android.mpmetrics.DecideChecker.runDecideCheck(DecideChecker.java:88)
	at com.mixpanel.android.mpmetrics.DecideChecker.runDecideChecks(DecideChecker.java:70)
	at com.mixpanel.android.mpmetrics.AnalyticsMessages$Worker$AnalyticsMessageHandler.handleMessage(AnalyticsMessages.java:278)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loop(Looper.java:153)
	at android.os.HandlerThread.run(HandlerThread.java:60)
Caused by: libcore.io.ErrnoException: getsockname failed: ENOTSOCK (Socket operation on non-socket)
	at libcore.io.Posix.getsockname(Posix.java)
	at libcore.io.ForwardingOs.getsockname(ForwardingOs.java:69)
	at libcore.io.IoBridge.getSocketLocalPort(IoBridge.java:645)
	... 25 more
libcore.io.ErrnoException: getsockname failed: ENOTSOCK (Socket operation on non-socket)
	at libcore.io.Posix.getsockname(Posix.java)
	at libcore.io.ForwardingOs.getsockname(ForwardingOs.java:69)
	at libcore.io.IoBridge.getSocketLocalPort(IoBridge.java:645)
	at libcore.io.IoBridge.closeSocket(IoBridge.java:202)
	at java.net.PlainSocketImpl.close(PlainSocketImpl.java:162)
	at java.net.Socket.connect(Socket.java:867)
	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:117)
	at libcore.net.http.HttpEngine.openSocketConnection(HttpEngine.java:316)
	at libcore.net.http.HttpsURLConnectionImpl$HttpsEngine.makeSslConnection(HttpsURLConnectionImpl.java:461)
	at libcore.net.http.HttpsURLConnectionImpl$HttpsEngine.connect(HttpsURLConnectionImpl.java:433)
	at libcore.net.http.HttpEngine.sendSocketRequest(HttpEngine.java:290)
	at libcore.net.http.HttpEngine.sendRequest(HttpEngine.java:240)
	at libcore.net.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:292)
	at libcore.net.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:185)
	at libcore.net.http.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:271)
	at com.mixpanel.android.util.HttpService.performRequest(HttpService.java:124)
	at com.mixpanel.android.mpmetrics.DecideChecker.getUrls(DecideChecker.java:290)
	at com.mixpanel.android.mpmetrics.DecideChecker.getDecideResponseFromServer(DecideChecker.java:233)
	at com.mixpanel.android.mpmetrics.DecideChecker.runDecideCheck(DecideChecker.java:88)
	at com.mixpanel.android.mpmetrics.DecideChecker.runDecideChecks(DecideChecker.java:70)
	at com.mixpanel.android.mpmetrics.AnalyticsMessages$Worker$AnalyticsMessageHandler.handleMessage(AnalyticsMessages.java:278)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loop(Looper.java:153)
	at android.os.HandlerThread.run(HandlerThread.java:60)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment