java.sql.SQLException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • GitHub comment 97#255584632
    via GitHub by webratte
    ,
  • Exception while running application in JavaFX
    via Stack Overflow by APro
    ,
    • java.sql.SQLException: Unable to run stmt on object com.crolox.testOrmLite.MultiThreadingTest$TestModel@589d4d84: INSERT INTO "TESTMODEL" ("string1" ) VALUES (?) at com.j256.ormlite.misc.SqlExceptionUtil.create(SqlExceptionUtil.java:22)[ormlite-core-4.24.jar:na] at com.j256.ormlite.stmt.mapped.MappedCreate.createWithGeneratedId(MappedCreate.java:179)[ormlite-core-4.24.jar:na] at com.j256.ormlite.stmt.mapped.MappedCreate.insert(MappedCreate.java:41)[ormlite-core-4.24.jar:na] at com.j256.ormlite.stmt.StatementExecutor.create(StatementExecutor.java:320)[ormlite-core-4.24.jar:na] at com.j256.ormlite.dao.BaseDaoImpl.create(BaseDaoImpl.java:281)[ormlite-core-4.24.jar:na] at com.j256.ormlite.dao.BaseDaoImpl.createOrUpdate(BaseDaoImpl.java:307)[ormlite-core-4.24.jar:na] at com.crolox.testOrmLite.MultiThreadingTest$1.run(MultiThreadingTest.java:50)[bin/:na] Caused by: java.sql.SQLException: Could not assign object '192909' to field FieldType:name=id,class=TestModel at com.j256.ormlite.misc.SqlExceptionUtil.create(SqlExceptionUtil.java:22)[ormlite-core-4.24.jar:na] at com.j256.ormlite.field.FieldType.assignField(FieldType.java:490)[ormlite-core-4.24.jar:na] at com.j256.ormlite.field.FieldType.assignIdValue(FieldType.java:515)[ormlite-core-4.24.jar:na] at com.j256.ormlite.stmt.mapped.MappedCreate.assignIdValue(MappedCreate.java:185)[ormlite-core-4.24.jar:na] at com.j256.ormlite.stmt.mapped.MappedCreate.createWithGeneratedId(MappedCreate.java:170)[ormlite-core-4.24.jar:na] ... 5 more Caused by: java.lang.IllegalAccessException: Class com.j256.ormlite.field.FieldType can not access a member of class com.crolox.testOrmLite.MultiThreadingTest$TestModel with modifiers "private" at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:65)[na:1.6.0_26] at java.lang.reflect.Field.doSecurityCheck(Field.java:960)[na:1.6.0_26] at java.lang.reflect.Field.getFieldAccessor(Field.java:896)[na:1.6.0_26] at java.lang.reflect.Field.set(Field.java:657)[na:1.6.0_26] at com.j256.ormlite.field.FieldType.assignField(FieldType.java:486)[ormlite-core-4.24.jar:na] ... 8 more

    Users with the same issue

    Axelo
    2 times, last one,
    kjhdofjosvs
    3 times, last one,
    Unknown visitor1 times, last one,
    Anshul Rawat
    1 times, last one,
    tvrmsmith
    2 times, last one,
    37 more bugmates