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.

Stack Overflow | jucajl | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Lazy collections cannot be used if they have been deserialized

    Stack Overflow | 3 years ago | jucajl
    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.

    Root Cause Analysis

    1. 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()
    2. ORMLite Core
      LazyForeignCollection.iterator
      1. com.j256.ormlite.dao.LazyForeignCollection.seperateIteratorThrow(LazyForeignCollection.java:310)
      2. com.j256.ormlite.dao.LazyForeignCollection.iteratorThrow(LazyForeignCollection.java:71)
      3. com.j256.ormlite.dao.LazyForeignCollection.closeableIterator(LazyForeignCollection.java:60)
      4. com.j256.ormlite.dao.LazyForeignCollection.iterator(LazyForeignCollection.java:47)
      5. com.j256.ormlite.dao.LazyForeignCollection.iterator(LazyForeignCollection.java:28)
      5 frames
    3. com.example.abertura
      CadastroVisualizacao.onCreate
      1. com.example.abertura.CadastroVisualizacao.preencheCampos(CadastroVisualizacao.java:85)
      2. com.example.abertura.CadastroVisualizacao.onCreate(CadastroVisualizacao.java:53)
      2 frames
    4. Android Platform
      ActivityThread.performLaunchActivity
      1. android.app.Activity.performCreate(Activity.java:4470)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1053)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1934)
      3 frames