java.lang.RuntimeException

Unable to start activity ComponentInfo{com.example.pedidosexample/com.example.abertura.CadastroVisualizacao}: java.lang.IllegalStateException: Internal DAO object is null. Lazy collections cannot be used if they have been deserialized.

Solutions on the web47227

  • Unable to start activity ComponentInfo{com.example.pedidosexample/com.example.abertura.CadastroVisualizacao}: java.lang.IllegalStateException: Internal DAO object is null. Lazy collections cannot be used if they have been deserialized.
  • via GitHub by alexmelyon
    , 8 months ago
    Unable to start activity ComponentInfo{com.Company.Game/com.Company.Game.M3Rush.M3ExtendActivity}: java.lang.IllegalStateException: Auth.GOOGLE_SIGN_IN_API cannot be used with Games.API
  • Unable to start activity ComponentInfo{edu.wisc.ACHESS/edu.wisc.ACHESS.ChatMessageActivity}: java.lang.IllegalStateException: Can't be used with a custom content view
  • Stack trace

    • java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.pedidosexample/com.example.abertura.CadastroVisualizacao}: java.lang.IllegalStateException: Internal DAO object is null. Lazy collections cannot be used if they have been deserialized. at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1970) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1995) at android.app.ActivityThread.access$600(ActivityThread.java:128) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1161) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:4517) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:993) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:760) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.IllegalStateException: Internal DAO object is null. Lazy collections cannot be used if they have been deserialized. at com.j256.ormlite.dao.LazyForeignCollection.seperateIteratorThrow(LazyForeignCollection.java:310) at com.j256.ormlite.dao.LazyForeignCollection.iteratorThrow(LazyForeignCollection.java:71) at com.j256.ormlite.dao.LazyForeignCollection.closeableIterator(LazyForeignCollection.java:60) at com.j256.ormlite.dao.LazyForeignCollection.iterator(LazyForeignCollection.java:47) at com.j256.ormlite.dao.LazyForeignCollection.iterator(LazyForeignCollection.java:28) at com.example.abertura.CadastroVisualizacao.preencheCampos(CadastroVisualizacao.java:85) at com.example.abertura.CadastroVisualizacao.onCreate(CadastroVisualizacao.java:53) at android.app.Activity.performCreate(Activity.java:4470) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1053) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1934)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.