java.lang.IllegalArgumentException: Field FieldType:name=mail,class=History is a primitive class class com.mypackage.Mail but marked as foreign

ormlite | sstarzycki | 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

    Field FieldType:name=xxx,class=xxx is a primitive class class com.mypackage.xxx but marked as foreign

    ormlite | 3 years ago | sstarzycki
    java.lang.IllegalArgumentException: Field FieldType:name=mail,class=History is a primitive class class com.mypackage.Mail but marked as foreign
  2. 0

    Could not find appropriate get method for private boolean in OrmLite

    Stack Overflow | 2 years ago | user1689757
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.app/com.app.MainActivity_}: java.lang.IllegalArgumentException: Could not find appropriate get method for private boolean com.app.model.User.isKeepAlive

  1. hoangtranwork 1 times, last 11 months ago
2 unregistered visitors

Root Cause Analysis

  1. java.lang.IllegalArgumentException

    Field FieldType:name=mail,class=History is a primitive class class com.mypackage.Mail but marked as foreign

    at com.j256.ormlite.field.FieldType.configDaoInformation()
  2. ORMLite Core
    DaoManager.createDao
    1. com.j256.ormlite.field.FieldType.configDaoInformation(FieldType.java:329)
    2. com.j256.ormlite.dao.BaseDaoImpl.initialize(BaseDaoImpl.java:207)
    3. com.j256.ormlite.dao.BaseDaoImpl.<init>(BaseDaoImpl.java:130)
    4. com.j256.ormlite.dao.BaseDaoImpl.<init>(BaseDaoImpl.java:121)
    5. com.j256.ormlite.dao.BaseDaoImpl$5.<init>(BaseDaoImpl.java:1002)
    6. com.j256.ormlite.dao.BaseDaoImpl.createDao(BaseDaoImpl.java:1002)
    7. com.j256.ormlite.dao.DaoManager.doCreateDao(DaoManager.java:359)
    8. com.j256.ormlite.dao.DaoManager.createDaoFromConfig(DaoManager.java:326)
    9. com.j256.ormlite.dao.DaoManager.createDao(DaoManager.java:55)
    9 frames
  3. ORMLite Android
    OrmLiteSqliteOpenHelper.getDao
    1. com.j256.ormlite.android.apptools.OrmLiteSqliteOpenHelper.getDao(OrmLiteSqliteOpenHelper.java:279)
    1 frame