jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Dürig (JIRA) <j...@apache.org>
Subject [jira] [Commented] (OAK-299) Node Type support: SQL2QueryResultTest fails
Date Wed, 19 Sep 2012 14:56:07 GMT

    [ https://issues.apache.org/jira/browse/OAK-299?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13458730#comment-13458730
] 

Michael Dürig commented on OAK-299:
-----------------------------------

bq. Both tests use o.a.j.commons.cnd.CndImporter to create custom node types, is that not
compatible with oak

This should be fine in general. However there are still loose ends in node type validation.
You might be hitting one of those.

* Are same name siblings involved?
* Which part of the validation fails? For which node type/operation/path? 

As part of my work on node type validation I also made error reporting more precise. So you
might see a more informative stack trace now then the one you posted initially. 
                
> Node Type support: SQL2QueryResultTest fails
> --------------------------------------------
>
>                 Key: OAK-299
>                 URL: https://issues.apache.org/jira/browse/OAK-299
>             Project: Jackrabbit Oak
>          Issue Type: Sub-task
>          Components: jcr
>            Reporter: Alex Parvulescu
>
> Another jackrabit query test that fails: {{SQL2QueryResultTest#testSQL2SelectColums}}
[0]
> I think this one is about node types [1]
> [0]
> https://svn.apache.org/repos/asf/jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/query/SQL2QueryResultTest.java
> [1]
> javax.jcr.nodetype.ConstraintViolationException: Can't add node node1 at /testroot
> 	at org.apache.jackrabbit.oak.plugins.type.TypeValidator.throwConstraintViolationException(TypeValidator.java:213)
> 	at org.apache.jackrabbit.oak.plugins.type.TypeValidator.childNodeAdded(TypeValidator.java:114)
> 	at org.apache.jackrabbit.oak.spi.commit.CompositeValidator.childNodeAdded(CompositeValidator.java:68)
> 	at org.apache.jackrabbit.oak.spi.commit.ValidatingHook$ValidatorDiff.childNodeAdded(ValidatingHook.java:157)
> 	at org.apache.jackrabbit.oak.spi.state.AbstractNodeState.compareAgainstBaseState(AbstractNodeState.java:134)
> 	at org.apache.jackrabbit.oak.kernel.KernelNodeState.compareAgainstBaseState(KernelNodeState.java:233)
> 	at org.apache.jackrabbit.oak.spi.commit.ValidatingHook$ValidatorDiff.validate(ValidatingHook.java:112)
> 	at org.apache.jackrabbit.oak.spi.commit.ValidatingHook$ValidatorDiff.validate(ValidatingHook.java:103)
> 	at org.apache.jackrabbit.oak.spi.commit.ValidatingHook$ValidatorDiff.childNodeChanged(ValidatingHook.java:175)
> 	at org.apache.jackrabbit.oak.spi.state.AbstractNodeState.compareAgainstBaseState(AbstractNodeState.java:127)
> 	at org.apache.jackrabbit.oak.kernel.KernelNodeState.compareAgainstBaseState(KernelNodeState.java:233)
> 	at org.apache.jackrabbit.oak.spi.commit.ValidatingHook$ValidatorDiff.validate(ValidatingHook.java:112)
> 	at org.apache.jackrabbit.oak.spi.commit.ValidatingHook$ValidatorDiff.validate(ValidatingHook.java:103)
> 	at org.apache.jackrabbit.oak.spi.commit.ValidatingHook.processCommit(ValidatingHook.java:75)
> 	at org.apache.jackrabbit.oak.spi.commit.CompositeHook.processCommit(CompositeHook.java:50)
> 	at org.apache.jackrabbit.oak.kernel.KernelNodeStoreBranch.merge(KernelNodeStoreBranch.java:128)
> 	at org.apache.jackrabbit.oak.core.RootImpl$1.run(RootImpl.java:172)
> 	at org.apache.jackrabbit.oak.core.RootImpl$1.run(RootImpl.java:1)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at javax.security.auth.Subject.doAs(Subject.java:337)
> 	at org.apache.jackrabbit.oak.core.RootImpl.commit(RootImpl.java:167)
> 	at org.apache.jackrabbit.oak.jcr.SessionDelegate.save(SessionDelegate.java:225)
> 	at org.apache.jackrabbit.oak.jcr.SessionImpl.save(SessionImpl.java:274)
> 	at org.apache.jackrabbit.core.query.SQL2QueryResultTest.setUp(SQL2QueryResultTest.java:59)
> 	at junit.framework.TestCase.runBare(TestCase.java:132)
> 	at junit.framework.TestResult$1.protect(TestResult.java:110)
> 	at junit.framework.TestResult.runProtected(TestResult.java:128)
> 	at junit.framework.TestResult.run(TestResult.java:113)
> 	at junit.framework.TestCase.run(TestCase.java:124)
> 	at org.apache.jackrabbit.test.AbstractJCRTest.run(AbstractJCRTest.java:456)
> 	at junit.framework.TestSuite.runTest(TestSuite.java:243)
> 	at junit.framework.TestSuite.run(TestSuite.java:238)
> 	at junit.framework.TestSuite.runTest(TestSuite.java:243)
> 	at org.apache.jackrabbit.test.ConcurrentTestSuite.access$001(ConcurrentTestSuite.java:29)
> 	at org.apache.jackrabbit.test.ConcurrentTestSuite$2.run(ConcurrentTestSuite.java:67)
> 	at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown Source)
> 	at java.lang.Thread.run(Thread.java:662)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message