[dna-issues] [JBoss JIRA] Resolved: (DNA-203) Unit tests for dna-example-sequencers don't work
Randall Hauch (JIRA)
jira-events at lists.jboss.org
Sun Aug 17 18:13:58 EDT 2008
[ https://jira.jboss.org/jira/browse/DNA-203?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Randall Hauch resolved DNA-203.
-------------------------------
Resolution: Done
This must have regressed when we upgraded to Jackrabbit 1.4.5, but the unit tests for the examples were apparently not included in the continuous builds. (See DNA-204 for that.) We're blindly setting the "jcr:primaryType" property (along with all other properties) on all the nodes, but since that's supplied when creating the node, resetting the "jcr:primaryType" property is not necessary (and apparently no longer allowed). Added a check in the StreamSequencerAdapter to skip (re)setting this property on each node.
> 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