Uploaded image for project: 'Gateway'
  1. Gateway
  2. GTWY-1625

Publishing new dataset version fails with HibernateSystemException

XMLWordPrintable

      Publishing a new dataset version is failing with a Hibernate exception (see below.) This error occurred during publishing tests in which an existing dataset was first re-published with a number of files removed then (secondly) re-published with the original files restored. During the second re-publish, the publishing process failed with the error below. This error seems to indicate a getter on datasetVersionReference returned an instance of a LogicalFileImpl??


      Exception trace from application.log:


      WARNING 2010-07-08 22:04:14,325 Publication failed for dataset ucar.cgd.ccsm.b30.004.atm.proc.monthly_ave with message: Publishing operation description. THREDDS catalog: http://tds.prototype.ucar.edu/thredds/esgcet/13/ucar.cgd.ccsm.b30.004.atm.proc.monthly_ave.v3.xml
              Parent: CCSM run b30.004 data
              Overwrite mode: ALWAYS_UPDATE
      Completed.

      Publishing task description. THREDDS catalog: http://tds.prototype.ucar.edu/thredds/esgcet/13/ucar.cgd.ccsm.b30.004.atm.proc.monthly_ave.v3.xml
              Parent: CCSM run b30.004 data
              Overwrite mode: ALWAYS_UPDATE
       org.springframework.orm.hibernate3.HibernateSystemException: could not get a field value by reflection getter of eske.model.metadata.DatasetImpl.datasetVersionsReference; nested exception is org.hibernate.PropertyAccessException: could not get a field value by reflection getter of eske.model.metadata.DatasetImpl.datasetVersionsReference
              at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:676)
              at org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412)
              at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:424)
              at org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:374)
              at org.springframework.orm.hibernate3.HibernateTemplate.saveOrUpdate(HibernateTemplate.java:748)
              at eske.dao.metadata.impl.hibernate.LogicalFileRepositoryImpl.storeFile(LogicalFileRepositoryImpl.java:36)
              at eske.metadata.ingestor.persistence.DefaultMetadataPersister.processFile(DefaultMetadataPersister.java:80)
              at eske.metadata.ingestor.impl.MetadataIngestorImpl.handleNewFile(MetadataIngestorImpl.java:85)
              at eske.metadata.harvest.thredds.CatalogParserVisitor.handleNewLogicalFile(CatalogParserVisitor.java:146)
              at eske.metadata.harvest.thredds.CatalogParserVisitor.visitDataset(CatalogParserVisitor.java:104)
              at eske.metadata.harvest.thredds.THREDDSWalker.walk(THREDDSWalker.java:188)
              at eske.metadata.harvest.thredds.THREDDSWalker.walk(THREDDSWalker.java:201)
              at eske.metadata.harvest.thredds.THREDDSWalker.walk(THREDDSWalker.java:154)
              at eske.metadata.ingestor.impl.THREDDSScanningColleague.process(THREDDSScanningColleague.java:77)
              at eske.metadata.ingestor.impl.TransactionalMetadataIngestorImpl$1.doInTransaction(TransactionalMetadataIngestorImpl.java:63)
              at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:128)
              at eske.metadata.ingestor.impl.TransactionalMetadataIngestorImpl.ingest(TransactionalMetadataIngestorImpl.java:58)
              at eske.metadata.complete.thredds.PublishingTaskImpl.handleExecuteInternal(PublishingTaskImpl.java:131)
              at eske.metadata.complete.AbstractPublishingTask.execute(AbstractPublishingTask.java:48)
              at eske.metadata.complete.service.impl.PublishingOperationExectionServiceImpl$CallableTaskWrapper.call(PublishingOperationExectionServiceImpl.java:60)
              at eske.metadata.complete.service.impl.PublishingOperationExectionServiceImpl$CallableTaskWrapper.call(PublishingOperationExectionServiceImpl.java:40)
              at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
              at java.util.concurrent.FutureTask.run(FutureTask.java:138)
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
              at java.lang.Thread.run(Thread.java:619)
      Caused by: org.hibernate.PropertyAccessException: could not get a field value by reflection getter of eske.model.metadata.DatasetImpl.datasetVersionsReference
              at org.hibernate.property.DirectPropertyAccessor$DirectGetter.get(DirectPropertyAccessor.java:62)
              at org.hibernate.tuple.entity.AbstractEntityTuplizer.getPropertyValue(AbstractEntityTuplizer.java:506)
              at org.hibernate.tuple.entity.AbstractEntityTuplizer.getPropertyValue(AbstractEntityTuplizer.java:524)
              at org.hibernate.persister.entity.AbstractEntityPersister.getPropertyValue(AbstractEntityPersister.java:3844)
              at org.hibernate.engine.StatefulPersistenceContext.isFoundInParent(StatefulPersistenceContext.java:1236)
              at org.hibernate.engine.StatefulPersistenceContext.getOwnerId(StatefulPersistenceContext.java:1146)
              at org.hibernate.property.BackrefPropertyAccessor$BackrefGetter.getForInsert(BackrefPropertyAccessor.java:139)
              at org.hibernate.tuple.entity.AbstractEntityTuplizer.getPropertyValuesToInsert(AbstractEntityTuplizer.java:500)
              at org.hibernate.tuple.entity.PojoEntityTuplizer.getPropertyValuesToInsert(PojoEntityTuplizer.java:255)
              at org.hibernate.persister.entity.AbstractEntityPersister.getPropertyValuesToInsert(AbstractEntityPersister.java:3952)
              at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:290)
              at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:204)
              at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:144)
              at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:210)
              at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:195)
              at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:117)
              at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:93)
              at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:677)
              at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:669)
              at org.hibernate.engine.CascadingAction$5.cascade(CascadingAction.java:252)
              at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:392)
              at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:335)
              at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:204)
              at org.hibernate.engine.Cascade.cascadeCollectionElements(Cascade.java:425)
              at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java:362)
              at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:338)
              at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:204)
              at org.hibernate.engine.Cascade.cascade(Cascade.java:161)
              at org.hibernate.event.def.AbstractSaveEventListener.cascadeAfterSave(AbstractSaveEventListener.java:476)
              at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:354)
              at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:204)
              at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:144)
              at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:210)
              at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:195)
              at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:117)
              at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:93)
              at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:677)
              at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:669)
              at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:665)
              at org.springframework.orm.hibernate3.HibernateTemplate$16.doInHibernate(HibernateTemplate.java:751)
              at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:419)
              ... 23 more
      Caused by: java.lang.IllegalArgumentException: Can not set java.util.List field eske.model.metadata.DatasetImpl.datasetVersionsReference to eske.model.metadata.inventory.LogicalFileImpl
              at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:146)
              at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:150)
              at sun.reflect.UnsafeFieldAccessorImpl.ensureObj(UnsafeFieldAccessorImpl.java:37)
              at sun.reflect.UnsafeObjectFieldAccessorImpl.get(UnsafeObjectFieldAccessorImpl.java:18)
              at java.lang.reflect.Field.get(Field.java:358)
              at org.hibernate.property.DirectPropertyAccessor$DirectGetter.get(DirectPropertyAccessor.java:59)
              ... 63 more

              wilhelmi Nathan Wilhelmi (Inactive)
              ejn Eric Nienhouse
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: