Android报错android.system.ErrnoException: recvfrom failed


#1
05-08 14:42:46.960 15508-15508/com.wuhanins.dailyreport.nanya D/JPush: [PushService] Action - handleServiceAction - action:cn.jpush.android.intent.ALIAS_TAGS
05-08 14:42:46.960 15508-15508/com.wuhanins.dailyreport.nanya D/JPush: [PushService] Action - restartNetworkingClient, pid:15508
05-08 14:42:46.962 15508-2199/com.wuhanins.dailyreport.nanya I/JPush: [NetworkingClient] Begin to run in ConnectingThread - id:1426
05-08 14:42:46.962 15508-15538/com.wuhanins.dailyreport.nanya D/JPush: [RequestingThread] Action - sendRequestInternal - connection:0, timeout:20000, threadId:1322
05-08 14:42:46.963 15508-2199/com.wuhanins.dailyreport.nanya D/JPush: [ConnectingHelper] To get sis - host:s.jpush.cn, port:19000, selection:0
05-08 14:42:46.969 15508-2199/com.wuhanins.dailyreport.nanya D/JPush: [ConnectingHelper] SIS Receiving...
05-08 14:42:52.970 15508-2199/com.wuhanins.dailyreport.nanya W/JPush: [ConnectingHelper] Get sis info error - sisHost:s.jpush.cn
                                                                      java.net.SocketTimeoutException
                                                                          at libcore.io.IoBridge.maybeThrowAfterRecvfrom(IoBridge.java:598)
                                                                          at libcore.io.IoBridge.recvfrom(IoBridge.java:556)
                                                                          at java.net.PlainDatagramSocketImpl.doRecv(PlainDatagramSocketImpl.java:163)
                                                                          at java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:171)
                                                                          at java.net.DatagramSocket.receive(DatagramSocket.java:274)
                                                                          at cn.jpush.android.helpers.ConnectingHelper.a(Unknown Source)
                                                                          at cn.jpush.android.helpers.ConnectingHelper.sendSis(Unknown Source)
                                                                          at cn.jpush.android.service.k.run(Unknown Source)
                                                                          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
                                                                          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
                                                                          at java.lang.Thread.run(Thread.java:818)
                                                                       Caused by: android.system.ErrnoException: recvfrom failed: EAGAIN (Try again)
                                                                          at libcore.io.Posix.recvfromBytes(Native Method)
                                                                          at libcore.io.Posix.recvfrom(Posix.java:185)
                                                                          at libcore.io.BlockGuardOs.recvfrom(BlockGuardOs.java:250)
                                                                          at libcore.io.IoBridge.recvfrom(IoBridge.java:553)
                                                                          at java.net.PlainDatagramSocketImpl.doRecv(PlainDatagramSocketImpl.java:163) 
                                                                          at java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:171) 
                                                                          at java.net.DatagramSocket.receive(DatagramSocket.java:274) 
                                                                          at cn.jpush.android.helpers.ConnectingHelper.a(Unknown Source) 
                                                                          at cn.jpush.android.helpers.ConnectingHelper.sendSis(Unknown Source) 
                                                                          at cn.jpush.android.service.k.run(Unknown Source) 
                                                                          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) 
                                                                          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) 
                                                                          at java.lang.Thread.run(Thread.java:818) 
