From: <pdi...@di...> - 2011-06-17 22:28:41
|
Dear all, this strange behavior is representing: I have the following code fragment: let $x := element UU { element stereo1 {$role[1]/@AssociateItem} ,element stereo2 {$role[2]/@AssociateItem} ,$ont//*[@ID eq "X43ECC96601FB"] (:,$ont//*[@ID eq ($role[2]/@AssociateItem)]:) } let $tmp := logger:log ("yyyy",$x) Please, note the last element is commented. The result fragment, contained in the "yyyy" log file is the following: <log> <UU> <stereo1 AssociateItem="X43ECC96601FB"/> <stereo2 AssociateItem="X49745F050382"/> <dvn:UseCase xmlns:dvn="http://egov.diviana.it/b121/DVN" ID="X43ECC96601FB" Name="Anagrafica Richiedente" Stereotype="use-case realization" ParentCategory="X43ECC9210011"> <dvn:UseCaseDiagram ID="X43ECCA3B00D5" Name="Anagrafica Richiedente" ZoomFactor="100" ParentCategory="X43ECC9210011"> ..... But now, if I change the code as follow let $x := element UU { element stereo1 {$role[1]/@AssociateItem} ,element stereo2 {$role[2]/@AssociateItem} (:,$ont//*[@ID eq "X43ECC96601FB"]:) ,$ont//*[@ID eq ($role[2]/@AssociateItem)] } I got an exception. Note: I just commented the statement with the constant value and uncommented the next one, wich contains exactly the same value. Please, note that the following query (with nested predicates) runs fine: $ont//*[$role[2][@AssociateItem eq $ID]] I'm still running the 1.4.0 rev 10440 build 20091111 which comes with betterform limegreen. I disabled all the automatic update. Anyone can help? TIA Paolo ---------------------------------------- Da: "pdi...@di..." <pdi...@di...> Inviato: lunedì 23 maggio 2011 20.34 A: exi...@li... Oggetto: usual behavior is changed 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) |