ThrottleService(79):无法读取网络统计(ThrottleService(79):

2019-08-03 03:33发布

我得到异常" ThrottleService(79): problem reading network stats"
我不知道为什么这是给我的异常,并在App有与工作正常,但在过去的工作XMPP数据包监听器,现在没有工作的服务器一些沟通。 谁能告诉我什么是错?
请帮助我,在此先感谢。

该XMPP显示设备登录,并在服务器联机。

我的环境:

服务器端 :

操作系统:Windows
XMPP服务器:Openfire的3.7.1。
的Apache Tomcat 6
Java 6中

客户端 :

安卓4.0.3
对于XMPP我使用啪库

我该怎么办? 我坚持这一点。

听到的都是从过时的日志猫日志:---

11-23 11:46:11.932: WARN/ThrottleService(79): unable to find stats for iface rmnet0
11-23 11:46:11.932: WARN/ThrottleService(79): [ 11-23 11:47:58.421    79:0x74 F/NetworkStats ]
11-23 11:46:11.932: WARN/ThrottleService(79): problem reading network stats
11-23 11:46:11.932: WARN/ThrottleService(79): java.lang.IllegalStateException: problem parsing idx 1
11-23 11:46:11.932: WARN/ThrottleService(79):     at com.android.internal.net.NetworkStatsFactory.readNetworkStatsDetail(NetworkStatsFactory.java:300)
11-23 11:46:11.932: WARN/ThrottleService(79):     at com.android.server.NetworkManagementService.getNetworkStatsUidDetail(NetworkManagementService.java:1282)
11-23 11:46:11.932: WARN/ThrottleService(79):     at com.android.server.net.NetworkStatsService.performPollLocked(NetworkStatsService.java:831)
11-23 11:46:11.932: WARN/ThrottleService(79):     at com.android.server.net.NetworkStatsService.performPoll(NetworkStatsService.java:799)
11-23 11:46:11.932: WARN/ThrottleService(79):     at com.android.server.net.NetworkStatsService.access$100(NetworkStatsService.java:128)
11-23 11:46:11.932: WARN/ThrottleService(79):     at com.android.server.net.NetworkStatsService$3.onReceive(NetworkStatsService.java:633)
11-23 11:46:11.932: WARN/ThrottleService(79):     at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:728)
11-23 11:46:11.932: WARN/ThrottleService(79):     at android.os.Handler.handleCallback(Handler.java:605)
11-23 11:46:11.932: WARN/ThrottleService(79):     at android.os.Handler.dispatchMessage(Handler.java:92)
11-23 11:46:11.932: WARN/ThrottleService(79):     at android.os.Looper.loop(Looper.java:137)
11-23 11:46:11.932: WARN/ThrottleService(79):     at android.os.HandlerThread.run(HandlerThread.java:60)
11-23 11:46:11.932: WARN/ThrottleService(79): Caused by: java.io.FileNotFoundException: /proc/net/xt_qtaguid/stats: open failed: ENOENT (No such file or directory)
11-23 11:46:11.932: WARN/ThrottleService(79):     at libcore.io.IoBridge.open(IoBridge.java:406)
11-23 11:46:11.932: WARN/ThrottleService(79):     at java.io.FileInputStream.<init>(FileInputStream.java:78)
11-23 11:46:11.932: WARN/ThrottleService(79):     at com.android.internal.net.NetworkStatsFactory.readNetworkStatsDetail(NetworkStatsFactory.java:269)
11-23 11:46:11.932: WARN/ThrottleService(79):     ... 10 more
11-23 11:46:11.932: WARN/ThrottleService(79): Caused by: libcore.io.ErrnoException: open failed: ENOENT (No such file or directory)
11-23 11:46:11.932: WARN/ThrottleService(79):     at libcore.io.Posix.open(Native Method)
11-23 11:46:11.932: WARN/ThrottleService(79):     at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110)
11-23 11:46:11.932: WARN/ThrottleService(79):     at libcore.io.IoBridge.open(IoBridge.java:390)
11-23 11:46:11.932: WARN/ThrottleService(79):     ... 12 more

Answer 1:

这发生在我身上时,我不小心删除从清单下面一行:

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

当我加入它回到那里的一切又回到了正常。

我希望这有帮助。



文章来源: ThrottleService(79): unable reading network stats