org.hibernate.WrongClassException - Object with id 1 was not of the specified subclass

less than 1 minute read


<P><FONT SIZE=2 FACE=”Arial”>P INFO [main] terranua.rcms.model.coso.impl.RiskTest.startNewTransaction(323)
Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@53abbb]; default rollback = true</FONT></P> <P><FONT SIZE=2 FACE=”Arial”>P INFO [main] terranua.rcms.model.coso.impl.RiskTest.endTransaction(290) Rolled back transaction after test execution</FONT> </P> <P><FONT SIZE=2 FACE=”Arial”>Process finished with exit code -1</FONT> </P> <P><FONT SIZE=2 FACE=”Arial”>org.hibernate.WrongClassException: Object with id: 1 was not of the specified subclass: com.terranua.rcms.model.coso.impl.MonitoringProgram (loaded object was of wrong class)</FONT></P> <P>        <FONT SIZE=2 FACE=”Arial”>at org.hibernate.loader.Loader.instanceAlreadyLoaded(Loader.java:1235)</FONT>
        <FONT SIZE=2 FACE=”Arial”>at org.hibernate.loader.Loader.getRow(Loader.java:1186)</FONT>
        <FONT SIZE=2 FACE=”Arial”>at org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:569)</FONT>
        <FONT SIZE=2 FACE=”Arial”>at org.hibernate.loader.Loader.doQuery(Loader.java:689)</FONT>
        <FONT SIZE=2 FACE=”Arial”>at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)</FONT>
        <FONT SIZE=2 FACE=”Arial”>at org.hibernate.loader.Loader.loadCollection(Loader.java:1919)</FONT> </P>

Categories:

Updated:

Leave a Comment