Strange exceptions in android 4.0 with eclipse

when I use eclipse to develop my Android project, logCat always prints these kinds of warnings, but the application is working fine, can someone tell me what happened.

11-23 18:17:35.802: A/NetworkStats(87): problem reading network stats 11-23 18:17:35.802: A/NetworkStats(87): java.lang.IllegalStateException: problem parsing line: null 11-23 18:17:35.802: A/NetworkStats(87): at com.android.internal.net.NetworkStatsFactory.readNetworkStatsDetail(NetworkStatsFactory.java:313) 11-23 18:17:35.802: A/NetworkStats(87): at com.android.server.NetworkManagementService.getNetworkStatsUidDetail(NetworkManagementService.java:1223) 11-23 18:17:35.802: A/NetworkStats(87): at com.android.server.net.NetworkStatsService.performPollLocked(NetworkStatsService.java:810) 11-23 18:17:35.802: A/NetworkStats(87): at com.android.server.net.NetworkStatsService.performPoll(NetworkStatsService.java:771) 11-23 18:17:35.802: A/NetworkStats(87): at com.android.server.net.NetworkStatsService.access$100(NetworkStatsService.java:128) 11-23 18:17:35.802: A/NetworkStats(87): at com.android.server.net.NetworkStatsService$3.onReceive(NetworkStatsService.java:610) 11-23 18:17:35.802: A/NetworkStats(87): at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:728) 11-23 18:17:35.802: A/NetworkStats(87): at android.os.Handler.handleCallback(Handler.java:605) 11-23 18:17:35.802: A/NetworkStats(87): at android.os.Handler.dispatchMessage(Handler.java:92) 11-23 18:17:35.802: A/NetworkStats(87): at android.os.Looper.loop(Looper.java:137) 11-23 18:17:35.802: A/NetworkStats(87): at android.os.HandlerThread.run(HandlerThread.java:60) 11-23 18:17:35.802: A/NetworkStats(87): Caused by: java.io.FileNotFoundException: /proc/net/xt_qtaguid/stats: open failed: ENOENT (No such file or directory) 11-23 18:17:35.802: A/NetworkStats(87): at libcore.io.IoBridge.open(IoBridge.java:406) 11-23 18:17:35.802: A/NetworkStats(87): at java.io.FileInputStream.<init>(FileInputStream.java:78) 11-23 18:17:35.802: A/NetworkStats(87): at java.io.FileReader.<init>(FileReader.java:42) 11-23 18:17:35.802: A/NetworkStats(87): at com.android.internal.net.NetworkStatsFactory.readNetworkStatsDetail(NetworkStatsFactory.java:272) 
+7
source share
3 answers

@Drax: Actually, you are wrong there, it depends on the version of the kernel you are using, in fact, if you are on an old kernel, for example 2.6.35 or so, you will definitely get this error since netfilter (part of Netfilter Linux iptables) in Kernel 3 has this feature that is not currently supported by older kernels.

+8
source

The 3.0 kernel, which is supposed to use ICS, contains the netfilter module: xt_qtaguid

This runs in the background and handles network usage for all PIDs and provides a status report for proc fs here: / Proc / net / xt_qtaguid / statistics

You noticed the error above: Reason: java.io.FileNotFoundException: / proc / net / xt_qtaguid / stats: open failed: ENOENT (There is no such file or directory)

This is probably because you probably do not see this module in your kernel.

It can be accessed by the 2.6.35 kernel with a little work: https://github.com/Hashcode/android_device_motorola_solana/tree/ics/modules/netfilter/xt_qtaguid

+4
source

This is an error regarding the network connection structure. since you are using an emulator, I think. and you are not connected to any Internet network, so the infrastructure is trying to get the status of the network and does not find anyone and will not be able to connect to

-3
source

All Articles