java.lang.IllegalArgumentException: OrderDB is not part of the schema for this Realm

GitHub | Ivanzar | 6 months 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

    OrderDB is not part of the schema for this Realm

    GitHub | 6 months ago | Ivanzar
    java.lang.IllegalArgumentException: OrderDB is not part of the schema for this Realm

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      OrderDB is not part of the schema for this Realm

      at io.realm.internal.modules.CompositeMediator.getMediator()
    2. io.realm.internal
      CompositeMediator.copyOrUpdate
      1. io.realm.internal.modules.CompositeMediator.getMediator(CompositeMediator.java:132)
      2. io.realm.internal.modules.CompositeMediator.copyOrUpdate(CompositeMediator.java:96)
      2 frames
    3. io.realm
      Realm.copyToRealm
      1. io.realm.Realm.copyOrUpdate(Realm.java:1164)
      2. io.realm.Realm.copyToRealm(Realm.java:737)
      2 frames
    4. ivanzar.cameraclient.db
      OrderDBUtil.addOrder
      1. ivanzar.cameraclient.db.OrderDBUtil.addOrder(OrderDBUtil.java:30)
      1 frame
    5. ivanzar.cameraclient.fragment
      OrderFragment.onCreateView
      1. ivanzar.cameraclient.fragment.OrderFragment.onCreateView(OrderFragment.java:52)
      1 frame
    6. Android Platform
      ActivityThread.main
      1. android.app.Fragment.performCreateView(Fragment.java:2053)
      2. android.app.FragmentManagerImpl.moveToState(FragmentManager.java:894)
      3. android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1067)
      4. android.app.BackStackRecord.run(BackStackRecord.java:833)
      5. android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1452)
      6. android.app.FragmentManagerImpl$1.run(FragmentManager.java:447)
      7. android.os.Handler.handleCallback(Handler.java:739)
      8. android.os.Handler.dispatchMessage(Handler.java:95)
      9. android.os.Looper.loop(Looper.java:135)
      10. android.app.ActivityThread.main(ActivityThread.java:5253)
      10 frames
    7. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    8. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:949)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:744)
      2 frames