jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anuj Kumar <anujs...@gmail.com>
Subject Fwd: Sling-7: Repository Exception with JCR-SQL2 - Bug?
Date Tue, 16 Aug 2011 12:15:44 GMT
Hello Everyone,

I am adding Jackrabbit's users mailing list as well because the exception is
related to JCR.
Has anyone seen this issue before?

Also, if someone can clarify why this exception is thrown, I can go ahead
and look it up myself.

Regards,
Anuj

---------- Forwarded message ----------
From: Anuj Kumar <anujsays@gmail.com>
Date: Mon, Aug 15, 2011 at 10:25 AM
Subject: Sling-7: Repository Exception with JCR-SQL2 - Bug?
To: users@sling.apache.org


Hello Everyone,

I am working with Sling7, built from the trunk couple of weeks back. If I
try to run the query- select * from [nt:resource] AS resource where contains
(resource.*, 'index')
 as JCR-SQL2, I am getting the following exception with the default
repository-

15.08.2011 10:18:04.509 *ERROR* [127.0.0.1 [1313383684480] GET
/.explorer.search.html HTTP/1.1]
org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught
SlingException org.mozilla.javascript.WrappedException: Wrapped
javax.jcr.RepositoryException: This query result has already been iterated
through (/libs/sling/servlet/default/explorer/search.esp#82)
 at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1757)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:170)
 at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:243)
at
org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:119)
 at
org.mozilla.javascript.gen.c7._c0(/libs/sling/servlet/default/explorer/search.esp:82)
at
org.mozilla.javascript.gen.c7.call(/libs/sling/servlet/default/explorer/search.esp)
 at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
 at
org.mozilla.javascript.gen.c7.call(/libs/sling/servlet/default/explorer/search.esp)
at
org.mozilla.javascript.gen.c7.exec(/libs/sling/servlet/default/explorer/search.esp)
 at org.mozilla.javascript.Context.evaluateReader(Context.java:1227)
at
org.apache.sling.scripting.javascript.internal.RhinoJavaScriptEngine.eval(RhinoJavaScriptEngine.java:114)
 at
org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:358)
at
org.apache.sling.scripting.core.impl.DefaultSlingScript.eval(DefaultSlingScript.java:170)
 at
org.apache.sling.scripting.core.impl.DefaultSlingScript.service(DefaultSlingScript.java:456)
at
org.apache.sling.engine.impl.request.RequestData.service(RequestData.java:491)
 at
org.apache.sling.engine.impl.SlingRequestProcessorImpl.processComponent(SlingRequestProcessorImpl.java:285)
at
org.apache.sling.engine.impl.filter.RequestSlingFilterChain.render(RequestSlingFilterChain.java:49)
 at
org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:64)
at
org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter.doFilter(RequestProgressTrackerLogFilter.java:59)
 at
org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
at
org.apache.sling.engine.impl.SlingRequestProcessorImpl.processRequest(SlingRequestProcessorImpl.java:171)
 at
org.apache.sling.engine.impl.SlingMainServlet.service(SlingMainServlet.java:188)
at
org.apache.felix.http.base.internal.handler.ServletHandler.doHandle(ServletHandler.java:96)
 at
org.apache.felix.http.base.internal.handler.ServletHandler.handle(ServletHandler.java:79)
at
org.apache.felix.http.base.internal.dispatch.ServletPipeline.handle(ServletPipeline.java:42)
 at
org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:49)
at
org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33)
 at
org.apache.felix.http.base.internal.dispatch.FilterPipeline.dispatch(FilterPipeline.java:48)
at
org.apache.felix.http.base.internal.dispatch.Dispatcher.dispatch(Dispatcher.java:39)
 at
org.apache.felix.http.base.internal.DispatcherServlet.service(DispatcherServlet.java:67)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
 at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)
 at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
 at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
 at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
at
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:926)
 at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
 at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
 at
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
Caused by: javax.jcr.RepositoryException: This query result has already been
iterated through
 at
org.apache.jackrabbit.core.query.lucene.join.SimpleQueryResult.getRows(SimpleQueryResult.java:100)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:616)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
 ... 43 more

Same query works fine as JCR-JQOM. Also, the same query works fine with
Sling-6 as JCR-SQL2.
Has anyone else noticed this problem?

Thanks,
Anuj

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message