05-08 14:42:52.973 15508-2199/com.wuhanins.dailyreport.nanya D/JPush: [ConnectingHelper] To get sis - host:sis.jpush.io, port:19000, selection:1
05-08 14:42:52.988 15508-2199/com.wuhanins.dailyreport.nanya D/JPush: [ConnectingHelper] SIS Receiving...
05-08 14:42:58.989 15508-2199/com.wuhanins.dailyreport.nanya W/JPush: [ConnectingHelper] Get sis info error - sisHost:sis.jpush.io
                                                                      java.net.SocketTimeoutException
                                                                          at libcore.io.IoBridge.maybeThrowAfterRecvfrom(IoBridge.java:598)
                                                                          at libcore.io.IoBridge.recvfrom(IoBridge.java:556)
                                                                          at java.net.PlainDatagramSocketImpl.doRecv(PlainDatagramSocketImpl.java:163)
                                                                          at java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:171)
                                                                          at java.net.DatagramSocket.receive(DatagramSocket.java:274)
                                                                          at cn.jpush.android.helpers.ConnectingHelper.a(Unknown Source)
                                                                          at cn.jpush.android.helpers.ConnectingHelper.sendSis(Unknown Source)
                                                                          at cn.jpush.android.service.k.run(Unknown Source)
                                                                          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
                                                                          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
                                                                          at java.lang.Thread.run(Thread.java:818)
                                                                       Caused by: android.system.ErrnoException: recvfrom failed: EAGAIN (Try again)
                                                                          at libcore.io.Posix.recvfromBytes(Native Method)
                                                                          at libcore.io.Posix.recvfrom(Posix.java:185)
                                                                          at libcore.io.BlockGuardOs.recvfrom(BlockGuardOs.java:250)
                                                                          at libcore.io.IoBridge.recvfrom(IoBridge.java:553)
                                                                          at java.net.PlainDatagramSocketImpl.doRecv(PlainDatagramSocketImpl.java:163) 
                                                                          at java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:171) 
                                                                          at java.net.DatagramSocket.receive(DatagramSocket.java:274) 
                                                                          at cn.jpush.android.helpers.ConnectingHelper.a(Unknown Source) 
                                                                          at cn.jpush.android.helpers.ConnectingHelper.sendSis(Unknown Source) 
                                                                          at cn.jpush.android.service.k.run(Unknown Source) 
                                                                          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) 
                                                                          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) 
                                                                          at java.lang.Thread.run(Thread.java:818) 
05-08 14:42:58.992 15508-2199/com.wuhanins.dailyreport.nanya D/JPush: [ConnectingHelper] To get sis - host:easytomessage.com, port:19000, selection:2
05-08 14:42:59.014 15508-2199/com.wuhanins.dailyreport.nanya D/JPush: [ConnectingHelper] SIS Receiving...
05-08 14:43:05.016 15508-2199/com.wuhanins.dailyreport.nanya W/JPush: [ConnectingHelper] Get sis info error - sisHost:easytomessage.com
                                                                      java.net.SocketTimeoutException
                                                                          at libcore.io.IoBridge.maybeThrowAfterRecvfrom(IoBridge.java:598)
                                                                          at libcore.io.IoBridge.recvfrom(IoBridge.java:556)
                                                                          at java.net.PlainDatagramSocketImpl.doRecv(PlainDatagramSocketImpl.java:163)
                                                                          at java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:171)
                                                                          at java.net.DatagramSocket.receive(DatagramSocket.java:274)
                                                                          at cn.jpush.android.helpers.ConnectingHelper.a(Unknown Source)
                                                                          at cn.jpush.android.helpers.ConnectingHelper.sendSis(Unknown Source)
                                                                          at cn.jpush.android.service.k.run(Unknown Source)
                                                                          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
                                                                          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
                                                                          at java.lang.Thread.run(Thread.java:818)
                                                                       Caused by: android.system.ErrnoException: recvfrom failed: EAGAIN (Try again)
                                                                          at libcore.io.Posix.recvfromBytes(Native Method)
                                                                          at libcore.io.Posix.recvfrom(Posix.java:185)
                                                                          at libcore.io.BlockGuardOs.recvfrom(BlockGuardOs.java:250)
                                                                          at libcore.io.IoBridge.recvfrom(IoBridge.java:553)
                                                                          at java.net.PlainDatagramSocketImpl.doRecv(PlainDatagramSocketImpl.java:163) 
                                                                          at java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:171) 
                                                                          at java.net.DatagramSocket.receive(DatagramSocket.java:274) 
                                                                          at cn.jpush.android.helpers.ConnectingHelper.a(Unknown Source) 
                                                                          at cn.jpush.android.helpers.ConnectingHelper.sendSis(Unknown Source) 
                                                                          at cn.jpush.android.service.k.run(Unknown Source) 
                                                                          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) 
                                                                          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) 
                                                                          at java.lang.Thread.run(Thread.java:818) 
