Opened 18 years ago

Last modified 18 years ago

#488 closed defect

Updade 2.1.1 to 2.2 fails — at Initial Version

Reported by: Nicklas Nordborg Owned by: everyone
Priority: blocker Milestone: BASE 2.2.1
Component: install Version: 2.2
Keywords: Cc:

Description

Here is the stacktrace:

[87%]   --Updating schema version: 28 -> 29...12:06:13,579 ERROR 
Update:1150 - updateToSchemaVersion29: FAILED
net.sf.basedb.core.BaseException: Object with id: 1 was not of the 
specified subclass: net.sf.basedb.core.data.MeasuredBioMaterialData 
(Discriminator: 0)
        at 
net.sf.basedb.core.HibernateUtil.loadList(HibernateUtil.java:1355)
        at 
net.sf.basedb.core.Update.updateToSchemaVersion29(Update.java:1105)
        at net.sf.basedb.core.Update.updateDatabase(Update.java:504)
        at net.sf.basedb.install.InitDB.main(InitDB.java:69)
Caused by: org.hibernate.WrongClassException: Object with id: 1 was not 
of the specified subclass: 
net.sf.basedb.core.data.MeasuredBioMaterialData (Discriminator: 0)
        at org.hibernate.loader.Loader.getInstanceClass(Loader.java:1444)
        at 
org.hibernate.loader.Loader.instanceNotYetLoaded(Loader.java:1275)
        at org.hibernate.loader.Loader.getRow(Loader.java:1197)
        at org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:568)
        at org.hibernate.loader.Loader.doQuery(Loader.java:689)
        at 
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)
        at org.hibernate.loader.Loader.doList(Loader.java:2211)
        at 
org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2095)
        at org.hibernate.loader.Loader.list(Loader.java:2090)
        at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:375)
        at 
org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
        at 
org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
        at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
        at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
        at 
net.sf.basedb.core.HibernateUtil.loadList(HibernateUtil.java:1351)
        ... 3 more

For more info see the mailing list archive: TODO - add link to list archive once the mail appears on the web

Change History (0)

Note: See TracTickets for help on using tickets.