Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

weird exceptions under android 4.0 with eclipse

when i using eclipse to develop my android project , the logCat always print these kinds of warnings , but the app runs ok , can any one tell me what has 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)
like image 309
WoooHaaaa Avatar asked Nov 23 '11 11:11

WoooHaaaa


1 Answers

@Drax: Actually, you're not correct there, that is dependent on the kernel version used, in fact, if you're on a older kernel, such as 2.6.35 or thereabouts, you will definitely get this error as the netfilter (part of Linux's iptables netfilter) in Kernel 3 has this feature that is not currently backported to the older kernels.

like image 125
t0mm13b Avatar answered Oct 18 '22 16:10

t0mm13b