java.lang.IllegalStateException: problem parsing line: null

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

Check if android.permission.WRITE_EXTERNAL_STORAGE is in AndroidManifest.xml. Also, add checks in your code to see if the storage is available to write before trying to write. And last: create a folder to put your files inside.

Solutions on the web

java.lang.IllegalStateException: problem parsing line: null
at libcore.io.Posix.open(Native Method)
at libcore.io.BlockGuardOs.open(BlockGuardOs.java:98)
at libcore.io.IoBridge.open(IoBridge.java:390)
at java.io.FileInputStream.(FileInputStream.java:78)
at java.io.FileReader.(FileReader.java:42)
at com.android.internal.net.NetworkStatsFactory.readNetworkStatsDetail(NetworkStatsFactory.java:272)
at com.android.server.NetworkManagementService.getNetworkStatsUidDetail(NetworkManagementService.java:1271)
at com.android.server.net.NetworkStatsService.performPollLocked(NetworkStatsService.java:810)
at com.android.server.net.NetworkStatsService.updateIfacesLocked(NetworkStatsService.java:721)
at com.android.server.net.NetworkStatsService.updateIfaces(NetworkStatsService.java:699)
at com.android.server.net.NetworkStatsService.access$000(NetworkStatsService.java:128)
at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:728)
at android.os.Handler.handleCallback(Handler.java:605)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.os.HandlerThread.run(HandlerThread.java:60)

Users with the same issue

3 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
8 times, 11 months ago
2 times, 1 year ago
21 times, 8 months ago
45 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.