Pattern selector

Most relevant patterns first. Most helpful ones displayed. Click here to show all.

  1. AbstractEntityManagerImpl.find() has thrown a PersistenceException
    Hibernate JPA Support
    3
    0
    0
  2. AbstractEntityManagerImpl.convert() has thrown a PersistenceException
    Hibernate JPA Support
    55
    10
    1

Your stack trace compared to the selected pattern

Jump to solutionsExpand frames
javax.persistence.PersistenceException: org.hibernate.WrongClassException: Object with id: testuser was not of the specified subclass: test.User (Discriminator: testuser)
    at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1387)
    at org.hibernate.ejb.AbstractEntityManagerImpl.find(AbstractEntityManagerImpl.java:838)
    at org.hibernate.ejb.AbstractEntityManagerImpl.find(AbstractEntityManagerImpl.java:781)

Solution

poroszd3 years ago

Check your annotations to use the proper table and column names.

Check the source of this solution for more info

External results for this pattern (10)

  1. d7071via GitHub2 months ago
    org.hibernate.exception.GenericJDBCException: could not inspect JDBC autocommit mode
    Show stack trace
  2. Thomvia Stack Overflow3 months ago
    org.hibernate.exception.ConstraintViolationException: integrity constraint violation: NOT NULL check constraint; SYS_CT_14316 table: OPTIONVALUE column: OPTION_INDEX
    Show stack trace
  3. Hamidvia Stack Overflow5 months ago
    org.hibernate.PersistentObjectException: detached entity passed to persist: com.tosan.chapar.core.entity.Rule
    Show stack trace
  4. org.hibernate.exception.ConstraintViolationException: integrity constraint violation: NOT NULL check constraint; SYS_CT_10143 table: HEALTHCARE_PROFESSIONALS column: INDIVIDUAL_ID
    Show stack trace
  5. Unknown authorvia redhat.com5 months ago
    org.hibernate.exception.GenericJDBCException: could not insert: [test]
    Show stack trace
  6. Unknown authorvia mysql.com5 months ago
    org.hibernate.exception.GenericJDBCException: could not execute batch
    Show stack trace
  7. Unknown authorvia mysql.com5 months ago
    org.hibernate.exception.GenericJDBCException: could not execute batch
    Show stack trace
  8. vtorosyanvia Stack Overflow5 months ago
    org.hibernate.exception.JDBCConnectionException: could not extract ResultSet
    Show stack trace
  9. Unknown authorvia sourceforge.net5 months ago
    org.hibernate.exception.GenericJDBCException: Cannot execute statement: impossible to write to binary log since BINLOG_FORMAT = STATEMENT and at least one table uses a storage engine limited to row-based logging. InnoDB is limited to row-logging when transaction isolation level is READ COMMITTED or READ UNCOMMITTED.
    Show stack trace
  10. Unknown authorvia sourceforge.net5 months ago
    org.hibernate.exception.GenericJDBCException: Cannot execute statement: impossible to write to binary log since BINLOG_FORMAT = STATEMENT and at least one table uses a storage engine limited to row-based logging. InnoDB is limited to row-logging when transaction isolation level is READ COMMITTED or READ UNCOMMITTED.
    Show stack trace