Uploaded image for project: 'Spring XD'
  1. Spring XD
  2. XD-3064

HdfsMongoDB Job failing due because of missing ID in Default Tuple

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.2 RC1
    • Fix Version/s: 1.2 RC1
    • Component/s: Batch
    • Labels:
      None
    • Story Points:
      3
    • Rank (Obsolete):
      9223372036854775807
    • Sprint:
      Sprint 49

      Description

      Looks to have been introduced by https://github.com/spring-projects/spring-xd/pull/1577
      Deployment: single admin, 2 container deployment using RabbitMQ as the transport.
      Below is a partial stacktrace (please check log for full stacktrace).
      Log is attached.
      {noformat)
      2015-05-15 10:50:15,843 1.2.0.SNAP ERROR xdbus.job:ec2Job3-1 step.AbstractStep - Encountered an error executing step readResourcesStep in job ec2Job3
      org.springframework.dao.InvalidDataAccessApiUsageException: Cannot autogenerate id of type java.util.UUID for entity of type org.springframework.xd.tuple.DefaultTuple!
      at org.springframework.data.mongodb.core.MongoTemplate.assertUpdateableIdIfNotSet(MongoTemplate.java:1153)
      at org.springframework.data.mongodb.core.MongoTemplate.doSave(MongoTemplate.java:882)
      at org.springframework.data.mongodb.core.MongoTemplate.save(MongoTemplate.java:837)
      at org.springframework.batch.item.data.MongoItemWriter.doWrite(MongoItemWriter.java:128)
      at org.springframework.batch.item.data.MongoItemWriter$1.beforeCommit(MongoItemWriter.java:156)
      at org.springframework.transaction.support.TransactionSynchronizationUtils.triggerBeforeCommit(TransactionSynchronizationUtils.java:95)
      at org.springframework.transaction.support.AbstractPlatformTransactionManager.triggerBeforeCommit(AbstractPlatformTransactionManager.java:928)
      at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:740)
      at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:726)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      {noformat)

        Attachments

          Activity

            People

            Assignee:
            thomas.risberg Thomas Risberg
            Reporter:
            grenfro Glenn Renfro
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: