07-11 08:22:01.547: W/System.err(14045): java.io.FileNotFoundException: /data/data/com.example.googleplay/cache/home?index=0&: open failed: ENOENT (No such file or directory) 07-11 08:22:01.547: W/System.err(14045): at libcore.io.IoBridge.open(IoBridge.java:409) 07-11 08:22:01.547: W/System.err(14045): at java.io.FileInputStream.<init>(FileInputStream.java:78) 07-11 08:22:01.547: W/System.err(14045): at java.io.FileReader.<init>(FileReader.java:42) 07-11 08:22:01.547: W/System.err(14045): at com.example.googleplay.http.protocal.BaseProtocal.getCache(BaseProtocal.java:84) 07-11 08:22:01.547: W/System.err(14045): at com.example.googleplay.http.protocal.BaseProtocal.getData(BaseProtocal.java:25) 07-11 08:22:01.547: W/System.err(14045): at com.example.googleplay.ui.fragment.HomeFragment.onLoad(HomeFragment.java:45) 07-11 08:22:01.547: W/System.err(14045): at com.example.googleplay.ui.fragment.BaseFragment$1.onLoad(BaseFragment.java:39) 07-11 08:22:01.547: W/System.err(14045): at com.example.googleplay.view.LoadingPage$1.run(LoadingPage.java:108) 07-11 08:22:01.559: W/System.err(14045): Caused by: libcore.io.ErrnoException: open failed: ENOENT (No such file or directory) 07-11 08:22:01.559: W/System.err(14045): at libcore.io.Posix.open(Native Method) 07-11 08:22:01.559: W/System.err(14045): at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110) 07-11 08:22:01.563: W/System.err(14045): at libcore.io.IoBridge.open(IoBridge.java:393) 07-11 08:22:01.563: W/System.err(14045): ... 7 more 07-11 08:22:01.563: I/System.out(14045): url:http://127.0.0.1:8090/home?index=0 07-11 08:22:01.603: E/LogUtils(14045): org.apache.http.conn.HttpHostConnectException: Connection to http://127.0.0.1:8090 refused 07-11 08:22:01.603: E/LogUtils(14045): at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:183) 07-11 08:22:01.603: E/LogUtils(14045): at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164) 07-11 08:22:01.603: E/LogUtils(14045): at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119) 07-11 08:22:01.603: E/LogUtils(14045): at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:360) 07-11 08:22:01.603: E/LogUtils(14045): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555) 07-11 08:22:01.603: E/LogUtils(14045): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487) 07-11 08:22:01.603: E/LogUtils(14045): at com.example.googleplay.http.HttpHelper.execute(HttpHelper.java:61) 07-11 08:22:01.603: E/LogUtils(14045): at com.example.googleplay.http.HttpHelper.get(HttpHelper.java:34) 07-11 08:22:01.603: E/LogUtils(14045): at com.example.googleplay.http.protocal.BaseProtocal.getDataFromServer(BaseProtocal.java:46) 07-11 08:22:01.603: E/LogUtils(14045): at com.example.googleplay.http.protocal.BaseProtocal.getData(BaseProtocal.java:29) 07-11 08:22:01.603: E/LogUtils(14045): at com.example.googleplay.ui.fragment.HomeFragment.onLoad(HomeFragment.java:45) 07-11 08:22:01.603: E/LogUtils(14045): at com.example.googleplay.ui.fragment.BaseFragment$1.onLoad(BaseFragment.java:39) 07-11 08:22:01.603: E/LogUtils(14045): at com.example.googleplay.view.LoadingPage$1.run(LoadingPage.java:108) 07-11 08:22:01.603: E/LogUtils(14045): Caused by: java.net.ConnectException: socket failed: EACCES (Permission denied) 07-11 08:22:01.603: E/LogUtils(14045): at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:181) 07-11 08:22:01.603: E/LogUtils(14045): ... 12 more 07-11 08:22:01.603: E/LogUtils(14045): Caused by: java.net.SocketException: socket failed: EACCES (Permission denied) 07-11 08:22:01.603: E/LogUtils(14045): at libcore.io.IoBridge.socket(IoBridge.java:576) 07-11 08:22:01.603: E/LogUtils(14045): at java.net.PlainSocketImpl.create(PlainSocketImpl.java:201) 07-11 08:22:01.603: E/LogUtils(14045): at java.net.Socket.checkOpenAndCreate(Socket.java:663) 07-11 08:22:01.603: E/LogUtils(14045): at java.net.Socket.connect(Socket.java:807) 07-11 08:22:01.603: E/LogUtils(14045): at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:119) 07-11 08:22:01.603: E/LogUtils(14045): at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:144) 07-11 08:22:01.603: E/LogUtils(14045): ... 12 more 07-11 08:22:01.603: E/LogUtils(14045): Caused by: libcore.io.ErrnoException: socket failed: EACCES (Permission denied) 07-11 08:22:01.603: E/LogUtils(14045): at libcore.io.Posix.socket(Native Method) 07-11 08:22:01.603: E/LogUtils(14045): at libcore.io.BlockGuardOs.socket(BlockGuardOs.java:181) 07-11 08:22:01.603: E/LogUtils(14045): at libcore.io.IoBridge.socket(IoBridge.java:561) 07-11 08:22:01.603: E/LogUtils(14045): ... 17 more 07-11 08:22:01.615: E/LogUtils(14045): org.apache.http.conn.HttpHostConnectException: Connection to http://127.0.0.1:8090 refused 07-11 08:22:01.615: E/LogUtils(14045): at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:183) 07-11 08:22:01.615: E/LogUtils(14045): at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164) 07-11 08:22:01.615: E/LogUtils(14045): at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119) 07-11 08:22:01.615: E/LogUtils(14045): at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:360) 07-11 08:22:01.615: E/LogUtils(14045): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555) 07-11 08:22:01.615: E/LogUtils(14045): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487) 07-11 08:22:01.615: E/LogUtils(14045): at com.example.googleplay.http.HttpHelper.execute(HttpHelper.java:61) 07-11 08:22:01.615: E/LogUtils(14045): at com.example.googleplay.http.HttpHelper.get(HttpHelper.java:34) 07-11 08:22:01.615: E/LogUtils(14045): at com.example.googleplay.http.protocal.BaseProtocal.getDataFromServer(BaseProtocal.java:46) 07-11 08:22:01.615: E/LogUtils(14045): at com.example.googleplay.http.protocal.BaseProtocal.getData(BaseProtocal.java:29) 07-11 08:22:01.615: E/LogUtils(14045): at com.example.googleplay.ui.fragment.HomeFragment.onLoad(HomeFragment.java:45) 07-11 08:22:01.615: E/LogUtils(14045): at com.example.googleplay.ui.fragment.BaseFragment$1.onLoad(BaseFragment.java:39) 07-11 08:22:01.615: E/LogUtils(14045): at com.example.googleplay.view.LoadingPage$1.run(LoadingPage.java:108) 07-11 08:22:01.615: E/LogUtils(14045): Caused by: java.net.ConnectException: socket failed: EACCES (Permission denied) 07-11 08:22:01.615: E/LogUtils(14045): at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:181) 07-11 08:22:01.615: E/LogUtils(14045): ... 12 more 07-11 08:22:01.615: E/LogUtils(14045): Caused by: java.net.SocketException: socket failed: EACCES (Permission denied) 07-11 08:22:01.615: E/LogUtils(14045): at libcore.io.IoBridge.socket(IoBridge.java:576) 07-11 08:22:01.615: E/LogUtils(14045): at java.net.PlainSocketImpl.create(PlainSocketImpl.java:201) 07-11 08:22:01.615: E/LogUtils(14045): at java.net.Socket.checkOpenAndCreate(Socket.java:663) 07-11 08:22:01.615: E/LogUtils(14045): at java.net.Socket.connect(Socket.java:807) 07-11 08:22:01.615: E/LogUtils(14045): at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:119) 07-11 08:22:01.615: E/LogUtils(14045): at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:144) 07-11 08:22:01.615: E/LogUtils(14045): ... 12 more 07-11 08:22:01.615: E/LogUtils(14045): Caused by: libcore.io.ErrnoException: socket failed: EACCES (Permission denied) 07-11 08:22:01.615: E/LogUtils(14045): at libcore.io.Posix.socket(Native Method) 07-11 08:22:01.615: E/LogUtils(14045): at libcore.io.BlockGuardOs.socket(BlockGuardOs.java:181) 07-11 08:22:01.615: E/LogUtils(14045): at libcore.io.IoBridge.socket(IoBridge.java:561) 07-11 08:22:01.615: E/LogUtils(14045): ... 17 more 07-11 08:22:01.631: E/LogUtils(14045): org.apache.http.conn.HttpHostConnectException: Connection to http://127.0.0.1:8090 refused 07-11 08:22:01.631: E/LogUtils(14045): at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:183) 07-11 08:22:01.631: E/LogUtils(14045): at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164) 07-11 08:22:01.631: E/LogUtils(14045): at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119) 07-11 08:22:01.631: E/LogUtils(14045): at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:360) 07-11 08:22:01.631: E/LogUtils(14045): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555) 07-11 08:22:01.631: E/LogUtils(14045): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487) 07-11 08:22:01.631: E/LogUtils(14045): at com.example.googleplay.http.HttpHelper.execute(HttpHelper.java:61) 07-11 08:22:01.631: E/LogUtils(14045): at com.example.googleplay.http.HttpHelper.get(HttpHelper.java:34) 07-11 08:22:01.631: E/LogUtils(14045): at com.example.googleplay.http.protocal.BaseProtocal.getDataFromServer(BaseProtocal.java:46) 07-11 08:22:01.631: E/LogUtils(14045): at com.example.googleplay.http.protocal.BaseProtocal.getData(BaseProtocal.java:29) 07-11 08:22:01.631: E/LogUtils(14045): at com.example.googleplay.ui.fragment.HomeFragment.onLoad(HomeFragment.java:45) 07-11 08:22:01.631: E/LogUtils(14045): at com.example.googleplay.ui.fragment.BaseFragment$1.onLoad(BaseFragment.java:39) 07-11 08:22:01.631: E/LogUtils(14045): at com.example.googleplay.view.LoadingPage$1.run(LoadingPage.java:108) 07-11 08:22:01.631: E/LogUtils(14045): Caused by: java.net.ConnectException: socket failed: EACCES (Permission denied) 07-11 08:22:01.631: E/LogUtils(14045): at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:181) 07-11 08:22:01.631: E/LogUtils(14045): ... 12 more 07-11 08:22:01.631: E/LogUtils(14045): Caused by: java.net.SocketException: socket failed: EACCES (Permission denied) 07-11 08:22:01.631: E/LogUtils(14045): at libcore.io.IoBridge.socket(IoBridge.java:576) 07-11 08:22:01.631: E/LogUtils(14045): at java.net.PlainSocketImpl.create(PlainSocketImpl.java:201) 07-11 08:22:01.631: E/LogUtils(14045): at java.net.Socket.checkOpenAndCreate(Socket.java:663) 07-11 08:22:01.631: E/LogUtils(14045): at java.net.Socket.connect(Socket.java:807) 07-11 08:22:01.631: E/LogUtils(14045): at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:119) 07-11 08:22:01.631: E/LogUtils(14045): at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:144) 07-11 08:22:01.631: E/LogUtils(14045): ... 12 more 07-11 08:22:01.631: E/LogUtils(14045): Caused by: libcore.io.ErrnoException: socket failed: EACCES (Permission denied) 07-11 08:22:01.631: E/LogUtils(14045): at libcore.io.Posix.socket(Native Method) 07-11 08:22:01.631: E/LogUtils(14045): at libcore.io.BlockGuardOs.socket(BlockGuardOs.java:181) 07-11 08:22:01.631: E/LogUtils(14045): at libcore.io.IoBridge.socket(IoBridge.java:561) 07-11 08:22:01.631: E/LogUtils(14045): ... 17 more
1.虽然报红部分的第一行没有caused by..但是也是可以从中看出原因
2.中间的caused by..已经说明了权限异常了
时间: 2024-10-05 23:55:17