Weirdosity.

This might be related to a known issue in Node.getNodes(). Can you check with the current SVN trunk of Priha as well, or 0.4.1 (e.g. check out last Saturday's trunk).

It's also possible that there's a bug in Priha queries (which isn't tested as well as I would like) or that I've misunderstood XPath...

/Janne

On Oct 12, 2009, at 06:30 , Andrew Jaquith wrote:

Stack trace:

java.lang.NullPointerException
at org .apache.wiki.content.ContentManager.getAllPages(ContentManager.java: 590)
at org.apache.wiki.TestEngine.emptyRepository(TestEngine.java:218)
at org .apache .wiki .plugin .RecentChangesPluginTest.tearDown(RecentChangesPluginTest.java:59)

The NPE is caused by a null element present in the list of Nodes
returned by QueryResult qr = q.execute();

The actual query that generates the results is: /jcr:root/pages/*/*

(I'm patched ContentManager locally: in the current version in HEAD,
the query for getAllPages(null) is /jcr:root/pages/*, which seems
wrong and seems to be the root cause of several unit test failures...)

Andrew

On Sun, Oct 11, 2009 at 5:27 PM, Janne Jalkanen
<[email protected]> wrote:

On Oct 11, 2009, at 21:14 , Andrew Jaquith wrote:

Hey Janne,

I''ve been pounding out some bugs. We have some failing tests where the list of nodes returned by QueryResult.execute() has some null elements. Not sure why, and I can't reliably reproduce the bug. But it does seem to be
happening. Any insights?

Can you tell me the query you're using?

/janne


Reply via email to