Project

Profile

Help

Saxon Exception

Added by Anonymous almost 17 years ago

Legacy ID: #4716159 Legacy Poster: bkbateman (bkbateman)

Has anyone seen the following saxon exception? This is for saxonb-8.8. I am suspicious that there are some thread safety issues in saxon. java.lang.AssertionError: Value of variable is undefined (null) at net.sf.saxon.value.Value.getIterator(Value.java:141) at net.sf.saxon.expr.VariableReference.iterate(VariableReference.java:270) at net.sf.saxon.expr.ForExpression.iterate(ForExpression.java:489) at net.sf.saxon.value.Closure.iterate(Closure.java:194) at net.sf.saxon.value.Value.getIterator(Value.java:137) at net.sf.saxon.expr.UserFunctionCall.iterate(UserFunctionCall.java:256) at net.sf.saxon.functions.Existence.effectiveBooleanValue(Existence.java:34) at net.sf.saxon.expr.IfExpression.process(IfExpression.java:275) at net.sf.saxon.expr.IfExpression.process(IfExpression.java:278) at net.sf.saxon.expr.IfExpression.process(IfExpression.java:278) at net.sf.saxon.expr.IfExpression.process(IfExpression.java:278) at net.sf.saxon.expr.IfExpression.process(IfExpression.java:278) at net.sf.saxon.expr.LetExpression.process(LetExpression.java:221) at net.sf.saxon.expr.IfExpression.process(IfExpression.java:278) at net.sf.saxon.expr.LetExpression.process(LetExpression.java:221) at net.sf.saxon.instruct.UserFunction.process(UserFunction.java:209) at net.sf.saxon.expr.UserFunctionCall.process(UserFunctionCall.java:306) at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:355) at net.sf.saxon.instruct.Instruction.process(Instruction.java:91) at net.sf.saxon.expr.LetExpression.process(LetExpression.java:221) at net.sf.saxon.instruct.UserFunction.process(UserFunction.java:209) at net.sf.saxon.expr.UserFunctionCall.process(UserFunctionCall.java:306) at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:355) at net.sf.saxon.instruct.Instruction.process(Instruction.java:91) at net.sf.saxon.instruct.ElementCreator.constructElement(ElementCreator.java:334) at net.sf.saxon.instruct.ElementCreator.evaluateItem(ElementCreator.java:280) at net.sf.saxon.instruct.Instruction.iterate(Instruction.java:318) at net.sf.saxon.instruct.Block$BlockIterator.next(Block.java:426) at net.sf.saxon.query.XQueryExpression$ErrorReportingIterator.next(XQueryExpression.java:547) at net.sf.saxon.query.QueryResult.serializeSequence(QueryResult.java:139) at net.sf.saxon.query.QueryResult.serializeSequence(QueryResult.java:122) at com.metasolv.serviceactivator.util.XQueryTransformer.executeTransform(XQueryTransformer.java:247) at com.metasolv.serviceactivator.util.XQueryTransformer.transform(XQueryTransformer.java:192) at com.metasolv.serviceactivator.networkprocessor.modeltransformer.XQueryCartridge.generateDeviceModel(XQueryCartridge.j ava:1222) at com.metasolv.serviceactivator.networkprocessor.cartridgemanager.CommitHelper.generateDeviceModel(CommitHelper.java:53 3) at com.metasolv.serviceactivator.networkprocessor.cartridgemanager.CommitHelper.generateDeviceModels(CommitHelper.java:5 06) at com.metasolv.serviceactivator.networkprocessor.cartridgemanager.Committer.commit(Committer.java:151) at com.metasolv.serviceactivator.networkprocessor.cartridgemanager.CartridgeManager.commit(CartridgeManager.java:309) at com.metasolv.serviceactivator.networkprocessor.CommitQueueItem.run(CommitQueueItem.java:71) at com.metasolv.serviceactivator.util.ThreadPool$PoolThread.run(ThreadPool.java:140)


Replies (3)

Please register to reply

RE: Saxon Exception - Added by Anonymous almost 17 years ago

Legacy ID: #4716679 Legacy Poster: Michael Kay (mhkay)

This symptom used to crop up from time to time - it was generally caused by corruption of the expression tree during rewrites by the optimizer - nothing to do with threading issues. I haven't seen the problem for some time, so I'd advise moving to a more recent release. The current release 9.0.0.2 is proving pretty stable.

RE: Saxon Exception - Added by Anonymous almost 17 years ago

Legacy ID: #4725267 Legacy Poster: jbeuree (jbeuree)

I work with bkbateman above and have tried using the latest release (9.0.0.2) and it gives a similar problem: java.lang.AssertionError: Value of variable is undefined (null) Variable vs a t 550 of resource://xqueries/vl.xq Variable vs2 at 627 of resource://xqueries/vl.xq Variable distinctvs at 629 of resource://xqueries/vl.xq at net.sf.saxon.expr.VariableReference.iterate(VariableReference.java:40 4) at net.sf.saxon.functions.Aggregate.evaluateItem(Aggregate.java:96) at net.sf.saxon.expr.ValueComparison.effectiveBooleanValue(ValueComparis on.java:552) at net.sf.saxon.instruct.Choose.iterate(Choose.java:687) at net.sf.saxon.expr.LetExpression.iterate(LetExpression.java:308) at net.sf.saxon.value.Closure.iterate(Closure.java:181) at net.sf.saxon.value.Value.getIterator(Value.java:216) at net.sf.saxon.expr.UserFunctionCall.iterate(UserFunctionCall.java:369) at net.sf.saxon.instruct.BlockIterator.next(BlockIterator.java:42) at net.sf.saxon.value.MemoClosure$ProgressiveIterator.next(MemoClosure.j ava:327) at net.sf.saxon.functions.Existence.effectiveBooleanValue(Existence.java :109) at net.sf.saxon.expr.BooleanExpression.effectiveBooleanValue(BooleanExpr ession.java:181) at net.sf.saxon.instruct.Choose.processLeavingTail(Choose.java:618) at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:399) at net.sf.saxon.instruct.Instruction.process(Instruction.java:94) at net.sf.saxon.expr.LetExpression.process(LetExpression.java:380) at net.sf.saxon.instruct.UserFunction.process(UserFunction.java:347) at net.sf.saxon.expr.UserFunctionCall.process(UserFunctionCall.java:417) at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:401) at net.sf.saxon.instruct.Instruction.process(Instruction.java:94) at net.sf.saxon.instruct.ElementCreator.constructElement(ElementCreator. java:378) at net.sf.saxon.instruct.ElementCreator.evaluateItem(ElementCreator.java :324) at net.sf.saxon.instruct.Instruction.iterate(Instruction.java:309) at net.sf.saxon.instruct.BlockIterator.next(BlockIterator.java:42) at net.sf.saxon.query.XQueryExpression$ErrorReportingIterator.next(XQuer yExpression.java:822) at net.sf.saxon.query.QueryResult.serializeSequence(QueryResult.java:187 ) at net.sf.saxon.query.QueryResult.serializeSequence(QueryResult.java:133 ) ... Basically, in this scenario, the first variable listed should not match anything and should be an empty sequence. This will cause the others to be empty. Instead, this error sometimes happens. It doesn't look like an internal bug rather than something caused by bad or incorrect xquery code.

RE: Saxon Exception - Added by Anonymous almost 17 years ago

Legacy ID: #4725285 Legacy Poster: Michael Kay (mhkay)

Definitely a Saxon bug then. Could you let me have the code that causes it please?

    (1-3/3)

    Please register to reply