心跳时间 3s监听本地端口 0
sdk版本 v3.3
异常:就这两种异常,第一种是一直抛,第二种是偶尔,但是也特别频繁
09-14 21:16:18.201 com.hy.hyapp W/com.hy.hyapp: Long monitor contention with owner Thread-160 (12488) at void java.net.DatagramSocket.receive(java.net.DatagramPacket)(DatagramSocket.java:-1) waiters=15 in void java.net.DatagramSocket.receive(java.net.DatagramPacket) for 51.043s
09-14 21:16:18.201 com.hy.hyapp W/com.hy.hyapp: Current owner stack:
09-14 21:16:18.201 com.hy.hyapp W/com.hy.hyapp: at java.net.DatagramSocket.receive(DatagramSocket.java:-1)
09-14 21:16:18.201 com.hy.hyapp W/com.hy.hyapp: - waiting to lock <0x098eb420> (a java.net.DatagramSocket) held by thread 40
09-14 21:16:18.201 com.hy.hyapp W/com.hy.hyapp: at net.openmob.mobileimsdk.android.core.LocalUDPDataReciever.p2pListeningImpl(LocalUDPDataReciever.java:110)
09-14 21:16:18.201 com.hy.hyapp W/com.hy.hyapp: at net.openmob.mobileimsdk.android.core.LocalUDPDataReciever.access$100(LocalUDPDataReciever.java:36)
09-14 21:16:18.201 com.hy.hyapp W/com.hy.hyapp: at net.openmob.mobileimsdk.android.core.LocalUDPDataReciever$1.run(LocalUDPDataReciever.java:85)
09-14 21:16:18.201 com.hy.hyapp W/com.hy.hyapp: at java.lang.Thread.run(Thread.java:764)
09-14 21:16:18.201 com.hy.hyapp W/com.hy.hyapp: Contender stack:
09-14 21:16:18.201 com.hy.hyapp W/com.hy.hyapp: at java.net.DatagramSocket.receive(DatagramSocket.java:-1)
09-14 21:16:18.201 com.hy.hyapp W/com.hy.hyapp: at net.openmob.mobileimsdk.android.core.LocalUDPDataReciever.p2pListeningImpl(LocalUDPDataReciever.java:110)
09-14 21:16:18.201 com.hy.hyapp W/com.hy.hyapp: at net.openmob.mobileimsdk.android.core.LocalUDPDataReciever.access$100(LocalUDPDataReciever.java:36)
09-14 21:16:18.201 com.hy.hyapp W/com.hy.hyapp: at net.openmob.mobileimsdk.android.core.LocalUDPDataReciever$1.run(LocalUDPDataReciever.java:85)
09-14 21:16:18.201 com.hy.hyapp W/com.hy.hyapp: at java.lang.Thread.run(Thread.java:764)
and
09-14 21:16:51.520 com.hy.hyapp E/UDPUtils: 【IMCORE】send方法中》》发送UDP数据报文时出错了,原因是:sendto failed: EPERM (Operation not permitted)
java.io.IOException: sendto failed: EPERM (Operation not permitted)
at libcore.io.IoBridge.maybeThrowAfterSendto(IoBridge.java:576)
at libcore.io.IoBridge.sendto(IoBridge.java:544)
at java.net.PlainDatagramSocketImpl.send(PlainDatagramSocketImpl.java:125)
at java.net.DatagramSocket.send(DatagramSocket.java:721)
at net.openmob.mobileimsdk.android.utils.UDPUtils.send(UDPUtils.java:58)
at net.openmob.mobileimsdk.android.utils.UDPUtils.send(UDPUtils.java:33)
at net.openmob.mobileimsdk.android.core.LocalUDPDataSender.send(LocalUDPDataSender.java:153)
at net.openmob.mobileimsdk.android.core.LocalUDPDataSender.sendKeepAlive(LocalUDPDataSender.java:85)
at net.openmob.mobileimsdk.android.core.KeepAliveDaemon$1$1.doInBackground(KeepAliveDaemon.java:76)
at net.openmob.mobileimsdk.android.core.KeepAliveDaemon$1$1.doInBackground(KeepAliveDaemon.java:67)
at android.os.AsyncTask$2.call(AsyncTask.java:333)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:764)
Caused by: android.system.ErrnoException: sendto failed: EPERM (Operation not permitted)
at libcore.io.Linux.sendtoBytes(Native Method)
at libcore.io.Linux.sendto(Linux.java:227)
at libcore.io.BlockGuardOs.sendto(BlockGuardOs.java:307)
at libcore.io.IoBridge.sendto(IoBridge.java:542)
at java.net.PlainDatagramSocketImpl.send(PlainDatagramSocketImpl.java:125)
at java.net.DatagramSocket.send(DatagramSocket.java:721)
at net.openmob.mobileimsdk.android.utils.UDPUtils.send(UDPUtils.java:58)
at net.openmob.mobileimsdk.android.utils.UDPUtils.send(UDPUtils.java:33)
at net.openmob.mobileimsdk.android.core.LocalUDPDataSender.send(LocalUDPDataSender.java:153)
at net.openmob.mobileimsdk.android.core.LocalUDPDataSender.sendKeepAlive(LocalUDPDataSender.java:85)
at net.openmob.mobileimsdk.android.core.KeepAliveDaemon$1$1.doInBackground(KeepAliveDaemon.java:76)
at net.openmob.mobileimsdk.android.core.KeepAliveDaemon$1$1.doInBackground(KeepAliveDaemon.java:67)
at android.os.AsyncTask$2.call(AsyncTask.java:333)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:764)