05-08 14:43:05.020 15508-2199/com.wuhanins.dailyreport.nanya D/JPush: [ConnectingHelper] To get sis - host:113.31.17.108, port:19000, selection:3
05-08 14:43:05.025 15508-2199/com.wuhanins.dailyreport.nanya D/JPush: [ConnectingHelper] SIS Receiving...
05-08 14:43:11.026 15508-2199/com.wuhanins.dailyreport.nanya W/JPush: [ConnectingHelper] Get sis info error - sisHost:113.31.17.108
                                                                      java.net.SocketTimeoutException
                                                                          at libcore.io.IoBridge.maybeThrowAfterRecvfrom(IoBridge.java:598)
                                                                          at libcore.io.IoBridge.recvfrom(IoBridge.java:556)
                                                                          at java.net.PlainDatagramSocketImpl.doRecv(PlainDatagramSocketImpl.java:163)
                                                                          at java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:171)
                                                                          at java.net.DatagramSocket.receive(DatagramSocket.java:274)
                                                                          at cn.jpush.android.helpers.ConnectingHelper.a(Unknown Source)
                                                                          at cn.jpush.android.helpers.ConnectingHelper.sendSis(Unknown Source)
                                                                          at cn.jpush.android.service.k.run(Unknown Source)
                                                                          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
                                                                          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
                                                                          at java.lang.Thread.run(Thread.java:818)
                                                                       Caused by: android.system.ErrnoException: recvfrom failed: EAGAIN (Try again)
                                                                          at libcore.io.Posix.recvfromBytes(Native Method)
                                                                          at libcore.io.Posix.recvfrom(Posix.java:185)
                                                                          at libcore.io.BlockGuardOs.recvfrom(BlockGuardOs.java:250)
                                                                          at libcore.io.IoBridge.recvfrom(IoBridge.java:553)
                                                                          at java.net.PlainDatagramSocketImpl.doRecv(PlainDatagramSocketImpl.java:163) 
                                                                          at java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:171) 
                                                                          at java.net.DatagramSocket.receive(DatagramSocket.java:274) 
                                                                          at cn.jpush.android.helpers.ConnectingHelper.a(Unknown Source) 
                                                                          at cn.jpush.android.helpers.ConnectingHelper.sendSis(Unknown Source) 
                                                                          at cn.jpush.android.service.k.run(Unknown Source) 
                                                                          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) 
                                                                          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) 
                                                                          at java.lang.Thread.run(Thread.java:818) 
05-08 14:43:11.026 15508-2199/com.wuhanins.dailyreport.nanya D/JPush: [ConnectingHelper] Open connection with default - ip:113.31.17.106, port:7000
05-08 14:43:14.032 15508-2199/com.wuhanins.dailyreport.nanya D/JPush: [ConnectingHelper] Open connection failed - ret:-993
05-08 14:43:17.051 15508-2199/com.wuhanins.dailyreport.nanya D/JPush: [ConnectingHelper] Open connection failed - ret:-993
05-08 14:43:17.051 15508-2199/com.wuhanins.dailyreport.nanya D/JPush: [NetworkingClient] Action - closeConnection - connection:140479719354368
05-08 14:43:17.051 15508-2199/com.wuhanins.dailyreport.nanya D/JPush: [NetworkingClient] Return of Close jni connection - 0
05-08 14:43:17.052 15508-15508/com.wuhanins.dailyreport.nanya D/JPush: [PushService] Action - onDisconnected - connection:0
05-08 14:43:17.052 15508-15508/com.wuhanins.dailyreport.nanya D/JPush: [ConnectingHelper] Action - sendConnectionChanged
05-08 14:43:17.054 15508-15508/com.wuhanins.dailyreport.nanya D/JPush: [PushService] Action - retryConnect - disconnectedTimes:7

#2

请切换网络


#3

其他网络是好的。这是连接wifi使用出现的问题,wifi是可以上网的


#4

请详细阅读楼上两个链接
你的WiFi是内网,有限制。


#5

ok,多谢。我配置下内网端口试下。