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

Publishing operations throws StaleObjectStateException

XMLWordPrintable

      Publication of thredds catalog generates exception. This catalog contains contact information and error appears related to creation/persistence of a Contact object.

      Following is the log output from the publishing (esgpublish) console:

      WARNING 2011-07-25 17:30:24,743 Publication failed for dataset ornl.ultrahighres.CESM1.fv_climos with message: Publishing operation description. THREDDS catalog: http://esg2-sdnl1.ccs.ornl.gov/thredds/esgcet/1/ornl.ultrahighres.CESM1.fv_climos.v1.xml
              Overwrite mode: ALWAYS_UPDATE
      Completed.

      Publishing task description. THREDDS catalog: http://esg2-sdnl1.ccs.ornl.gov/thredds/esgcet/1/ornl.ultrahighres.CESM1.fv_climos.v1.xml
              Parent: Top Level Collection for the Ultra High Resolution Data
              Overwrite mode: ALWAYS_UPDATE
       org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [sgf.gateway.model.metadata.descriptive.ContactImpl#8c6068f2-354c-11e0-9349-00c0f03d5b7c]
              at org.hibernate.persister.entity.AbstractEntityPersister.check(AbstractEntityPersister.java:1792)
              at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2435)
              at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:2335)
              at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2635)
              at org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:115)
              at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279)
              at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:263)
              at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:168)
              at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321)
              at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:50)
              at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1027)
              at sgf.gateway.metadata.ingestor.persistence.DefaultMetadataPersister.processDataset(DefaultMetadataPersister.java:86)
              at sgf.gateway.metadata.ingestor.impl.MetadataIngestorImpl.handleNewDataset(MetadataIngestorImpl.java:93)
              at sgf.gateway.metadata.harvest.thredds.CatalogParserVisitor.handleNewDataset(CatalogParserVisitor.java:128)
              at sgf.gateway.metadata.harvest.thredds.CatalogParserVisitor.visitDataset(CatalogParserVisitor.java:96)
              at sgf.gateway.metadata.harvest.thredds.THREDDSWalker.walk(THREDDSWalker.java:183)
              at sgf.gateway.metadata.harvest.thredds.THREDDSWalker.walk(THREDDSWalker.java:152)
              at sgf.gateway.metadata.ingestor.impl.THREDDSScanningColleague.process(THREDDSScanningColleague.java:85)
              at sgf.gateway.metadata.ingestor.impl.TransactionalMetadataIngestorImpl$1.doInTransaction(TransactionalMetadataIngestorImpl.java:71)
              at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:130)
              at sgf.gateway.metadata.ingestor.impl.TransactionalMetadataIngestorImpl.ingest(TransactionalMetadataIngestorImpl.java:66)
              at sgf.gateway.metadata.complete.thredds.PublishingTaskImpl.handleExecuteInternal(PublishingTaskImpl.java:137)
              at sgf.gateway.metadata.complete.AbstractPublishingTask.execute(AbstractPublishingTask.java:60)
              at sgf.gateway.metadata.complete.service.impl.PublishingOperationExectionServiceImpl$CallableTaskWrapper.call(PublishingOperationExectionServiceImpl.java:75)
              at sgf.gateway.metadata.complete.service.impl.PublishingOperationExectionServiceImpl$CallableTaskWrapper.call(PublishingOperationExectionServiceImpl.java:1)
              at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
              at java.util.concurrent.FutureTask.run(FutureTask.java:166)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
              at java.lang.Thread.run(Thread.java:636)


      INFO 2011-07-25 17:30:24,758 Result: UNSUCCESSFUL
      xmr@esg2-sdnl1:/lustre/esgfs/projects/ultra_high_res>

              ejn Eric Nienhouse
              rgmiller Ross G. Miller (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: