We have an older copy of 1.4.2 and need to upgrade to the latest stable trunk. Linux RHEL 32 bit. Sun java 1.6

We continue to have problems with the database getting corrupt. But we can 

  1. export without any warnings
  2. delete the appropriate database files
  3. Restart
  4. import from backup
Once we start using http put to replace existing documents we get errors. These are in  tools/wrapper/log/exist.log

Should we upgrade or is there something we can do to improve this issue?
If we upgrade how do we do that? We donít upgrade often and we need advise.

Also we don't have any custom url rewrites. We just have collections with xml and xquery files. Pretty simple.

This goes on for 16 thousand lines
2012-02-29 15:03:33,977 [P1-8] WARN  (SanityCheck.java [showTrace]:93) - Stacktrace:
org.exist.util.sanity.AssertFailure: TRACE: bad link to next page: 24361; file = dom.dbx; address = 5f2a000; page header = 64; data start = 5f2a040; previous: -1; offset = 213; lastTID = 10
at org.exist.util.sanity.SanityCheck.TRACE(SanityCheck.java:72)
at org.exist.storage.dom.NodeIterator.next(NodeIterator.java:120)
at org.exist.storage.serializers.NativeSerializer.serializeToReceiver(NativeSerializer.java:185)
at org.exist.storage.serializers.NativeSerializer.serializeToReceiver(NativeSerializer.java:200)
at org.exist.storage.serializers.NativeSerializer.serializeToReceiver(NativeSerializer.java:200)
at org.exist.storage.serializers.NativeSerializer.serializeToReceiver(NativeSerializer.java:103)
at org.exist.storage.serializers.Serializer.serialize(Serializer.java:483)
at org.exist.storage.serializers.Serializer.serialize(Serializer.java:449)
at org.exist.xmlrpc.RpcConnection.getDocumentData(RpcConnection.java:870)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.xmlrpc.server.ReflectiveXmlRpcHandler.invoke(ReflectiveXmlRpcHandler.java:115)
at org.apache.xmlrpc.server.ReflectiveXmlRpcHandler.execute(ReflectiveXmlRpcHandler.java:106)
at org.apache.xmlrpc.server.XmlRpcServerWorker.execute(XmlRpcServerWorker.java:46)
at org.apache.xmlrpc.server.XmlRpcServer.execute(XmlRpcServer.java:86)
at org.apache.xmlrpc.server.XmlRpcStreamServer.execute(XmlRpcStreamServer.java:200)
at org.apache.xmlrpc.webserver.XmlRpcServletServer.execute(XmlRpcServletServer.java:112)
at org.apache.xmlrpc.webserver.XmlRpcServlet.doPost(XmlRpcServlet.java:196)
at org.exist.xmlrpc.RpcServlet.doPost(RpcServlet.java:57)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:473)
at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:263)
at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:171)
at org.exist.http.urlrewrite.Forward.doRewrite(Forward.java:47)
at org.exist.http.urlrewrite.XQueryURLRewrite.doFilter(XQueryURLRewrite.java:212)
at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
at org.mortbay.http.HttpServer.service(HttpServer.java:909)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:820)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837)
at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
 
2012-02-29 15:03:33,978 [P1-8] WARN  (SanityCheck.java [showTrace]:93) - Stacktrace:
org.exist.util.sanity.AssertFailure: TRACE: bad link to next page: 24361; file = dom.dbx; address = 5f2a000; page header = 64; data start = 5f2a040; previous: -1; offset = 213; lastTID = 10
at org.exist.util.sanity.SanityCheck.TRACE(SanityCheck.java:72)
at org.exist.storage.dom.NodeIterator.next(NodeIterator.java:120)
at org.exist.storage.serializers.NativeSerializer.serializeToReceiver(NativeSerializer.java:117)
at org.exist.storage.serializers.NativeSerializer.serializeToReceiver(NativeSerializer.java:200)
at org.exist.storage.serializers.NativeSerializer.serializeToReceiver(NativeSerializer.java:200)
at org.exist.storage.serializers.NativeSerializer.serializeToReceiver(NativeSerializer.java:200)
at org.exist.storage.serializers.NativeSerializer.serializeToReceiver(NativeSerializer.java:103)
at org.exist.storage.serializers.Serializer.serialize(Serializer.java:483)
at org.exist.storage.serializers.Serializer.serialize(Serializer.java:449)
at org.exist.xmlrpc.RpcConnection.getDocumentData(RpcConnection.java:870)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.xmlrpc.server.ReflectiveXmlRpcHandler.invoke(ReflectiveXmlRpcHandler.java:115)
at org.apache.xmlrpc.server.ReflectiveXmlRpcHandler.execute(ReflectiveXmlRpcHandler.java:106)
at org.apache.xmlrpc.server.XmlRpcServerWorker.execute(XmlRpcServerWorker.java:46)
at org.apache.xmlrpc.server.XmlRpcServer.execute(XmlRpcServer.java:86)
at org.apache.xmlrpc.server.XmlRpcStreamServer.execute(XmlRpcStreamServer.java:200)
at org.apache.xmlrpc.webserver.XmlRpcServletServer.execute(XmlRpcServletServer.java:112)
at org.apache.xmlrpc.webserver.XmlRpcServlet.doPost(XmlRpcServlet.java:196)
at org.exist.xmlrpc.RpcServlet.doPost(RpcServlet.java:57)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:473)
at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:263)
at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:171)
at org.exist.http.urlrewrite.Forward.doRewrite(Forward.java:47)
at org.exist.http.urlrewrite.XQueryURLRewrite.doFilter(XQueryURLRewrite.java:212)
at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
at org.mortbay.http.HttpServer.service(HttpServer.java:909)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:820)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837)
at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)


Thanks for your help.