Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-4290

Hibernate error when running Checker

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Received (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 6.3
    • Fix Version/s: None
    • Component/s: API
    • Labels:
      None
    • Environment:
      CentOS Linux 7.6.1810
      Intel(R) Xeon(R) CPU E5620 @ 2.40GHz, 4 cores
    • Attachments:
      0
    • Comments:
      0
    • Documentation Status:
      Needed

      Description

      Checker fails to run successfully when run with -l parameter.  I can run checker against a specific collection or community, both with and without -p parameter.

       

      Returned error:

      Exception: Batch update returned unexpected row count from update [0]; actual row count: 2; expected: 1
      org.hibernate.jdbc.BatchedTooManyRowsAffectedException: Batch update returned unexpected row count from update [0]; actual row count: 2; expected: 1
      {{ at org.hibernate.jdbc.Expectations$BasicExpectation.checkBatched(Expectations.java:89)}}
      {{ at org.hibernate.jdbc.Expectations$BasicExpectation.verifyOutcome(Expectations.java:73)}}
      {{ at org.hibernate.engine.jdbc.batch.internal.BatchingBatch.checkRowCounts(BatchingBatch.java:141)}}
      {{ at org.hibernate.engine.jdbc.batch.internal.BatchingBatch.performExecution(BatchingBatch.java:118)}}
      {{ at org.hibernate.engine.jdbc.batch.internal.BatchingBatch.doExecuteBatch(BatchingBatch.java:101)}}
      {{ at org.hibernate.engine.jdbc.batch.internal.AbstractBatchImpl.execute(AbstractBatchImpl.java:161)}}
      {{ at org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl.executeBatch(JdbcCoordinatorImpl.java:207)}}
      {{ at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:390)}}
      {{ at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:304)}}
      {{ at org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:349)}}
      {{ at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:56)}}
      {{ at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1195)}}
      {{ at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)}}
      {{ at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)}}
      {{ at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)}}
      {{ at java.lang.reflect.Method.invoke(Method.java:498)}}
      {{ at org.hibernate.context.internal.ThreadLocalSessionContext$TransactionProtectionWrapper.invoke(ThreadLocalSessionContext.java:352)}}
      {{ at com.sun.proxy.$Proxy40.flush(Unknown Source)}}
      {{ at org.dspace.core.HibernateDBConnection.uncacheEntity(HibernateDBConnection.java:241)}}
      {{ at org.dspace.core.Context.uncacheEntity(Context.java:782)}}
      {{ at org.dspace.checker.CheckerCommand.process(CheckerCommand.java:130)}}
      {{ at org.dspace.app.checker.ChecksumChecker.main(ChecksumChecker.java:232)}}
      {{ at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)}}
      {{ at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)}}
      {{ at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)}}
      {{ at java.lang.reflect.Method.invoke(Method.java:498)}}
      {{ at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:229)}}
      {{ at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:81)}}

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            stevem Steve Michaels
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: