Project

Profile

Help

Bug #1631

closed

Error: Function data should have been resolved at compile-time

Added by O'Neil Delpratt about 12 years ago. Updated about 12 years ago.

Status:
Closed
Priority:
Normal
Category:
Internals
Sprint/Milestone:
-
Start date:
2012-10-01
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Platforms:

Description

Issue reported by Jakub Maly:

"In my XSLT 3.0 stylesheet I am receiving the following error

Function data should have been resolved at compile-time."

The follow IllegalException is thrown:

java.lang.IllegalStateException: Function data should have been resolved at compile time

at net.sf.saxon.functions.CompileTimeFunction.iterate(CompileTimeFunction.java:42)

at net.sf.saxon.expr.AtomicSequenceConverter.iterate(AtomicSequenceConverter.java:240)

at net.sf.saxon.expr.ItemChecker.iterate(ItemChecker.java:199)

at net.sf.saxon.expr.CardinalityChecker.evaluateItem(CardinalityChecker.java:291)

at net.sf.saxon.expr.parser.ExpressionTool.evaluate(ExpressionTool.java:317)

at net.sf.saxon.expr.UserFunctionCall.evaluateArguments(UserFunctionCall.java:532)

at net.sf.saxon.expr.UserFunctionCall.callFunction(UserFunctionCall.java:462)

at net.sf.saxon.expr.UserFunctionCall.iterate(UserFunctionCall.java:434)

at net.sf.saxon.value.Closure.iterate(Closure.java:204)

at net.sf.saxon.expr.UserFunctionCall.iterate(UserFunctionCall.java:434)

at com.saxonica.functions.hof.UserFunctionItem.call(UserFunctionItem.java:141)

at com.saxonica.functions.hof.CurriedFunction.call(CurriedFunction.java:117)

at com.saxonica.functions.hof.CoercedFunction.call(CoercedFunction.java:129)

at com.saxonica.functions.hof.DynamicFunctionCallDefinition$DynamicFunctionCall.call(DynamicFunctionCallDefinition.java:154)

at net.sf.saxon.functions.IntegratedFunctionCall.iterate(IntegratedFunctionCall.java:261)

at net.sf.saxon.expr.parser.ExpressionTool.evaluate(ExpressionTool.java:382)

at net.sf.saxon.expr.instruct.UserFunction.call(UserFunction.java:363)

at net.sf.saxon.expr.UserFunctionCall.callFunction(UserFunctionCall.java:473)

at net.sf.saxon.expr.UserFunctionCall.iterate(UserFunctionCall.java:434)

at com.saxonica.functions.hof.UserFunctionItem.call(UserFunctionItem.java:141)

at com.saxonica.functions.hof.CurriedFunction.call(CurriedFunction.java:117)

at com.saxonica.functions.hof.DynamicFunctionCallDefinition$DynamicFunctionCall.call(DynamicFunctionCallDefinition.java:154)

at net.sf.saxon.functions.IntegratedFunctionCall.iterate(IntegratedFunctionCall.java:261)

at net.sf.saxon.expr.LetExpression.iterate(LetExpression.java:400)

at net.sf.saxon.expr.parser.ExpressionTool.evaluate(ExpressionTool.java:329)

at net.sf.saxon.expr.instruct.GeneralVariable.getSelectValue(GeneralVariable.java:467)

at com.saxonica.expr.NextIteration.processLeavingTail(NextIteration.java:102)

at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:131)

at com.saxonica.expr.IterateInstr.processLeavingTail(IterateInstr.java:454)

at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:131)

at net.sf.saxon.expr.instruct.Instruction.getIteratorFromProcessMethod(Instruction.java:384)

at net.sf.saxon.expr.instruct.Instruction.iterate(Instruction.java:363)

at net.sf.saxon.value.Closure.iterate(Closure.java:204)

at net.sf.saxon.expr.TailCallLoop.iterate(TailCallLoop.java:92)

at net.sf.saxon.value.Closure.iterate(Closure.java:204)

at net.sf.saxon.expr.UserFunctionCall.iterate(UserFunctionCall.java:434)

at net.sf.saxon.expr.LetExpression.iterate(LetExpression.java:400)

at net.sf.saxon.expr.instruct.CopyOf.processLeavingTail(CopyOf.java:516)

at net.sf.saxon.expr.instruct.Template.applyLeavingTail(Template.java:232)

at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:1060)

at net.sf.saxon.trans.TextOnlyCopyRuleSet.process(TextOnlyCopyRuleSet.java:58)

at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:1048)

at net.sf.saxon.Controller.transformDocument(Controller.java:2055)

at net.sf.saxon.Controller.transform(Controller.java:1881)

at net.sf.saxon.Transform.processFile(Transform.java:990)

at net.sf.saxon.Transform.doTransform(Transform.java:617)

Files

swap-test-in.xml (1.54 KB) swap-test-in.xml O'Neil Delpratt, 2012-10-01 16:28

Please register to edit this issue

Also available in: Atom PDF