Database corruption

Wednesday, 2 September 2015 · 4 messages · last reply 17 Sep 2015
FB
France Baril2 Sep 2015 00:59 #
Hi, Once in a while, when saving a file that is not well formed from Oxygen, instead of just getting a raw file in the server, we end up with a corrupted database. It's not a constant occurrence meaning that it doesn't happen all the time, but we were able to get what we think is a relevant error message. We think saving 310.mot.com:8984/webdav/en-us/topics/legal-privacy-modular.xml while it wasn't well formed is what caused the issue. local:8984/webdav/en-us/topics/legal-privacy-modular.xml [qtp1977419222-62] INFO com.bradmcevoy.http.HttpManager - PUT :: http://~ local:8984/webdav/en-us/topics/legal-privacy-modular.xml - http://~ local:8984/webdav/en-us/topics/legal-privacy-modular.xml [qtp1977419222-64] INFO com.bradmcevoy.http.HttpManager - GET :: http://~ local:8984/webdav/AppResources/dtds/catalog.xml - http:// ~local:8984/webdav/AppResources/dtds/catalog.xml [qtp1977419222-65] INFO com.bradmcevoy.http.HttpManager - GET :: http://~ local:8984/webdav/AppResources/dtds/catalog.xml - http:// ~local:8984/webdav/AppResources/dtds/catalog.xml java.lang.NullPointerException java.lang.NullPointerException [qtp1977419222-62] WARN com.bradmcevoy.http.http11.PutHandler - parent exists bu t is not a collection resource: /webdav/en-us/topics [qtp1977419222-61] WARN com.bradmcevoy.http.http11.PutHandler - parent exists bu t is not a collection resource: /webdav/en-us/topics java.lang.NullPointerException java.lang.NullPointerException java.lang.NullPointerException [qtp1977419222-62] WARN com.bradmcevoy.http.http11.PutHandler - Your resource fa ctory returned a resource with a different name to that requested!!! Requested: webdav returned: - resource factory: class org.basex.http.webdav.BXResourceFact ory java.lang.NullPointerException [qtp1977419222-61] WARN com.bradmcevoy.http.http11.PutHandler - Your resource fa ctory returned a resource with a different name to that requested!!! Requested: webdav returned: - resource factory: class org.basex.http.webdav.BXResourceFact ory java.lang.NullPointerException java.lang.NullPointerException [qtp1977419222-61] ERROR com.bradmcevoy.http.StandardFilter - process [qtp1977419222-62] ERROR com.bradmcevoy.http.StandardFilter - process java.lang.NullPointerException at java.text.SimpleDateFormat.parse(Unknown Source) at java.text.DateFormat.parse(Unknown Source) at org.basex.util.DateTime.parse(DateTime.java:66) at org.basex.http.webdav.impl.WebDAVService.timestamp(WebDAVService.java :120) at org.basex.http.webdav.impl.WebDAVService.createDb(WebDAVService.java: 269) at org.basex.http.webdav.BXRoot$3.get(BXRoot.java:77) at org.basex.http.webdav.BXRoot$3.get(BXRoot.java:1) at org.basex.http.webdav.BXCode.eval(BXCode.java:37) at org.basex.http.webdav.BXRoot.createCollection(BXRoot.java:79) at org.basex.http.webdav.BXRoot.createCollection(BXRoot.java:1) at com.bradmcevoy.http.http11.PutHandler.findOrCreateFolders(PutHandler. java:261) at com.bradmcevoy.http.http11.PutHandler.findOrCreateFolders(PutHandler. java:249) at com.bradmcevoy.http.http11.PutHandler.process(PutHandler.java:175) 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:43) at org.basex.http.BaseXServlet.service(BaseXServlet.java:64) 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 :503) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.j ava:137) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.jav a:557) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandl er.java:231) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandl er.java:1086) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java: 429) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandle r.java:193) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandle r.java:1020) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.j ava: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(Abstrac tHttpConnection.java:494) at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpC onnection.java:982) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.conten t(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(AsyncHttpConnecti on.java:82) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEn dPoint.java:696) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEnd Point.java:53) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPoo l.java:608) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool .java:543) at java.lang.Thread.run(Unknown Source) java.lang.NullPointerException at java.text.SimpleDateFormat.parse(Unknown Source) at java.text.DateFormat.parse(Unknown Source) at org.basex.util.DateTime.parse(DateTime.java:66) at org.basex.http.webdav.impl.WebDAVService.timestamp(WebDAVService.java :120) at org.basex.http.webdav.impl.WebDAVService.createDb(WebDAVService.java: 269) at org.basex.http.webdav.BXRoot$3.get(BXRoot.java:77) at org.basex.http.webdav.BXRoot$3.get(BXRoot.java:1) at org.basex.http.webdav.BXCode.eval(BXCode.java:37) at org.basex.http.webdav.BXRoot.createCollection(BXRoot.java:79) at org.basex.http.webdav.BXRoot.createCollection(BXRoot.java:1) at com.bradmcevoy.http.http11.PutHandler.findOrCreateFolders(PutHandler. java:261) at com.bradmcevoy.http.http11.PutHandler.findOrCreateFolders(PutHandler. java:249) at com.bradmcevoy.http.http11.PutHandler.process(PutHandler.java:175) 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:43) at org.basex.http.BaseXServlet.service(BaseXServlet.java:64) 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 :503) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.j ava:137) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.jav a:557) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandl er.java:231) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandl er.java:1086) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java: 429) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandle r.java:193) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandle r.java:1020) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.j ava: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(Abstrac tHttpConnection.java:494) at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpC onnection.java:982) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.conten t(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(AsyncHttpConnecti on.java:82) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEn dPoint.java:696) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEnd Point.java:53) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPoo l.java:608) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool .java:543) at java.lang.Thread.run(Unknown Source) [qtp1977419222-49] INFO com.bradmcevoy.http.HttpManager - GET :: http://~ local:8984/webdav/AppResources/dtds/catalog.xml - http:// ~local:8984/webdav/AppResources/dtds/catalog.xml [qtp1977419222-64] INFO com.bradmcevoy.http.HttpManager - GET :: http://~ local:8984/webdav/AppResources/dtds/catalog.xml - http:// ~local:8984/webdav/AppResources/dtds/catalog.xml [qtp1977419222-55] INFO com.bradmcevoy.http.HttpManager - PROPFIND :: http://~local:8984/webdav/html-review/ - http://~local:8984/webd av/html-review/
-- France Baril Architecte documentaire / Documentation architect france.baril at architextus.com
CG
Christian Grün14 Sep 2015 12:31 #
Hi France, The NullPointerException in the stack trace indicates that the problem is related to a buggy date conversion. I remember that we recently came across a similar issue. Does the problem persist with the latest snapshot [1]? Best, Christian [1] http://files.basex.org/releases/latest/
Quoted text · France Baril · 256 lines
On Tue, Sep 1, 2015 at 10:59 PM, France Baril <france.baril at architextus.com> wrote: > Hi, > > Once in a while, when saving a file that is not well formed from Oxygen, > instead of just getting a raw file in the server, we end up with a corrupted > database. It's not a constant occurrence meaning that it doesn't happen all > the time, but we were able to get what we think is a relevant error message. > > We think saving > 310.mot.com:8984/webdav/en-us/topics/legal-privacy-modular.xml while it > wasn't well formed is what caused the issue. > > local:8984/webdav/en-us/topics/legal-privacy-modular.xml > [qtp1977419222-62] INFO com.bradmcevoy.http.HttpManager - PUT :: http://~ > local:8984/webdav/en-us/topics/legal-privacy-modular.xml - http://~ > local:8984/webdav/en-us/topics/legal-privacy-modular.xml > [qtp1977419222-64] INFO com.bradmcevoy.http.HttpManager - GET :: http://~ > local:8984/webdav/AppResources/dtds/catalog.xml - > http://~local:8984/webdav/AppResources/dtds/catalog.xml > [qtp1977419222-65] INFO com.bradmcevoy.http.HttpManager - GET :: http://~ > local:8984/webdav/AppResources/dtds/catalog.xml - > http://~local:8984/webdav/AppResources/dtds/catalog.xml > java.lang.NullPointerException > java.lang.NullPointerException > [qtp1977419222-62] WARN com.bradmcevoy.http.http11.PutHandler - parent > exists bu > t is not a collection resource: /webdav/en-us/topics > [qtp1977419222-61] WARN com.bradmcevoy.http.http11.PutHandler - parent > exists bu > t is not a collection resource: /webdav/en-us/topics > java.lang.NullPointerException > java.lang.NullPointerException > java.lang.NullPointerException > [qtp1977419222-62] WARN com.bradmcevoy.http.http11.PutHandler - Your > resource fa > ctory returned a resource with a different name to that requested!!! > Requested: > webdav returned: - resource factory: class > org.basex.http.webdav.BXResourceFact > ory > java.lang.NullPointerException > [qtp1977419222-61] WARN com.bradmcevoy.http.http11.PutHandler - Your > resource fa > ctory returned a resource with a different name to that requested!!! > Requested: > webdav returned: - resource factory: class > org.basex.http.webdav.BXResourceFact > ory > java.lang.NullPointerException > java.lang.NullPointerException > [qtp1977419222-61] ERROR com.bradmcevoy.http.StandardFilter - process > [qtp1977419222-62] ERROR com.bradmcevoy.http.StandardFilter - process > java.lang.NullPointerException > at java.text.SimpleDateFormat.parse(Unknown Source) > at java.text.DateFormat.parse(Unknown Source) > at org.basex.util.DateTime.parse(DateTime.java:66) > at > org.basex.http.webdav.impl.WebDAVService.timestamp(WebDAVService.java > :120) > at > org.basex.http.webdav.impl.WebDAVService.createDb(WebDAVService.java: > 269) > at org.basex.http.webdav.BXRoot$3.get(BXRoot.java:77) > at org.basex.http.webdav.BXRoot$3.get(BXRoot.java:1) > at org.basex.http.webdav.BXCode.eval(BXCode.java:37) > at org.basex.http.webdav.BXRoot.createCollection(BXRoot.java:79) > at org.basex.http.webdav.BXRoot.createCollection(BXRoot.java:1) > at > com.bradmcevoy.http.http11.PutHandler.findOrCreateFolders(PutHandler. > java:261) > at > com.bradmcevoy.http.http11.PutHandler.findOrCreateFolders(PutHandler. > java:249) > at > com.bradmcevoy.http.http11.PutHandler.process(PutHandler.java:175) > 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:43) > at org.basex.http.BaseXServlet.service(BaseXServlet.java:64) > 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 > :503) > at > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.j > ava:137) > at > org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.jav > a:557) > at > org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandl > er.java:231) > at > org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandl > er.java:1086) > at > org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java: > 429) > at > org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandle > r.java:193) > at > org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandle > r.java:1020) > at > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.j > ava: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(Abstrac > tHttpConnection.java:494) > at > org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpC > onnection.java:982) > at > org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.conten > t(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(AsyncHttpConnecti > on.java:82) > at > org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEn > dPoint.java:696) > at > org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEnd > Point.java:53) > at > org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPoo > l.java:608) > at > org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool > .java:543) > at java.lang.Thread.run(Unknown Source) > java.lang.NullPointerException > at java.text.SimpleDateFormat.parse(Unknown Source) > at java.text.DateFormat.parse(Unknown Source) > at org.basex.util.DateTime.parse(DateTime.java:66) > at > org.basex.http.webdav.impl.WebDAVService.timestamp(WebDAVService.java > :120) > at > org.basex.http.webdav.impl.WebDAVService.createDb(WebDAVService.java: > 269) > at org.basex.http.webdav.BXRoot$3.get(BXRoot.java:77) > at org.basex.http.webdav.BXRoot$3.get(BXRoot.java:1) > at org.basex.http.webdav.BXCode.eval(BXCode.java:37) > at org.basex.http.webdav.BXRoot.createCollection(BXRoot.java:79) > at org.basex.http.webdav.BXRoot.createCollection(BXRoot.java:1) > at > com.bradmcevoy.http.http11.PutHandler.findOrCreateFolders(PutHandler. > java:261) > at > com.bradmcevoy.http.http11.PutHandler.findOrCreateFolders(PutHandler. > java:249) > at > com.bradmcevoy.http.http11.PutHandler.process(PutHandler.java:175) > 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:43) > at org.basex.http.BaseXServlet.service(BaseXServlet.java:64) > 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 > :503) > at > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.j > ava:137) > at > org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.jav > a:557) > at > org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandl > er.java:231) > at > org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandl > er.java:1086) > at > org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java: > 429) > at > org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandle > r.java:193) > at > org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandle > r.java:1020) > at > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.j > ava: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(Abstrac > tHttpConnection.java:494) > at > org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpC > onnection.java:982) > at > org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.conten > t(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(AsyncHttpConnecti > on.java:82) > at > org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEn > dPoint.java:696) > at > org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEnd > Point.java:53) > at > org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPoo > l.java:608) > at > org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool > .java:543) > at java.lang.Thread.run(Unknown Source) > [qtp1977419222-49] INFO com.bradmcevoy.http.HttpManager - GET :: http://~ > local:8984/webdav/AppResources/dtds/catalog.xml - > http://~local:8984/webdav/AppResources/dtds/catalog.xml > [qtp1977419222-64] INFO com.bradmcevoy.http.HttpManager - GET :: http://~ > local:8984/webdav/AppResources/dtds/catalog.xml - > http://~local:8984/webdav/AppResources/dtds/catalog.xml > [qtp1977419222-55] INFO com.bradmcevoy.http.HttpManager - PROPFIND :: > http://~local:8984/webdav/html-review/ - http://~local:8984/webd > av/html-review/ > > > > > -- > France Baril > Architecte documentaire / Documentation architect > france.baril at architextus.com
CG
Christian Grün15 Sep 2015 19:00 #
Hi France, As you may have seen in my other reply to the mailing list, I have refactored our WebDAV implementation. Could you please give it a try [1]? Thanks, Christian [1] http://files.basex.org/releases/latest/
Quoted text · Christian Grün · 271 lines
On Mon, Sep 14, 2015 at 12:31 PM, Christian Grün <christian.gruen at gmail.com> wrote: > Hi France, > > The NullPointerException in the stack trace indicates that the problem > is related to a buggy date conversion. I remember that we recently > came across a similar issue. Does the problem persist with the latest > snapshot [1]? > > Best, > Christian > > [1] http://files.basex.org/releases/latest/ > > > On Tue, Sep 1, 2015 at 10:59 PM, France Baril > <france.baril at architextus.com> wrote: >> Hi, >> >> Once in a while, when saving a file that is not well formed from Oxygen, >> instead of just getting a raw file in the server, we end up with a corrupted >> database. It's not a constant occurrence meaning that it doesn't happen all >> the time, but we were able to get what we think is a relevant error message. >> >> We think saving >> 310.mot.com:8984/webdav/en-us/topics/legal-privacy-modular.xml while it >> wasn't well formed is what caused the issue. >> >> local:8984/webdav/en-us/topics/legal-privacy-modular.xml >> [qtp1977419222-62] INFO com.bradmcevoy.http.HttpManager - PUT :: http://~ >> local:8984/webdav/en-us/topics/legal-privacy-modular.xml - http://~ >> local:8984/webdav/en-us/topics/legal-privacy-modular.xml >> [qtp1977419222-64] INFO com.bradmcevoy.http.HttpManager - GET :: http://~ >> local:8984/webdav/AppResources/dtds/catalog.xml - >> http://~local:8984/webdav/AppResources/dtds/catalog.xml >> [qtp1977419222-65] INFO com.bradmcevoy.http.HttpManager - GET :: http://~ >> local:8984/webdav/AppResources/dtds/catalog.xml - >> http://~local:8984/webdav/AppResources/dtds/catalog.xml >> java.lang.NullPointerException >> java.lang.NullPointerException >> [qtp1977419222-62] WARN com.bradmcevoy.http.http11.PutHandler - parent >> exists bu >> t is not a collection resource: /webdav/en-us/topics >> [qtp1977419222-61] WARN com.bradmcevoy.http.http11.PutHandler - parent >> exists bu >> t is not a collection resource: /webdav/en-us/topics >> java.lang.NullPointerException >> java.lang.NullPointerException >> java.lang.NullPointerException >> [qtp1977419222-62] WARN com.bradmcevoy.http.http11.PutHandler - Your >> resource fa >> ctory returned a resource with a different name to that requested!!! >> Requested: >> webdav returned: - resource factory: class >> org.basex.http.webdav.BXResourceFact >> ory >> java.lang.NullPointerException >> [qtp1977419222-61] WARN com.bradmcevoy.http.http11.PutHandler - Your >> resource fa >> ctory returned a resource with a different name to that requested!!! >> Requested: >> webdav returned: - resource factory: class >> org.basex.http.webdav.BXResourceFact >> ory >> java.lang.NullPointerException >> java.lang.NullPointerException >> [qtp1977419222-61] ERROR com.bradmcevoy.http.StandardFilter - process >> [qtp1977419222-62] ERROR com.bradmcevoy.http.StandardFilter - process >> java.lang.NullPointerException >> at java.text.SimpleDateFormat.parse(Unknown Source) >> at java.text.DateFormat.parse(Unknown Source) >> at org.basex.util.DateTime.parse(DateTime.java:66) >> at >> org.basex.http.webdav.impl.WebDAVService.timestamp(WebDAVService.java >> :120) >> at >> org.basex.http.webdav.impl.WebDAVService.createDb(WebDAVService.java: >> 269) >> at org.basex.http.webdav.BXRoot$3.get(BXRoot.java:77) >> at org.basex.http.webdav.BXRoot$3.get(BXRoot.java:1) >> at org.basex.http.webdav.BXCode.eval(BXCode.java:37) >> at org.basex.http.webdav.BXRoot.createCollection(BXRoot.java:79) >> at org.basex.http.webdav.BXRoot.createCollection(BXRoot.java:1) >> at >> com.bradmcevoy.http.http11.PutHandler.findOrCreateFolders(PutHandler. >> java:261) >> at >> com.bradmcevoy.http.http11.PutHandler.findOrCreateFolders(PutHandler. >> java:249) >> at >> com.bradmcevoy.http.http11.PutHandler.process(PutHandler.java:175) >> 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:43) >> at org.basex.http.BaseXServlet.service(BaseXServlet.java:64) >> 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 >> :503) >> at >> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.j >> ava:137) >> at >> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.jav >> a:557) >> at >> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandl >> er.java:231) >> at >> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandl >> er.java:1086) >> at >> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java: >> 429) >> at >> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandle >> r.java:193) >> at >> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandle >> r.java:1020) >> at >> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.j >> ava: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(Abstrac >> tHttpConnection.java:494) >> at >> org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpC >> onnection.java:982) >> at >> org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.conten >> t(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(AsyncHttpConnecti >> on.java:82) >> at >> org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEn >> dPoint.java:696) >> at >> org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEnd >> Point.java:53) >> at >> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPoo >> l.java:608) >> at >> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool >> .java:543) >> at java.lang.Thread.run(Unknown Source) >> java.lang.NullPointerException >> at java.text.SimpleDateFormat.parse(Unknown Source) >> at java.text.DateFormat.parse(Unknown Source) >> at org.basex.util.DateTime.parse(DateTime.java:66) >> at >> org.basex.http.webdav.impl.WebDAVService.timestamp(WebDAVService.java >> :120) >> at >> org.basex.http.webdav.impl.WebDAVService.createDb(WebDAVService.java: >> 269) >> at org.basex.http.webdav.BXRoot$3.get(BXRoot.java:77) >> at org.basex.http.webdav.BXRoot$3.get(BXRoot.java:1) >> at org.basex.http.webdav.BXCode.eval(BXCode.java:37) >> at org.basex.http.webdav.BXRoot.createCollection(BXRoot.java:79) >> at org.basex.http.webdav.BXRoot.createCollection(BXRoot.java:1) >> at >> com.bradmcevoy.http.http11.PutHandler.findOrCreateFolders(PutHandler. >> java:261) >> at >> com.bradmcevoy.http.http11.PutHandler.findOrCreateFolders(PutHandler. >> java:249) >> at >> com.bradmcevoy.http.http11.PutHandler.process(PutHandler.java:175) >> 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:43) >> at org.basex.http.BaseXServlet.service(BaseXServlet.java:64) >> 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 >> :503) >> at >> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.j >> ava:137) >> at >> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.jav >> a:557) >> at >> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandl >> er.java:231) >> at >> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandl >> er.java:1086) >> at >> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java: >> 429) >> at >> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandle >> r.java:193) >> at >> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandle >> r.java:1020) >> at >> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.j >> ava: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(Abstrac >> tHttpConnection.java:494) >> at >> org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpC >> onnection.java:982) >> at >> org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.conten >> t(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(AsyncHttpConnecti >> on.java:82) >> at >> org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEn >> dPoint.java:696) >> at >> org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEnd >> Point.java:53) >> at >> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPoo >> l.java:608) >> at >> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool >> .java:543) >> at java.lang.Thread.run(Unknown Source) >> [qtp1977419222-49] INFO com.bradmcevoy.http.HttpManager - GET :: http://~ >> local:8984/webdav/AppResources/dtds/catalog.xml - >> http://~local:8984/webdav/AppResources/dtds/catalog.xml >> [qtp1977419222-64] INFO com.bradmcevoy.http.HttpManager - GET :: http://~ >> local:8984/webdav/AppResources/dtds/catalog.xml - >> http://~local:8984/webdav/AppResources/dtds/catalog.xml >> [qtp1977419222-55] INFO com.bradmcevoy.http.HttpManager - PROPFIND :: >> http://~local:8984/webdav/html-review/ - http://~local:8984/webd >> av/html-review/ >> >> >> >> >> -- >> France Baril >> Architecte documentaire / Documentation architect >> france.baril at architextus.com
FB
France Baril17 Sep 2015 00:01 #
We upgraded a few days ago, so far so good. I'll ping you if it comes back. Thanks!
Quoted text · Christian Grün · 299 lines
On Tue, Sep 15, 2015 at 10:00 AM, Christian Grün <christian.gruen at gmail.com> wrote: > Hi France, > > As you may have seen in my other reply to the mailing list, I have > refactored our WebDAV implementation. Could you please give it a try > [1]? > > Thanks, > Christian > > [1] http://files.basex.org/releases/latest/ > > > > On Mon, Sep 14, 2015 at 12:31 PM, Christian Grün > <christian.gruen at gmail.com> wrote: > > Hi France, > > > > The NullPointerException in the stack trace indicates that the problem > > is related to a buggy date conversion. I remember that we recently > > came across a similar issue. Does the problem persist with the latest > > snapshot [1]? > > > > Best, > > Christian > > > > [1] http://files.basex.org/releases/latest/ > > > > > > On Tue, Sep 1, 2015 at 10:59 PM, France Baril > > <france.baril at architextus.com> wrote: > >> Hi, > >> > >> Once in a while, when saving a file that is not well formed from Oxygen, > >> instead of just getting a raw file in the server, we end up with a > corrupted > >> database. It's not a constant occurrence meaning that it doesn't happen > all > >> the time, but we were able to get what we think is a relevant error > message. > >> > >> We think saving > >> 310.mot.com:8984/webdav/en-us/topics/legal-privacy-modular.xml while it > >> wasn't well formed is what caused the issue. > >> > >> local:8984/webdav/en-us/topics/legal-privacy-modular.xml > >> [qtp1977419222-62] INFO com.bradmcevoy.http.HttpManager - PUT :: http:// > ~ > >> local:8984/webdav/en-us/topics/legal-privacy-modular.xml - http://~ > >> local:8984/webdav/en-us/topics/legal-privacy-modular.xml > >> [qtp1977419222-64] INFO com.bradmcevoy.http.HttpManager - GET :: http:// > ~ > >> local:8984/webdav/AppResources/dtds/catalog.xml - > >> http://~local:8984/webdav/AppResources/dtds/catalog.xml > >> [qtp1977419222-65] INFO com.bradmcevoy.http.HttpManager - GET :: http:// > ~ > >> local:8984/webdav/AppResources/dtds/catalog.xml - > >> http://~local:8984/webdav/AppResources/dtds/catalog.xml > >> java.lang.NullPointerException > >> java.lang.NullPointerException > >> [qtp1977419222-62] WARN com.bradmcevoy.http.http11.PutHandler - parent > >> exists bu > >> t is not a collection resource: /webdav/en-us/topics > >> [qtp1977419222-61] WARN com.bradmcevoy.http.http11.PutHandler - parent > >> exists bu > >> t is not a collection resource: /webdav/en-us/topics > >> java.lang.NullPointerException > >> java.lang.NullPointerException > >> java.lang.NullPointerException > >> [qtp1977419222-62] WARN com.bradmcevoy.http.http11.PutHandler - Your > >> resource fa > >> ctory returned a resource with a different name to that requested!!! > >> Requested: > >> webdav returned: - resource factory: class > >> org.basex.http.webdav.BXResourceFact > >> ory > >> java.lang.NullPointerException > >> [qtp1977419222-61] WARN com.bradmcevoy.http.http11.PutHandler - Your > >> resource fa > >> ctory returned a resource with a different name to that requested!!! > >> Requested: > >> webdav returned: - resource factory: class > >> org.basex.http.webdav.BXResourceFact > >> ory > >> java.lang.NullPointerException > >> java.lang.NullPointerException > >> [qtp1977419222-61] ERROR com.bradmcevoy.http.StandardFilter - process > >> [qtp1977419222-62] ERROR com.bradmcevoy.http.StandardFilter - process > >> java.lang.NullPointerException > >> at java.text.SimpleDateFormat.parse(Unknown Source) > >> at java.text.DateFormat.parse(Unknown Source) > >> at org.basex.util.DateTime.parse(DateTime.java:66) > >> at > >> org.basex.http.webdav.impl.WebDAVService.timestamp(WebDAVService.java > >> :120) > >> at > >> org.basex.http.webdav.impl.WebDAVService.createDb(WebDAVService.java: > >> 269) > >> at org.basex.http.webdav.BXRoot$3.get(BXRoot.java:77) > >> at org.basex.http.webdav.BXRoot$3.get(BXRoot.java:1) > >> at org.basex.http.webdav.BXCode.eval(BXCode.java:37) > >> at org.basex.http.webdav.BXRoot.createCollection(BXRoot.java:79) > >> at org.basex.http.webdav.BXRoot.createCollection(BXRoot.java:1) > >> at > >> com.bradmcevoy.http.http11.PutHandler.findOrCreateFolders(PutHandler. > >> java:261) > >> at > >> com.bradmcevoy.http.http11.PutHandler.findOrCreateFolders(PutHandler. > >> java:249) > >> at > >> com.bradmcevoy.http.http11.PutHandler.process(PutHandler.java:175) > >> 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:43) > >> at org.basex.http.BaseXServlet.service(BaseXServlet.java:64) > >> 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 > >> :503) > >> at > >> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.j > >> ava:137) > >> at > >> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.jav > >> a:557) > >> at > >> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandl > >> er.java:231) > >> at > >> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandl > >> er.java:1086) > >> at > >> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java: > >> 429) > >> at > >> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandle > >> r.java:193) > >> at > >> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandle > >> r.java:1020) > >> at > >> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.j > >> ava: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(Abstrac > >> tHttpConnection.java:494) > >> at > >> org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpC > >> onnection.java:982) > >> at > >> org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.conten > >> t(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(AsyncHttpConnecti > >> on.java:82) > >> at > >> org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEn > >> dPoint.java:696) > >> at > >> org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEnd > >> Point.java:53) > >> at > >> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPoo > >> l.java:608) > >> at > >> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool > >> .java:543) > >> at java.lang.Thread.run(Unknown Source) > >> java.lang.NullPointerException > >> at java.text.SimpleDateFormat.parse(Unknown Source) > >> at java.text.DateFormat.parse(Unknown Source) > >> at org.basex.util.DateTime.parse(DateTime.java:66) > >> at > >> org.basex.http.webdav.impl.WebDAVService.timestamp(WebDAVService.java > >> :120) > >> at > >> org.basex.http.webdav.impl.WebDAVService.createDb(WebDAVService.java: > >> 269) > >> at org.basex.http.webdav.BXRoot$3.get(BXRoot.java:77) > >> at org.basex.http.webdav.BXRoot$3.get(BXRoot.java:1) > >> at org.basex.http.webdav.BXCode.eval(BXCode.java:37) > >> at org.basex.http.webdav.BXRoot.createCollection(BXRoot.java:79) > >> at org.basex.http.webdav.BXRoot.createCollection(BXRoot.java:1) > >> at > >> com.bradmcevoy.http.http11.PutHandler.findOrCreateFolders(PutHandler. > >> java:261) > >> at > >> com.bradmcevoy.http.http11.PutHandler.findOrCreateFolders(PutHandler. > >> java:249) > >> at > >> com.bradmcevoy.http.http11.PutHandler.process(PutHandler.java:175) > >> 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:43) > >> at org.basex.http.BaseXServlet.service(BaseXServlet.java:64) > >> 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 > >> :503) > >> at > >> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.j > >> ava:137) > >> at > >> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.jav > >> a:557) > >> at > >> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandl > >> er.java:231) > >> at > >> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandl > >> er.java:1086) > >> at > >> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java: > >> 429) > >> at > >> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandle > >> r.java:193) > >> at > >> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandle > >> r.java:1020) > >> at > >> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.j > >> ava: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(Abstrac > >> tHttpConnection.java:494) > >> at > >> org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpC > >> onnection.java:982) > >> at > >> org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.conten > >> t(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(AsyncHttpConnecti > >> on.java:82) > >> at > >> org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEn > >> dPoint.java:696) > >> at > >> org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEnd > >> Point.java:53) > >> at > >> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPoo > >> l.java:608) > >> at > >> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool > >> .java:543) > >> at java.lang.Thread.run(Unknown Source) > >> [qtp1977419222-49] INFO com.bradmcevoy.http.HttpManager - GET :: http:// > ~ > >> local:8984/webdav/AppResources/dtds/catalog.xml - > >> http://~local:8984/webdav/AppResources/dtds/catalog.xml > >> [qtp1977419222-64] INFO com.bradmcevoy.http.HttpManager - GET :: http:// > ~ > >> local:8984/webdav/AppResources/dtds/catalog.xml - > >> http://~local:8984/webdav/AppResources/dtds/catalog.xml > >> [qtp1977419222-55] INFO com.bradmcevoy.http.HttpManager - PROPFIND :: > >> http://~local:8984/webdav/html-review/ - http://~local:8984/webd > >> av/html-review/ > >> > >> > >> > >> > >> -- > >> France Baril > >> Architecte documentaire / Documentation architect > >> france.baril at architextus.com >
-- France Baril Architecte documentaire / Documentation architect france.baril at architextus.com

⚡Generated with XQuery