【问题】
之前在折腾:
【问题】android中调试antlr时执行xxx_return去获得parserResult时出错
的过程中,看到logCat中出错:
04-11 14:54:55.118: W/System.err(3233): java.net.SocketException: socket failed: EACCES (Permission denied) 04-11 14:54:55.118: W/System.err(3233): java.net.SocketException: socket failed: EACCES (Permission denied) 04-11 14:54:55.118: W/System.err(3233): at libcore.io.IoBridge.socket(IoBridge.java:583) 04-11 14:54:55.118: W/System.err(3233): at java.net.PlainSocketImpl.create(PlainSocketImpl.java:201) 04-11 14:54:55.118: W/System.err(3233): at java.net.PlainServerSocketImpl.create(PlainServerSocketImpl.java:38) 04-11 14:54:55.118: W/System.err(3233): at java.net.ServerSocket.<init>(ServerSocket.java:98) 04-11 14:54:55.118: W/System.err(3233): at java.net.ServerSocket.<init>(ServerSocket.java:69) 04-11 14:54:55.118: W/System.err(3233): at org.antlr.runtime.debug.DebugEventSocketProxy.handshake(DebugEventSocketProxy.java:75) 04-11 14:54:55.118: W/System.err(3233): at com.mm.antlrv3demo.HartEddlParser.<init>(HartEddlParser.java:173) 04-11 14:54:55.118: W/System.err(3233): at com.mm.antlrv3demo.HartEddlParser.<init>(HartEddlParser.java:164) 04-11 14:54:55.118: W/System.err(3233): at com.mm.antlrv3demo.DDParser.hartEddlParserDemo(DDParser.java:159) 04-11 14:54:55.118: W/System.err(3233): at com.mm.antlrv3demo.DDParser.onCreate(DDParser.java:27) 04-11 14:54:55.118: W/System.err(3233): at android.app.Activity.performCreate(Activity.java:5008) 04-11 14:54:55.118: W/System.err(3233): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079) 04-11 14:54:55.118: W/System.err(3233): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023) 04-11 14:54:55.118: W/System.err(3233): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084) 04-11 14:54:55.118: W/System.err(3233): at android.app.ActivityThread.access$600(ActivityThread.java:130) 04-11 14:54:55.118: W/System.err(3233): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195) 04-11 14:54:55.118: W/System.err(3233): at android.os.Handler.dispatchMessage(Handler.java:99) 04-11 14:54:55.118: W/System.err(3233): at android.os.Looper.loop(Looper.java:137) 04-11 14:54:55.118: W/System.err(3233): at android.app.ActivityThread.main(ActivityThread.java:4745) 04-11 14:54:55.118: W/System.err(3233): at java.lang.reflect.Method.invokeNative(Native Method) 04-11 14:54:55.118: W/System.err(3233): at java.lang.reflect.Method.invoke(Method.java:511) 04-11 14:54:55.118: W/System.err(3233): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786) 04-11 14:54:55.118: W/System.err(3233): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) 04-11 14:54:55.118: W/System.err(3233): at dalvik.system.NativeStart.main(Native Method) 04-11 14:54:55.118: W/System.err(3233): Caused by: libcore.io.ErrnoException: socket failed: EACCES (Permission denied) 04-11 14:54:55.118: W/System.err(3233): at libcore.io.Posix.socket(Native Method) 04-11 14:54:55.118: W/System.err(3233): at libcore.io.BlockGuardOs.socket(BlockGuardOs.java:181) 04-11 14:54:55.118: W/System.err(3233): at libcore.io.IoBridge.socket(IoBridge.java:568) 04-11 14:54:55.118: W/System.err(3233): … 23 more |
【解决过程】
1.去参考:
socket failed :EACCES (Permission denied)
去添加:
<uses-permission android:name="android.permission.INTERNET"/>
|
结果问题更严重了,都无法运行到刚才的断点了。
【总结】
后来发现,貌似此错误,只是个警告,根本无需理解,也可以正常执行我的android项目中的程序的。
所以,暂时可以忽略之。
转载请注明:在路上 » 【无需解决】android的ADT中调试程序出错:java.net.SocketException: socket failed: EACCES (Permission denied)
Post Views: 1,169