You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Jukka Zitting (JIRA)" <ji...@apache.org> on 2014/01/24 16:56:39 UTC

[jira] [Commented] (OAK-1354) Valid Query for mixin Type in JCR 2.x fails in Oak

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

Jukka Zitting commented on OAK-1354:
------------------------------------

The "more than one selector" error is a bit misleading here, the problem is that the {{getColumnSelectorNames()}} method used by {{getNodes()}} seems to return an empty set of names. The correct {{getColumnSelectorNames()}} return value should be "my:custommixin" for a query like this, which should avoid the exception.

> Valid Query for mixin Type in JCR 2.x fails in Oak
> --------------------------------------------------
>
>                 Key: OAK-1354
>                 URL: https://issues.apache.org/jira/browse/OAK-1354
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: query
>    Affects Versions: 0.11
>            Reporter: Dominik Süß
>
> In a Sling based environment running on Oak 0.12.0.r1548152b I'm facing an issue resulting in a 500 error in Sling due to a repository exception when executing the following query through the Sling Resource Resolve 
> that did work in the equivalent JCR 2 based environment.
> {code}
> resolver.findResources("SELECT * FROM [my:custommixin]", Query.JCR_SQL2)
> {code}
> The custom mixing was added to the reqo via vlt package (mvn-vlt plugin by Adobe) and results (as well as the corresponding XPATH version in the following stackstrace:
> {code}javax.jcr.RepositoryException: Query contains more than one selector: []
> 	at org.apache.jackrabbit.oak.jcr.query.QueryResultImpl.getNodes(QueryResultImpl.java:163)
> 	at org.apache.sling.jcr.resource.internal.helper.jcr.JcrResourceProvider.findResources(JcrResourceProvider.java:261)
> {code}
> The further stacktrace seems irrelevant, but I can provide more if required.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)