Hi devs,
I’m having problems upgrading a database from 2.19 to 2.20. I get the follow error during startup (full stack trace of error attached), between stage 5 and 6 of the routine:
* ERROR 2015-08-15 18:39:48,458 org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: org.hisp.dhis.organisationunit.OrganisationUnit
at org.hibernate.engine.internal.ForeignKeys.getEntityIdentifierIfNotUnsaved(ForeignKeys.java:249)
Any advice on what might be causing this? I even tried "downgrading" the database to 2.19 (after trying to start it with 2.20), and it then starts without issues - so seems limited to 2.20.
Are you using the latest 2.20? there was some fixes related to this yesterday
···
On Tue, Aug 18, 2015 at 4:41 PM, Olav Poppe olav.poppe@me.com wrote:
Hi devs,
I’m having problems upgrading a database from 2.19 to 2.20. I get the follow error during startup (full stack trace of error attached), between stage 5 and 6 of the routine:
ERROR 2015-08-15 18:39:48,458 org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: org.hisp.dhis.organisationunit.OrganisationUnit
at org.hibernate.engine.internal.ForeignKeys.getEntityIdentifierIfNotUnsaved(ForeignKeys.java:249)
Any advice on what might be causing this? I even tried “downgrading” the database to 2.19 (after trying to start it with 2.20), and it then starts without issues - so seems limited to 2.20.
Thanks Morten, unfortunately I still get the same problem with the latest 2.20 build.
Olav
···
On Tue, Aug 18, 2015 at 4:41 PM, Olav Poppe olav.poppe@me.com wrote:
Hi devs,
I’m having problems upgrading a database from 2.19 to 2.20. I get the follow error during startup (full stack trace of error attached), between stage 5 and 6 of the routine:
ERROR 2015-08-15 18:39:48,458 org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: org.hisp.dhis.organisationunit.OrganisationUnit
at org.hibernate.engine.internal.ForeignKeys.getEntityIdentifierIfNotUnsaved(ForeignKeys.java:249)
Any advice on what might be causing this? I even tried “downgrading” the database to 2.19 (after trying to start it with 2.20), and it then starts without issues - so seems limited to 2.20.
Are you using the latest 2.20? there was some fixes related to this yesterday
–
Morten
–
Morten
On Tue, Aug 18, 2015 at 4:41 PM, Olav Poppe olav.poppe@me.com wrote:
Hi devs,
I’m having problems upgrading a database from 2.19 to 2.20. I get the follow error during startup (full stack trace of error attached), between stage 5 and 6 of the routine:
ERROR 2015-08-15 18:39:48,458 org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: org.hisp.dhis.organisationunit.OrganisationUnit
at org.hibernate.engine.internal.ForeignKeys.getEntityIdentifierIfNotUnsaved(ForeignKeys.java:249)
Any advice on what might be causing this? I even tried “downgrading” the database to 2.19 (after trying to start it with 2.20), and it then starts without issues - so seems limited to 2.20.
Are you using the latest 2.20? there was some fixes related to this yesterday
–
Morten
–
Morten
On Tue, Aug 18, 2015 at 4:41 PM, Olav Poppe olav.poppe@me.com wrote:
Hi devs,
I’m having problems upgrading a database from 2.19 to 2.20. I get the follow error during startup (full stack trace of error attached), between stage 5 and 6 of the routine:
ERROR 2015-08-15 18:39:48,458 org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: org.hisp.dhis.organisationunit.OrganisationUnit
at org.hibernate.engine.internal.ForeignKeys.getEntityIdentifierIfNotUnsaved(ForeignKeys.java:249)
Any advice on what might be causing this? I even tried “downgrading” the database to 2.19 (after trying to start it with 2.20), and it then starts without issues - so seems limited to 2.20.