[dna-issues] [JBoss JIRA] Created: (DNA-203) Unit tests for dna-example-sequencers don't work

Randall Hauch (JIRA) jira-events at lists.jboss.org
Sun Aug 17 18:08:58 EDT 2008


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

                 Key: DNA-203
                 URL: https://jira.jboss.org/jira/browse/DNA-203
             Project: DNA
          Issue Type: Bug
          Components: Sequencers
    Affects Versions: 0.2
            Reporter: Randall Hauch
            Assignee: Randall Hauch
             Fix For: 0.2


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)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the dna-issues mailing list