Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-200

Unit tests for dna-example-sequencers don't work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 0.2
    • 0.2
    • Sequencers
    • None
    • Interactive Demo/Tutorial
    • Low

      Serge reported the following:

      Today, I took a look at the dna-example-sequencers and ran the "SequencingClientTest" test. But unfortunately shouldUploadAndSequencePngFile, shouldUploadAndSequenceJpegFile, shouldUploadAndSequencePictFile all fail with this exception:

      11:51:03,806 ERROR Error in repository while sequencer Image Sequencer is sequencing node repo/default=>/a/b/caution.png/jcr:content
      javax.jcr.nodetype.ConstraintViolationException: cannot set the value of a protected property /images/caution.png/image:metadata/jcr:primaryType
      at org.apache.jackrabbit.core.PropertyImpl.checkSetValue(PropertyImpl.java:224)
      at org.apache.jackrabbit.core.PropertyImpl.setValue(PropertyImpl.java:775)
      at org.apache.jackrabbit.core.NodeImpl.setProperty(NodeImpl.java:2211)
      at org.jboss.dna.repository.sequencers.StreamSequencerAdapter.saveOutput(StreamSequencerAdapter.java:230)
      at org.jboss.dna.repository.sequencers.StreamSequencerAdapter.execute(StreamSequencerAdapter.java:154)
      at org.jboss.dna.repository.sequencers.SequencingService.processChangedNode(SequencingService.java:576)
      at org.jboss.dna.repository.sequencers.SequencingService$1.run(SequencingService.java:484)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
      at java.lang.Thread.run(Thread.java:613)
      11:51:04,988 ERROR Error in repository while sequencer Image Sequencer is sequencing node repo/default=>/a/b/caution.jpeg/jcr:content
      javax.jcr.nodetype.ConstraintViolationException: cannot set the value of a protected property /images/caution.jpeg/image:metadata/jcr:primaryType
      at org.apache.jackrabbit.core.PropertyImpl.checkSetValue(PropertyImpl.java:224)
      at org.apache.jackrabbit.core.PropertyImpl.setValue(PropertyImpl.java:775)
      at org.apache.jackrabbit.core.NodeImpl.setProperty(NodeImpl.java:2211)
      at org.jboss.dna.repository.sequencers.StreamSequencerAdapter.saveOutput(StreamSequencerAdapter.java:230)
      at org.jboss.dna.repository.sequencers.StreamSequencerAdapter.execute(StreamSequencerAdapter.java:154)
      at org.jboss.dna.repository.sequencers.SequencingService.processChangedNode(SequencingService.java:576)
      at org.jboss.dna.repository.sequencers.SequencingService$1.run(SequencingService.java:484)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
      at java.lang.Thread.run(Thread.java:613)
      11:51:07,693 ERROR Error in repository while sequencer Mp3 Sequencer is sequencing node repo/default=>/a/b/test.mp3/jcr:content
      javax.jcr.nodetype.ConstraintViolationException: cannot set the value of a protected property /mp3s/test.mp3/mp3:metadata/jcr:primaryType
      at org.apache.jackrabbit.core.PropertyImpl.checkSetValue(PropertyImpl.java:224)
      at org.apache.jackrabbit.core.PropertyImpl.setValue(PropertyImpl.java:775)
      at org.apache.jackrabbit.core.NodeImpl.setProperty(NodeImpl.java:2211)
      at org.jboss.dna.repository.sequencers.StreamSequencerAdapter.saveOutput(StreamSequencerAdapter.java:230)
      at org.jboss.dna.repository.sequencers.StreamSequencerAdapter.execute(StreamSequencerAdapter.java:154)
      at org.jboss.dna.repository.sequencers.SequencingService.processChangedNode(SequencingService.java:576)
      at org.jboss.dna.repository.sequencers.SequencingService$1.run(SequencingService.java:484)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
      at java.lang.Thread.run(Thread.java:613)

            rhauch Randall Hauch (Inactive)
            rhauch Randall Hauch (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: