java.lang.IllegalStateException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Android Debugger acting strange
    via Stack Overflow by ShrimpCrackers
    ,
  • Eclipse Logcat Displays loads of errors
    via Stack Overflow by user1928775
    ,
  • This problem started on updating to cm-10.2-m1 from 10.1.3. I had an encrypted storage on the nexus-s. I updated via cwm recovery, and the new install started and showed the 'Optimizing app xx/xxx'. However, after that, it kept spinning, and I had to remove the battery. adb wasn't working at that point, so couldn't get any debug output. I then reset everything to factory defaults, but cwm failed to recognise the /media partition. I removed it and added it using parted, and created a file system on it. Installing 10.2-m1 worked fine after that (though encryption doesn't work -- after asking for confirmation, the encryption screen just sits there and does nothing). With the new install, usb storage can't be mounted on my Linux laptop. 'adb logcat' shows the following. Other operations via adb and the phone work well. Let me know if any other debug output will be helpful. I/PackageManager( 392): Updating external media status from unmounted to unmounted I/PackageManager( 392): Updating external media status from unmounted to unmounted E/MountService( 392): Failed to share/unshare E/MountService( 392): com.android.server.NativeDaemonConnector$NativeDaemonFailureException: command '23 volume share /storage/sdcard0 ums' failed with '401 23 volume operation failed (No such device)' E/MountService( 392): at com.android.server.NativeDaemonConnector.execute(NativeDaemonConnector.java:382) E/MountService( 392): at com.android.server.NativeDaemonConnector.executeForList(NativeDaemonConnector.java:318) E/MountService( 392): at com.android.server.NativeDaemonConnector.execute(NativeDaemonConnector.java:283) E/MountService( 392): at com.android.server.MountService.doShareUnshareVolume(MountService.java:658) E/MountService( 392): at com.android.server.MountService.access$200(MountService.java:105) E/MountService( 392): at com.android.server.MountService$UmsEnableCallBack.handleFinished(MountService.java:376) E/MountService( 392): at com.android.server.MountService$MountServiceHandler.handleMessage(MountService.java:487) E/MountService( 392): at android.os.Handler.dispatchMessage(Handler.java:99) E/MountService( 392): at android.os.Looper.loop(Looper.java:137) E/MountService( 392): at android.os.HandlerThread.run(HandlerThread.java:61)
    via by Amit Shah,
  • This problem started on updating to cm-10.2-m1 from 10.1.3. I had an encrypted storage on the nexus-s. I updated via cwm recovery, and the new install started and showed the 'Optimizing app xx/xxx'. However, after that, it kept spinning, and I had to remove the battery. adb wasn't working at that point, so couldn't get any debug output. I then reset everything to factory defaults, but cwm failed to recognise the /media partition. I removed it and added it using parted, and created a file system on it. Installing 10.2-m1 worked fine after that (though encryption doesn't work -- after asking for confirmation, the encryption screen just sits there and does nothing). With the new install, usb storage can't be mounted on my Linux laptop. 'adb logcat' shows the following. Other operations via adb and the phone work well. Let me know if any other debug output will be helpful. I/PackageManager( 392): Updating external media status from unmounted to unmounted I/PackageManager( 392): Updating external media status from unmounted to unmounted E/MountService( 392): Failed to share/unshare E/MountService( 392): com.android.server.NativeDaemonConnector$NativeDaemonFailureException: command '23 volume share /storage/sdcard0 ums' failed with '401 23 volume operation failed (No such device)' E/MountService( 392): at com.android.server.NativeDaemonConnector.execute(NativeDaemonConnector.java:382) E/MountService( 392): at com.android.server.NativeDaemonConnector.executeForList(NativeDaemonConnector.java:318) E/MountService( 392): at com.android.server.NativeDaemonConnector.execute(NativeDaemonConnector.java:283) E/MountService( 392): at com.android.server.MountService.doShareUnshareVolume(MountService.java:658) E/MountService( 392): at com.android.server.MountService.access$200(MountService.java:105) E/MountService( 392): at com.android.server.MountService$UmsEnableCallBack.handleFinished(MountService.java:376) E/MountService( 392): at com.android.server.MountService$MountServiceHandler.handleMessage(MountService.java:487) E/MountService( 392): at android.os.Handler.dispatchMessage(Handler.java:99) E/MountService( 392): at android.os.Looper.loop(Looper.java:137) E/MountService( 392): at android.os.HandlerThread.run(HandlerThread.java:61)
    via by Amit Shah,
  • exception while trying to encrypt data partition
    via by Anand Mistry,
    • java.lang.IllegalStateException: command '2 firewall disable' failed with '400 2 Firewall command failed' at com.android.server.NetworkManagementService.setFirewallEnabled(NetworkManagementService.java:1446) at com.android.server.NetworkManagementService.prepareNativeDaemon(NetworkManagementService.java:376) at com.android.server.NetworkManagementService.systemReady(NetworkManagementService.java:213) at com.android.server.ServerThread$3.run(SystemServer.java:882) at com.android.server.am.ActivityManagerService.systemReady(ActivityManagerService.java:7880) at com.android.server.ServerThread.run(SystemServer.java:866) Caused by: com.android.server.NativeDaemonConnector$NativeDaemonFailureException: command '2 firewall disable' failed with '400 2 Firewall command failed' at com.android.server.NativeDaemonConnector.execute(NativeDaemonConnector.java:349) at com.android.server.NativeDaemonConnector.executeForList(NativeDaemonConnector.java:286) at com.android.server.NativeDaemonConnector.execute(NativeDaemonConnector.java:252) at com.android.server.NetworkManagementService.setFirewallEnabled(NetworkManagementService.java:1443) ... 5 more

    Users with the same issue

    filipebatista
    4 times, last one,
    Aravind
    3 times, last one,
    Indri Yunita
    202 times, last one,
    filpgame
    31 times, last one,
    danleyb2Interintel
    1 times, last one,
    20 more bugmates