Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
326 views
in Technique[技术] by (71.8m points)

warnings - 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)
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

@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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...