[dna-dev] unit tests for dna-example-sequemcers don't work

Randall Hauch rhauch at redhat.com
Sun Aug 17 18:34:29 EDT 2008


Both of these are now fixed:
http://jira.jboss.com/jira/browse/DNA-203 "Unit tests for dna-example- 
sequencers don't work"
http://jira.jboss.com/jira/browse/DNA-204 "Unit tests for dna-example- 
sequencers are not being executed in the Maven builds in the nightly  
Hudson jobs"

Best regards,

Randall


On Aug 17, 2008, at 4:59 PM, Randall Hauch wrote:

> Good catch, Serge!  I am also getting the exceptions locally.  I  
> thought they were running during the continuous builds, but they  
> must not be since the builds are running successfully.  I'll take a  
> look why the tests aren't running in Hudson and why the tests  
> produce these errors.
>
> Best regards,
>
> Randall
>
>
> On Aug 17, 2008, at 5:28 AM, Serge Pagop wrote:
>
>> Hi Randall,
>>
>> today, I take a look at the dna-example-sequemcers and then run  
>> "SequencingClientTest" test. But  unfortunately unit tests  
>> shouldUploadAndSequencePngFile, shouldUploadAndSequenceJpegFile,  
>> shouldUploadAndSequencePictFile don't work.
>> here is the error stack trace:
>>
>> 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)
>>
>>
>>
>> -- 
>> ------------------
>>
>> |||| Serge Pagop
>> |||| Senior Consultant
>> ||||
>> |||| JBug Munich Founder
>> |||| |||| innoQ Deutschland GmbH, Halskestr. 17, D-40880 Ratingen,  
>> Germany
>> |||| P: +49 2102 77162-100, M: +49 178 4049592, F: +49 210 277160-1
>> |||| Mail: serge.pagop at innoq.com, Web: http://www.innoq.com ||||  
>> Weblog: http://www.innoq.com/blog/sp
>> |||| JBug Munich: http://www.jbug-munich.org
>>
>> _______________________________________________
>> dna-dev mailing list
>> dna-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/dna-dev
>
> _______________________________________________
> dna-dev mailing list
> dna-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/dna-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/dna-dev/attachments/20080817/3f904b53/attachment.html 


More information about the dna-dev mailing list