Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #39169
| Path | csiph.com!aioe.org!.POSTED.O5hsyUvK01te0L/SZurVSQ.user.gioia.aioe.org!not-for-mail |
|---|---|
| From | Arne Vajhøj <arne@vajhoej.dk> |
| Newsgroups | comp.lang.java.programmer |
| Subject | JCR ModeShape non-existant column 'mode:localName' |
| Date | Fri, 4 Oct 2019 21:12:07 -0400 |
| Organization | Aioe.org NNTP Server |
| Lines | 46 |
| Message-ID | <qn8ql6$11c4$1@gioia.aioe.org> (permalink) |
| NNTP-Posting-Host | O5hsyUvK01te0L/SZurVSQ.user.gioia.aioe.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Complaints-To | abuse@aioe.org |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 |
| Content-Language | en-US |
| X-Mozilla-News-Host | news://nntp.aioe.org:119 |
| X-Notice | Filtered by postfilter v. 0.9.2 |
| Xref | csiph.com comp.lang.java.programmer:39169 |
Show key headers only | View raw
I am playing a little bit with JCR.
I have this piece of code doing a JCR SQL2 query:
Query q = ses.getWorkspace().getQueryManager().createQuery("SELECT
author,time,title,body FROM [nt:unstructured] WHERE author = '" + author
+ "' AND title IS NOT NULL", Query.JCR_SQL2);
QueryResult q1 = q.execute();
When using JackRabbit as implementation it works.
When using ModeShape as implementation then execute gives me:
Exception in thread "main"
org.modeshape.jcr.query.parse.InvalidQueryException: The view references
a non-existant column 'mode:localName' in '__ALLNODES__'
I tried both version 5.4.1 and 4.6.2 - same exception in both.
It is documented that ModeShape use a pseudo property/column
mode:localName.
https://docs.jboss.org/author/display/MODE50/Query+and+search
<quote>
ModeShape adds support for several columns that don't really exist on
any node types but that are implicit in JCR. You can use these columns
anywhere in a query that columns can normally be used.
...
mode:localName The local name of the node. The value is equivalent to
jcr:name except without the namespace portion of the name.
</quote>
So it is supposed to be there.
But per exception message it is not.
And furthermore I am not trying to use it (explicitly).
Anybody with ModeShape experience that can provide some
hints about what I am doing wrong?
Arne
Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread
JCR ModeShape non-existant column 'mode:localName' Arne Vajhøj <arne@vajhoej.dk> - 2019-10-04 21:12 -0400 Re: JCR ModeShape non-existant column 'mode:localName' Arne Vajhøj <arne@vajhoej.dk> - 2019-11-17 20:00 -0500
csiph-web