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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via ormlite by sstarzycki
, 1 year ago
Field FieldType:name=mail,class=History is a primitive class class com.mypackage.Mail but marked as foreign
via Stack Overflow by matt112358
, 2 years ago
Field FieldType:name=tab1,class=Tab2 is a primitive class class com.xxx.xxx.model.Tab1 but marked as foreign
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(FieldType.java:329)
at com.j256.ormlite.dao.BaseDaoImpl.initialize(BaseDaoImpl.java:207)
at com.j256.ormlite.dao.BaseDaoImpl.(BaseDaoImpl.java:130)
at com.j256.ormlite.dao.BaseDaoImpl.(BaseDaoImpl.java:121)
at com.j256.ormlite.dao.BaseDaoImpl$5.(BaseDaoImpl.java:1002)
at com.j256.ormlite.dao.BaseDaoImpl.createDao(BaseDaoImpl.java:1002)
at com.j256.ormlite.dao.DaoManager.doCreateDao(DaoManager.java:359)
at com.j256.ormlite.dao.DaoManager.createDaoFromConfig(DaoManager.java:326)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Once, 1 year ago

Know the solutions? Share your knowledge to help other developers to debug faster.