Hi all,

from a couple of days I'm facing with a changed behavior in eXist.
I'm running the 1.4.0 rev 10440 build 20091111 which comes with betterform limegreen.

First of all, I didn't change any config in exist.

Suddenly, some queries running fine for more than a year, start to give back the same strange error (see below).

To correct the error, I must change some .xq statements, like the followings:

before: let $el := $ont//rdf:Description[mm:hasLegacyId eq $id]
after:   let $el := $ont//rdf:Description[mm:hasLegacyId/text() eq $id]

before:      let $asSubject := $ont/*/rdf:Description[mm:hasSubject/@rdf:resource eq $uuid]
after:         let $asSubject := $ont/*/rdf:Description[mm:hasSubject[@rdf:resource eq $uuid]]

Please, can anyone explain this fact?

Thank you.

Paolo

2011-05-23 19:34:07,049 [P1-9] DEBUG (RpcConnection.java [handleException]:107) -  
java.lang.NullPointerException
    at org.exist.xquery.GeneralComparison.checkForQNameIndex(GeneralComparison.java:938)
    at org.exist.xquery.GeneralComparison.quickNodeSetCompare(GeneralComparison.java:581)
    at org.exist.xquery.GeneralComparison.eval(GeneralComparison.java:374)
    at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:61)
    at org.exist.xquery.PathExpr.eval(PathExpr.java:241)
    at org.exist.xquery.Predicate.selectByNodeSet(Predicate.java:331)
    at org.exist.xquery.Predicate.evalPredicate(Predicate.java:205)
    at org.exist.xquery.LocationStep.processPredicate(LocationStep.java:236)
    at org.exist.xquery.LocationStep.applyPredicate(LocationStep.java:225)
    at org.exist.xquery.LocationStep.eval(LocationStep.java:390)
    at org.exist.xquery.pragmas.Optimize.eval(Optimize.java:169)
    at org.exist.xquery.ExtensionExpression.eval(ExtensionExpression.java:71)
    at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:61)
    at org.exist.xquery.PathExpr.eval(PathExpr.java:241)
    at org.exist.xquery.LetExpr.eval(LetExpr.java:155)
    at org.exist.xquery.LetExpr.eval(LetExpr.java:206)
    at org.exist.xquery.ForExpr.eval(ForExpr.java:312)
    at org.exist.xquery.BindingExpression.eval(BindingExpression.java:158)
    at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:61)
    at org.exist.xquery.PathExpr.eval(PathExpr.java:241)
    at org.exist.xquery.LetExpr.eval(LetExpr.java:155)
    at org.exist.xquery.LetExpr.eval(LetExpr.java:206)
    at org.exist.xquery.LetExpr.eval(LetExpr.java:206)
    at org.exist.xquery.LetExpr.eval(LetExpr.java:206)
    at org.exist.xquery.BindingExpression.eval(BindingExpression.java:158)
    at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:61)
    at org.exist.xquery.PathExpr.eval(PathExpr.java:241)
    at org.exist.xquery.UserDefinedFunction.eval(UserDefinedFunction.java:137)
    at org.exist.xquery.FunctionCall.evalFunction(FunctionCall.java:274)
    at org.exist.xquery.FunctionCall.eval(FunctionCall.java:201)
    at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:61)
    at org.exist.xquery.PathExpr.eval(PathExpr.java:241)
    at org.exist.xquery.LetExpr.eval(LetExpr.java:155)
    at org.exist.xquery.LetExpr.eval(LetExpr.java:206)
    at org.exist.xquery.LetExpr.eval(LetExpr.java:206)
    at org.exist.xquery.LetExpr.eval(LetExpr.java:206)
    at org.exist.xquery.LetExpr.eval(LetExpr.java:206)
    at org.exist.xquery.LetExpr.eval(LetExpr.java:206)
    at org.exist.xquery.LetExpr.eval(LetExpr.java:206)
    at org.exist.xquery.LetExpr.eval(LetExpr.java:206)
    at org.exist.xquery.LetExpr.eval(LetExpr.java:206)
    at org.exist.xquery.LetExpr.eval(LetExpr.java:206)
    at org.exist.xquery.LetExpr.eval(LetExpr.java:206)
    at org.exist.xquery.LetExpr.eval(LetExpr.java:206)
    at org.exist.xquery.LetExpr.eval(LetExpr.java:206)
    at org.exist.xquery.BindingExpression.eval(BindingExpression.java:158)
    at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:61)
    at org.exist.xquery.PathExpr.eval(PathExpr.java:241)
    at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:61)
    at org.exist.xquery.PathExpr.eval(PathExpr.java:241)
    at org.exist.xquery.DynamicCardinalityCheck.eval(DynamicCardinalityCheck.java:71)
    at org.exist.xquery.functions.system.AsUser.eval(AsUser.java:83)
    at org.exist.xquery.InternalFunctionCall.eval(InternalFunctionCall.java:55)
    at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:61)
    at org.exist.xquery.PathExpr.eval(PathExpr.java:241)
    at org.exist.xquery.UserDefinedFunction.eval(UserDefinedFunction.java:137)
    at org.exist.xquery.FunctionCall.evalFunction(FunctionCall.java:274)
    at org.exist.xquery.FunctionCall.eval(FunctionCall.java:201)
    at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:61)
    at org.exist.xquery.PathExpr.eval(PathExpr.java:241)
    at org.exist.xquery.LetExpr.eval(LetExpr.java:155)
    at org.exist.xquery.LetExpr.eval(LetExpr.java:206)
    at org.exist.xquery.LetExpr.eval(LetExpr.java:206)
    at org.exist.xquery.BindingExpression.eval(BindingExpression.java:158)
    at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:61)
    at org.exist.xquery.PathExpr.eval(PathExpr.java:241)
    at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:61)
    at org.exist.xquery.XQuery.execute(XQuery.java:228)
    at org.exist.xquery.XQuery.execute(XQuery.java:183)
    at org.exist.xmlrpc.RpcConnection.doQuery(RpcConnection.java:300)
    at org.exist.xmlrpc.RpcConnection.queryP(RpcConnection.java:2419)
    at org.exist.xmlrpc.RpcConnection.queryP(RpcConnection.java:4786)
    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)
    at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java)
    at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java)
    at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java)
    at org.exist.http.urlrewrite.Forward.doRewrite(Forward.java:44)
    at org.exist.http.urlrewrite.XQueryURLRewrite.doFilter(XQueryURLRewrite.java:203)
    at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java)
    at de.betterform.agent.web.filter.XFormsFilter.doFilter(XFormsFilter.java)
    at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java)
    at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java)
    at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java)
    at org.mortbay.http.HttpContext.handle(HttpContext.java)
    at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java)
    at org.mortbay.http.HttpContext.handle(HttpContext.java)
    at org.mortbay.http.HttpServer.service(HttpServer.java)
    at org.mortbay.http.HttpConnection.service(HttpConnection.java)
    at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java)
    at org.mortbay.http.HttpConnection.handle(HttpConnection.java)
    at org.mortbay.http.SocketListener.handleConnection(SocketListener.java)
    at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java)
    at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java)