suril | 18 Jun 2013 16:26

Document Search not working when I switch from Standalone mode to Embedded and vice versa

Hi,

I have dual mode JR (standalone + embedded) to my application.

Suppose, I upload few documents in the standalone mode; stop that service;
start the service to up the embedded mode and search for those documents;
I'm not able to find them.

Is the index getting corrupted in the procedure?

The next thing I would try doing is rebuilding the index wherein I would
delete the index directories of the embedded mode before starting it when I
switch to embedded.

I would post the results here as soon as I'm done.

Any other suggestions to overcome this problem are fondly welcome.

Thanks guys.

Regards,
Suril

--
View this message in context: http://jackrabbit.510166.n4.nabble.com/Document-Search-not-working-when-I-switch-from-Standalone-mode-to-Embedded-and-vice-versa-tp4658897.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

anjan | 17 Jun 2013 07:38
Picon

Full text indexing under OSGi environment (Sling) is not working

Hi, I am building the Apache Sling (by checking out the latest stable version
from Jenkins) successfully and deploying it in Tomcat.  Then I am connecting
to Sling using WebDAV and adding few documents (pdf, word, text file...etc).
But the full text indexing is not happening.  I can confirm this using the
Luke tool.  Only metadata(created by, mime type) is getting indexed.  As I
see it, the built Sling is using Jackrabbit 2.4.2 as the embedded
repository.  So I tried to reproduce the problem by downloading the
standalone Jackrabbit 2.4.2 jar, running it, connecting to it via WebDAV and
adding few documents.  Here the full text indexing is happening perfectly
fine (confirmed looking at the indexes using Luke).

When I use earlier version of Sling (Sling 6 war file), full text indexing
is happening fine.  In Sling 6 though, Apache Tika 0.6 is used (I believe
Jackrabbit internally uses Tika for metadata and text extraction). 
Secondly, the entire Tika is bundled as a single OSGI bundle (Core and
Parsers) in Sling 6.  But in the latest build of Sling Tika 1.0 is used and
Tika Core and Tikar Parsers are deployed as separate OSGI bundles.  I did
lot of debugging without much success.

I am not sure if this issue is related to Jackrabbit being deployed in OSGi
environment.  I already raised this issue in Sling mailing list, but wanted
to post here also to get experts' opinion.  Please advice.  'Search' is an
important feature and it's is not working.

--
View this message in context: http://jackrabbit.510166.n4.nabble.com/Full-text-indexing-under-OSGi-environment-Sling-is-not-working-tp4658882.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

Thomas Auinger | 17 Jun 2013 15:54
Picon
Gravatar

ItemStateReferenceCache "overwriting cached entry"

Hello,

we have discovered some log entries like

[  o.a.j.c.s.ItemStateReferenceCache] - overwriting cached entry 931fecae-9e56-46fa-bd55-3be4e371eb4f/{}timeMillis

In our log files.

I have read that these are caused by multiple threads accessing the same session but we are very sure we don't
do that (using JcrTemplate from springmodules-jcr everywhere).

Some stackoverflow-post claims to have a similar problem (see comment at bottom):
http://stackoverflow.com/questions/6680237/jackrabbit-and-concurrent-modification

Could somebody please explain? We have an urgent customer complaint about data inconsistency and need to
do something ASAP.

(jackrabbit 2.6.2)

Thanks heaps
Thomas
Priyanka Prabhu | 17 Jun 2013 14:48
Picon
Favicon

RE: Priyanka Prabhu


http://thiers.addauvergne.com/cyljxik/lyij/tsrir/iugn.html?tpm=fts
Best regards, Priyanka Prabhu
Ulrich | 17 Jun 2013 11:20
Picon

JCR-SQL2: JOIN fails with javax.jcr.RepositoryException: Internal Server Error

From another thread I've opened here I've derived another problem. I'm trying to
run a SQL2-query to find all nt:file-type nodes with a child-node of type
"nt:resource" (this is probably true for all nt:file-nodes but the query is just
a start to become familiar with JOIN).
In the other thread I had problems with the syntax ( the description in the
JCR-Specs chapter 6.7.22 is really misleading; there the selectorname is sort of
enclosed with square brackets, but it is the path which needs to this kind of
enclosement). In this thread I want to understand how to get this query to run:

queryString = "select * from [nt:file] as parent " +
              "inner join [nt:resource] as child on ISCHILDNODE(child,parent)" +
              "WHERE ISDESCENDANTNODE(descendant,[/content/testit])";

From the query I get the Exception:
Exception in thread "main" javax.jcr.RepositoryException: Internal Server Error
        at
org.apache.jackrabbit.spi2dav.ExceptionConverter.generate(ExceptionConverter.java:120)
        at
org.apache.jackrabbit.spi2dav.ExceptionConverter.generate(ExceptionConverter.java:51)
        at
org.apache.jackrabbit.spi2dav.ExceptionConverter.generate(ExceptionConverter.java:45)
        at
org.apache.jackrabbit.spi2dav.RepositoryServiceImpl.executeQuery(RepositoryServiceImpl.java:2004)
        at
org.apache.jackrabbit.jcr2spi.WorkspaceManager.executeQuery(WorkspaceManager.java:349)
        at
