Took me 6 searches on a DB with 272 documents to crash. I found a lot of these in the log:

java.lang.RuntimeException: Data Access out of bounds:

- pre value: 272

- #used blocks: 2

- #total locks: 2

- access: 1 (2 > 1]

at org.basex.util.Util.notExpected(Util.java:53)

at org.basex.io.random.TableDiskAccess.cursor(TableDiskAccess.java:501)

at org.basex.io.random.TableDiskAccess.read1(TableDiskAccess.java:187)

at org.basex.data.Data.kind(Data.java:284)

at org.basex.query.value.node.DBNode$4.next(DBNode.java:335)

at org.basex.query.path.IterStep$1.next(IterStep.java:39)

at org.basex.query.path.IterStep$1.next(IterStep.java:31)

at org.basex.query.path.IterPath$1.next(IterPath.java:69)

at org.basex.query.path.IterPath$1.next(IterPath.java:40)

at org.basex.query.iter.Iter.value(Iter.java:64)

at org.basex.query.expr.ParseExpr.value(ParseExpr.java:70)

at org.basex.query.expr.TypeCheck.value(TypeCheck.java:84)

at org.basex.query.expr.TypeCheck.iter(TypeCheck.java:79)

at org.basex.query.MainModule.iter(MainModule.java:103)

at org.basex.query.QueryContext.iter(QueryContext.java:338)

at org.basex.query.QueryContext.execute(QueryContext.java:575)

at org.basex.query.QueryProcessor.execute(QueryProcessor.java:101)

at org.basex.http.webdav.impl.WebDAVLockService.execute(WebDAVLockService.java:159)

at org.basex.http.webdav.impl.WebDAVLockService.lock(WebDAVLockService.java:111)

at org.basex.http.webdav.BXAbstractResource.getCurrentActiveLock(BXAbstractResource.java:284)

at org.basex.http.webdav.BXAbstractResource.access$300(BXAbstractResource.java:29)

at org.basex.http.webdav.BXAbstractResource$8.get(BXAbstractResource.java:192)

at org.basex.http.webdav.BXAbstractResource$8.get(BXAbstractResource.java:189)

at org.basex.http.webdav.BXCode.eval(BXCode.java:37)

at org.basex.http.webdav.BXCode.evalNoEx(BXCode.java:54)

at org.basex.http.webdav.BXAbstractResource.getCurrentLock(BXAbstractResource.java:189)

at com.bradmcevoy.http.webdav.WebDavProtocol$LockDiscoveryPropertyWriter.getValue(WebDavProtocol.java:450)

at com.bradmcevoy.http.webdav.WebDavProtocol$LockDiscoveryPropertyWriter.getValue(WebDavProtocol.java:445)

at com.bradmcevoy.http.webdav.PropertyMap.getProperty(PropertyMap.java:68)

at com.bradmcevoy.http.webdav.WebDavProtocol.getProperty(WebDavProtocol.java:232)

at com.bradmcevoy.http.webdav.PropFindPropertyBuilder.processResource(PropFindPropertyBuilder.java:140)

at com.bradmcevoy.http.webdav.PropFindPropertyBuilder.processResource(PropFindPropertyBuilder.java:190)

at com.bradmcevoy.http.webdav.PropFindPropertyBuilder.appendResponses(PropFindPropertyBuilder.java:107)

at com.bradmcevoy.http.webdav.PropFindPropertyBuilder.buildProperties(PropFindPropertyBuilder.java:86)

at com.bradmcevoy.http.webdav.PropFindHandler.processExistingResource(PropFindHandler.java:132)

at com.bradmcevoy.http.ResourceHandlerHelper.processResource(ResourceHandlerHelper.java:149)

at com.bradmcevoy.http.webdav.PropFindHandler.processResource(PropFindHandler.java:103)

at com.bradmcevoy.http.ResourceHandlerHelper.process(ResourceHandlerHelper.java:91)

at com.bradmcevoy.http.webdav.PropFindHandler.process(PropFindHandler.java:97)

at com.bradmcevoy.http.StandardFilter.process(StandardFilter.java:52)

at com.bradmcevoy.http.FilterChain.process(FilterChain.java:40)

at com.bradmcevoy.http.HttpManager.process(HttpManager.java:228)

at org.basex.http.webdav.WebDAVServlet.run(WebDAVServlet.java:23)

at org.basex.http.BaseXServlet.service(BaseXServlet.java:58)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)

at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)

at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:501)

at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)

at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)

at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)

at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)

at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)

at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)

at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)

at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)

at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)

at org.eclipse.jetty.server.Server.handle(Server.java:370)

at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)

at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:982)

at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1043)

at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865)

at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)

at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)

at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:667)

at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)

at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)

at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)

at java.lang.Thread.run(Thread.java:744)


On Thu, Oct 23, 2014 at 5:53 AM, Christian GrĂ¼n <christian.gruen@gmail.com> wrote:
Hi France,

> The error doesn't always occur, but I'd be surprised if you didn't see it
> after 3 to 5 try.

For testing, I created a database with 500 documents (input appr. 80
MB) and another one with 20,000 documents (1 GB). Unfortunately (or
maybe good for us?), I didn't manage to crash the WebDAV driver, using
the latest snapshot (I didn't try any earlier version); maybe someone
does?

Can you find some additional information on the error in the log files
or on stderr?

Christian



--
France Baril
Architecte documentaire / Documentation architect
france.baril@architextus.com