Undefined variable value assertion in XQuery
Added by Anonymous over 17 years ago
Legacy ID: #4251908 Legacy Poster: jbeuree (jbeuree)
Hi, Here's an exception we've run across using Saxon 8.7.1. Its a little unusual and we're wondering under what conditions this can occur. E.g. is our code somehow messing up the multithreading environment and causing this. We've tried using 8.9.0.3 but are having other issues with it (as per another stack trace I've posted). Thanks, Jerry java.lang.AssertionError: Value of variable is undefined (null) at net.sf.saxon.value.Value.getIterator(Value.java:227) at net.sf.saxon.expr.VariableReference.iterate(VariableReference.java:211) at net.sf.saxon.expr.PathExpression.iterate(PathExpression.java:767) at net.sf.saxon.expr.PathExpression.iterate(PathExpression.java:767) at net.sf.saxon.expr.ForExpression.iterate(ForExpression.java:519) at net.sf.saxon.value.Closure.iterate(Closure.java:282) at net.sf.saxon.value.Value.getIterator(Value.java:223) at net.sf.saxon.expr.UserFunctionCall.iterate(UserFunctionCall.java:211) at net.sf.saxon.value.MemoClosure.iterate(MemoClosure.java:91) at net.sf.saxon.value.Value.getIterator(Value.java:223) at net.sf.saxon.expr.VariableReference.iterate(VariableReference.java:211) at net.sf.saxon.functions.Existence.effectiveBooleanValue(Existence.java:33) at net.sf.saxon.expr.IfExpression.process(IfExpression.java:244) at net.sf.saxon.expr.IfExpression.process(IfExpression.java:247) at net.sf.saxon.expr.IfExpression.process(IfExpression.java:247) at net.sf.saxon.expr.IfExpression.process(IfExpression.java:247) at net.sf.saxon.expr.LetExpression.process(LetExpression.java:203) at net.sf.saxon.expr.IfExpression.process(IfExpression.java:245) at net.sf.saxon.expr.IfExpression.process(IfExpression.java:247) at net.sf.saxon.expr.IfExpression.process(IfExpression.java:247) at net.sf.saxon.expr.IfExpression.process(IfExpression.java:247) at net.sf.saxon.expr.IfExpression.process(IfExpression.java:247) at net.sf.saxon.expr.IfExpression.process(IfExpression.java:247) at net.sf.saxon.expr.IfExpression.process(IfExpression.java:247) at net.sf.saxon.expr.IfExpression.process(IfExpression.java:247) at net.sf.saxon.expr.IfExpression.process(IfExpression.java:247) at net.sf.saxon.expr.LetExpression.process(LetExpression.java:203) at net.sf.saxon.expr.IfExpression.process(IfExpression.java:245) at net.sf.saxon.expr.ForExpression.process(ForExpression.java:540) at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:338) at net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:329) at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:336) at net.sf.saxon.instruct.Instruction.process(Instruction.java:91) at net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:164) at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:336) at net.sf.saxon.instruct.Instruction.process(Instruction.java:91) at net.sf.saxon.instruct.ElementCreator.constructElement(ElementCreator.java:250) at net.sf.saxon.instruct.ElementCreator.evaluateItem(ElementCreator.java:195) at net.sf.saxon.instruct.Instruction.iterate(Instruction.java:312) at net.sf.saxon.instruct.Block$BlockIterator.next(Block.java:409) at net.sf.saxon.query.XQueryExpression$ErrorReportingIterator.next(XQueryExpression.java:521) at net.sf.saxon.query.QueryResult.serializeSequence(QueryResult.java:126)
Replies (1)
RE: Undefined variable value assertion in XQu - Added by Anonymous over 17 years ago
Legacy ID: #4252586 Legacy Poster: Michael Kay (mhkay)
The exception java.lang.AssertionError: Value of variable is undefined (null) indicates a Saxon bug. It typically results from an incorrect optimization of the expression tree at compile time. If you're having trouble moving forward to Saxon 8.9, you could perhaps try 8.7.3.
Please register to reply