org.apache.jackrabbit.jcr2spi.query.QueryImpl.execute(QueryImpl.java:149)
        at
com.lsy.samplejcr.query.JSQL2gettingStarted.runSQL2(JSQL2gettingStarted.java:94)
        at
(Continue reading)

Ulrich | 17 Jun 2013 10:01
Picon

JCR-JQOM: JOIN returns Message: WARN NodeIteratorImpl - Exception retrieving Node with Id: null

Still fighting with JCR-JQOM:
I need to retrieve "jcr:lastModified" from jcr:contend-childnode of every
nt:file-Node. My approach is:

Selector ntFileSelector = qomf.selector("nt:file", "Parent");
Selector jcrContentSelector = qomf.selector("nt:resource", "Child");
Join join = qomf.join(ntFileSelector, jcrContentSelector,
QueryObjectModelFactory.JCR_JOIN_TYPE_INNER,
     qomf.childNodeJoinCondition(jcrContentSelector.getSelectorName(),
ntFileSelector.getSelectorName()));
Constraint getSubtree = qomf.descendantNode(ntFileSelector.getSelectorName(),
subtree);
QueryObjectModel qom = qomf.createQuery(join, getSubtree, null, null);
QueryResult queryResult = qom.execute();
nodeIterator = queryResult.getNodes();

From this I get four times the message:
   WARN  NodeIteratorImpl - Exception retrieving Node with Id: null
This means I get this message for every node which I expected to be selected
within the subtree.

If I run the query without the "JOIN":
QueryObjectModel qom = qomf.createQuery(ntFileSelector, getSubtree, null, null);
it is fine.

brdgs,
Ulrich

Grégory Joseph | 14 Jun 2013 17:40
Favicon
Gravatar

Jackrabbit creates a Reference typed property, despite the nt requesting a WeakReference ? Bug or feature ?

Hi there,

We have the following in a nodetype definition:
    <propertyDefinition name="foobar" requiredType="WeakReference" autoCreated="false"
mandatory="false" onParentVersion="COPY" protected="false" multiple="false"
isFullTextSearchable="false" isQueryOrderable="false"/>

.. and the following code …
            nodeA.setProperty("foobar", nodeB);

The Javadoc of javax.jcr.Node#setProperty(String name, Node value) says:
[…]
     * If the named property does not yet exist and the repository cannot
     * determine whether a <code>REFERENCE</code> or <code>WEAKREFERENCE</code>
     * property is intended, then a <code>REFERENCE</code> property is created.
[…]

… so we assumed that the NT def would drive this decision.

But when exporting nodeA, we see that the property was created as a (hard) Reference. Looking at the code of
org.apache.jackrabbit.commons.AbstractNode#setProperty(String name, Node value), it looks like
it's not trying at all to make any sort of informed decision, and just delegates to
javax.jcr.ValueFactory#createValue(Node value) which is explicitly spec'd to create (hard)
Reference properties.

Is this supposed to be this way ? Is this an implementation bug, a documentation bug, or just something that
I'm overseeing (which is far from unlikely) ?

Thanks for any hint !

(Continue reading)

hsp | 14 Jun 2013 14:34
Picon
Favicon

SQL2 with an ordered result

Hi;
I am trying to solve an use case with just one sql2 expression, but I do not
getting it.
The results must be ordered by node type and alphabetically, like this:

/A [nt:folder]
/B [nt:folder]
/C [nt:folder]
/D [nt:folder]
/A [nt:file]
/B [nt:file]
/C [nt:file]
/D [nt:file]

Is it possible with sql2?

Regards!
Helio.

--
View this message in context: http://jackrabbit.510166.n4.nabble.com/SQL2-with-an-ordered-result-tp4658878.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

Thomas Auinger | 14 Jun 2013 09:25
Picon
Gravatar

overwriting cached entry

Hi

My log contains quite a few of these warnings:

WARN  [  o.a.j.c.s.ItemStateReferenceCache] - overwriting cached entry 5534bf5a-ab4c-40a0-b0f0-10d1fedba315/{}timeMillis

Should I be concerned?

Cheers
Tom
Saravanan Paramasivan | 12 Jun 2013 18:24
Picon

same parent node update in different thread


We are trying to add nodes under the same parent node in different thread.
We got the below warning.

WARN  org.apache.jackrabbit.core.session.SessionState   : Attempt to perform
node.addNode(abc/XXX/XXXX, mgnl:content, null) while another thread is
concurrently writing to session-admin-187. Blocking until the other thread
is finished using this session. Please review your code to avoid concurrent
use of a session. 

is there anything i need to watch out for this warning?

--
View this message in context: http://jackrabbit.510166.n4.nabble.com/same-parent-node-update-in-different-thread-tp4658864.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

Gustavo Bahnert | 12 Jun 2013 16:06
Picon

FTP and CIFS

Hi All,

Could any one suggest me some implementation about FTP or CIFS over
jackrabbit? webdav is not enough for my needs...

Any help would be very much appreciated.

Thanks,

-- 
--

-- 
/**
*  <at> author Gustavo Bähnert
**/

Gmane