Project

Profile

Help

Internal error in Saxon-HE-9.7.0-5

Added by Vladimir Nesterovsky 10 months ago

I've run into internal error in Saxon-HE-9.7.0-5.
Right now please look into a stack trace, and later I'll try to get some repro:

Exception in thread "main" java.lang.RuntimeException: Internal error evaluating template rule  at line 49 in module ...
    at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:402)
    at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:456)
    at net.sf.saxon.trans.TextOnlyCopyRuleSet.process(TextOnlyCopyRuleSet.java:65)
    at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:433)
    at net.sf.saxon.Controller.transformDocument(Controller.java:2270)
    at net.sf.saxon.Controller.transform(Controller.java:1847)
    at net.sf.saxon.s9api.XsltTransformer.transform(XsltTransformer.java:579)
    at net.sf.saxon.jaxp.TransformerImpl.transform(TransformerImpl.java:185)
  ...
Caused by: java.lang.RuntimeException: Internal error evaluating template rule  at line 132 in module ...
    at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:402)
    at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:456)
    at net.sf.saxon.expr.instruct.ApplyTemplates$ApplyTemplatesPackage.processLeavingTail(ApplyTemplates.java:567)
    at net.sf.saxon.expr.instruct.CallTemplate.process(CallTemplate.java:356)
    at net.sf.saxon.expr.instruct.CallTemplate.processLeavingTail(CallTemplate.java:410)
    at net.sf.saxon.expr.instruct.Choose.processLeavingTail(Choose.java:833)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:654)
    at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:149)
    at net.sf.saxon.expr.LetExpression.process(LetExpression.java:559)
    at net.sf.saxon.expr.instruct.ForEach.processLeavingTail(ForEach.java:450)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:654)
    at net.sf.saxon.expr.instruct.NamedTemplate.expand(NamedTemplate.java:283)
    at net.sf.saxon.expr.instruct.CallTemplate.process(CallTemplate.java:354)
    at net.sf.saxon.expr.instruct.CallTemplate.processLeavingTail(CallTemplate.java:410)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:654)
    at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:389)
    ... 11 more
Caused by: java.lang.RuntimeException: Internal error evaluating template rule  at line 135 in module ...
    at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:402)
    at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:456)
    at net.sf.saxon.expr.instruct.ApplyTemplates.apply(ApplyTemplates.java:296)
    at net.sf.saxon.expr.instruct.ApplyTemplates.process(ApplyTemplates.java:249)
  ...
    at net.sf.saxon.functions.IntegratedFunctionCall.iterate(IntegratedFunctionCall.java:283)
    at net.sf.saxon.expr.Expression.process(Expression.java:878)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:656)
    at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:389)
    ... 26 more
Caused by: java.lang.RuntimeException: Internal error evaluating template rule  at line 434 in module ...
    at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:402)
    at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:456)
    at net.sf.saxon.expr.instruct.ApplyTemplates.apply(ApplyTemplates.java:296)
    at net.sf.saxon.expr.instruct.ApplyTemplates.processLeavingTail(ApplyTemplates.java:253)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:654)
    at net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:708)
    at net.sf.saxon.expr.instruct.Choose.processLeavingTail(Choose.java:833)
    at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:149)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:364)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:311)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:654)
    at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:149)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:364)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:311)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:654)
    at net.sf.saxon.expr.instruct.NamedTemplate.expand(NamedTemplate.java:283)
    at net.sf.saxon.expr.instruct.CallTemplate.process(CallTemplate.java:354)
    at net.sf.saxon.expr.parser.ExpressionTool.getIteratorFromProcessMethod(ExpressionTool.java:671)
    at net.sf.saxon.expr.instruct.Instruction.iterate(Instruction.java:354)
    at net.sf.saxon.expr.CardinalityChecker.evaluateItem(CardinalityChecker.java:277)
    at net.sf.saxon.expr.ItemChecker.evaluateItem(ItemChecker.java:194)
    at net.sf.saxon.expr.parser.ExpressionTool.evaluate(ExpressionTool.java:301)
    at net.sf.saxon.expr.LetExpression.eval(LetExpression.java:491)
    at net.sf.saxon.expr.LetExpression.iterate(LetExpression.java:447)
    at net.sf.saxon.expr.instruct.ForEach.map(ForEach.java:485)
    at net.sf.saxon.expr.ContextMappingIterator.next(ContextMappingIterator.java:61)
    at net.sf.saxon.value.SequenceExtent.<init>(SequenceExtent.java:86)
    at net.sf.saxon.value.SequenceExtent.makeSequenceExtent(SequenceExtent.java:110)
    at net.sf.saxon.expr.parser.ExpressionTool.evaluate(ExpressionTool.java:313)
    at net.sf.saxon.expr.LetExpression.eval(LetExpression.java:491)
    at net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:699)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:654)
    at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:149)
    at net.sf.saxon.expr.ItemChecker.process(ItemChecker.java:234)
    at net.sf.saxon.expr.instruct.NamedTemplate.expand(NamedTemplate.java:285)
    at net.sf.saxon.expr.instruct.CallTemplate.process(CallTemplate.java:354)
    at net.sf.saxon.expr.parser.ExpressionTool.evaluate(ExpressionTool.java:323)
    at net.sf.saxon.expr.LetExpression.eval(LetExpression.java:491)
    at net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:699)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:654)
    at net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:708)
    at net.sf.saxon.expr.instruct.Choose.processLeavingTail(Choose.java:833)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:654)
    at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:389)
    ... 35 more
Caused by: java.lang.RuntimeException: Internal error evaluating template rule  at line 2681 in module ...
    at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:402)
    at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:456)
    at net.sf.saxon.expr.instruct.ApplyTemplates$ApplyTemplatesPackage.processLeavingTail(ApplyTemplates.java:567)
    at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:387)
    at net.sf.saxon.expr.instruct.ApplyTemplates.apply(ApplyTemplates.java:296)
    at net.sf.saxon.expr.instruct.ApplyTemplates.process(ApplyTemplates.java:249)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:364)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:311)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:654)
    at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:149)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:364)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:311)
    at net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:708)
    at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:389)
    ... 78 more
Caused by: java.lang.ClassCastException: net.sf.saxon.expr.instruct.UserFunction cannot be cast to net.sf.saxon.trans.Mode
    at net.sf.saxon.expr.instruct.ApplyTemplates.apply(ApplyTemplates.java:259)
    at net.sf.saxon.expr.instruct.ApplyTemplates.process(ApplyTemplates.java:249)
    at net.sf.saxon.expr.parser.ExpressionTool.getIteratorFromProcessMethod(ExpressionTool.java:671)
    at net.sf.saxon.expr.instruct.Instruction.iterate(Instruction.java:354)
    at net.sf.saxon.expr.CardinalityChecker.evaluateItem(CardinalityChecker.java:277)
    at net.sf.saxon.expr.ItemChecker.evaluateItem(ItemChecker.java:194)
    at net.sf.saxon.expr.parser.ExpressionTool.evaluate(ExpressionTool.java:301)
    at net.sf.saxon.expr.instruct.LocalParam.getSelectValue(LocalParam.java:382)
    at net.sf.saxon.expr.instruct.LocalParamSetter.processLeavingTail(LocalParamSetter.java:280)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:654)
    at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:149)
    at net.sf.saxon.expr.CardinalityChecker.process(CardinalityChecker.java:320)
    at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:391)
    ... 91 more

Thanks


Replies (15)

Please register to reply

RE: Internal error in Saxon-HE-9.7.0-5 - Added by Vladimir Nesterovsky 10 months ago

More info on subject.
While trying to simplify the test case I've started to get different error:

java.lang.IndexOutOfBoundsException: Index: 92, Size: 7
    at java.util.ArrayList.rangeCheck(ArrayList.java:653)
    at java.util.ArrayList.get(ArrayList.java:429)
    at net.sf.saxon.expr.XPathContextMajor.getTargetComponent(XPathContextMajor.java:690)
    at net.sf.saxon.expr.UserFunctionCall.getTargetComponent(UserFunctionCall.java:561)
    at net.sf.saxon.expr.UserFunctionCall.callFunction(UserFunctionCall.java:493)
    at net.sf.saxon.expr.UserFunctionCall.evaluateItem(UserFunctionCall.java:451)
    at net.sf.saxon.expr.LetExpression.evaluateItem(LetExpression.java:512)
    at net.sf.saxon.expr.parser.ExpressionTool.evaluate(ExpressionTool.java:301)
    at net.sf.saxon.expr.instruct.LocalParam.getSelectValue(LocalParam.java:382)
    at net.sf.saxon.expr.instruct.LocalParamSetter.processLeavingTail(LocalParamSetter.java:280)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:654)
    at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:149)
    at net.sf.saxon.expr.CardinalityChecker.process(CardinalityChecker.java:320)
    at net.sf.saxon.expr.instruct.NamedTemplate.expand(NamedTemplate.java:285)
    at net.sf.saxon.expr.instruct.CallTemplate$CallTemplatePackage.processLeavingTail(CallTemplate.java:510)
    at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:151)
    at net.sf.saxon.expr.ItemChecker.process(ItemChecker.java:234)
    at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:391)
    at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:456)
    at net.sf.saxon.expr.instruct.ApplyTemplates.apply(ApplyTemplates.java:296)
    at net.sf.saxon.expr.instruct.ApplyTemplates.process(ApplyTemplates.java:249)
    at net.sf.saxon.expr.parser.ExpressionTool.getIteratorFromProcessMethod(ExpressionTool.java:671)
    at net.sf.saxon.expr.instruct.Instruction.iterate(Instruction.java:354)
    at net.sf.saxon.expr.CardinalityChecker.evaluateItem(CardinalityChecker.java:277)
    at net.sf.saxon.expr.ItemChecker.evaluateItem(ItemChecker.java:194)
    at net.sf.saxon.expr.parser.ExpressionTool.evaluate(ExpressionTool.java:301)
    at net.sf.saxon.expr.LetExpression.eval(LetExpression.java:491)
    at net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:699)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:654)
    at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:389)
    at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:456)
    at net.sf.saxon.expr.instruct.ApplyTemplates.apply(ApplyTemplates.java:296)
    at net.sf.saxon.expr.instruct.ApplyTemplates.processLeavingTail(ApplyTemplates.java:253)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:654)
    at net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:708)
    at net.sf.saxon.expr.instruct.Choose.processLeavingTail(Choose.java:833)
    at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:149)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:364)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:311)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:654)
    at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:149)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:364)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:311)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:654)
    at net.sf.saxon.expr.instruct.NamedTemplate.expand(NamedTemplate.java:283)
    at net.sf.saxon.expr.instruct.CallTemplate.process(CallTemplate.java:354)
    at net.sf.saxon.expr.parser.ExpressionTool.getIteratorFromProcessMethod(ExpressionTool.java:671)
    at net.sf.saxon.expr.instruct.Instruction.iterate(Instruction.java:354)
    at net.sf.saxon.expr.CardinalityChecker.evaluateItem(CardinalityChecker.java:277)
    at net.sf.saxon.expr.ItemChecker.evaluateItem(ItemChecker.java:194)
    at net.sf.saxon.expr.parser.ExpressionTool.evaluate(ExpressionTool.java:301)
    at net.sf.saxon.expr.LetExpression.eval(LetExpression.java:491)
    at net.sf.saxon.expr.LetExpression.iterate(LetExpression.java:447)
    at net.sf.saxon.expr.instruct.ForEach.map(ForEach.java:485)
    at net.sf.saxon.expr.ContextMappingIterator.next(ContextMappingIterator.java:61)
    at net.sf.saxon.value.SequenceExtent.<init>(SequenceExtent.java:86)
    at net.sf.saxon.value.SequenceExtent.makeSequenceExtent(SequenceExtent.java:110)
    at net.sf.saxon.expr.parser.ExpressionTool.evaluate(ExpressionTool.java:313)
    at net.sf.saxon.expr.LetExpression.eval(LetExpression.java:491)
    at net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:699)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:654)
    at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:149)
    at net.sf.saxon.expr.CardinalityChecker.process(CardinalityChecker.java:320)
    at net.sf.saxon.expr.instruct.NamedTemplate.expand(NamedTemplate.java:285)
    at net.sf.saxon.expr.instruct.CallTemplate$CallTemplatePackage.processLeavingTail(CallTemplate.java:510)
    at net.sf.saxon.expr.instruct.ApplyTemplates.apply(ApplyTemplates.java:298)
    at net.sf.saxon.expr.instruct.ApplyTemplates.process(ApplyTemplates.java:249)
  ...
    at net.sf.saxon.functions.IntegratedFunctionCall.iterate(IntegratedFunctionCall.java:283)
    at net.sf.saxon.expr.Expression.process(Expression.java:878)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:656)
    at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:389)
    at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:456)
    at net.sf.saxon.expr.instruct.ApplyTemplates$ApplyTemplatesPackage.processLeavingTail(ApplyTemplates.java:567)
    at net.sf.saxon.expr.instruct.CallTemplate.process(CallTemplate.java:356)
    at net.sf.saxon.expr.instruct.CallTemplate.processLeavingTail(CallTemplate.java:410)
    at net.sf.saxon.expr.instruct.Choose.processLeavingTail(Choose.java:833)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:654)
    at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:149)
    at net.sf.saxon.expr.LetExpression.process(LetExpression.java:559)
    at net.sf.saxon.expr.instruct.ForEach.processLeavingTail(ForEach.java:450)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:654)
    at net.sf.saxon.expr.instruct.NamedTemplate.expand(NamedTemplate.java:283)
    at net.sf.saxon.expr.instruct.CallTemplate$CallTemplatePackage.processLeavingTail(CallTemplate.java:510)
    at net.sf.saxon.trans.TextOnlyCopyRuleSet.process(TextOnlyCopyRuleSet.java:67)
    at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:433)
    at net.sf.saxon.Controller.transformDocument(Controller.java:2270)
    at net.sf.saxon.Controller.transform(Controller.java:1847)
    at net.sf.saxon.s9api.XsltTransformer.transform(XsltTransformer.java:579)
    at net.sf.saxon.jaxp.TransformerImpl.transform(TransformerImpl.java:185)
  ...
Exception in thread "main" java.lang.RuntimeException: Internal error evaluating template rule  at line 132 in module ...
    at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:402)
    at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:456)
    at net.sf.saxon.expr.instruct.ApplyTemplates$ApplyTemplatesPackage.processLeavingTail(ApplyTemplates.java:567)
    at net.sf.saxon.expr.instruct.CallTemplate.process(CallTemplate.java:356)
    at net.sf.saxon.expr.instruct.CallTemplate.processLeavingTail(CallTemplate.java:410)
    at net.sf.saxon.expr.instruct.Choose.processLeavingTail(Choose.java:833)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:654)
    at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:149)
    at net.sf.saxon.expr.LetExpression.process(LetExpression.java:559)
    at net.sf.saxon.expr.instruct.ForEach.processLeavingTail(ForEach.java:450)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:654)
    at net.sf.saxon.expr.instruct.NamedTemplate.expand(NamedTemplate.java:283)
    at net.sf.saxon.expr.instruct.CallTemplate$CallTemplatePackage.processLeavingTail(CallTemplate.java:510)
    at net.sf.saxon.trans.TextOnlyCopyRuleSet.process(TextOnlyCopyRuleSet.java:67)
    at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:433)
    at net.sf.saxon.Controller.transformDocument(Controller.java:2270)
    at net.sf.saxon.Controller.transform(Controller.java:1847)
    at net.sf.saxon.s9api.XsltTransformer.transform(XsltTransformer.java:579)
    at net.sf.saxon.jaxp.TransformerImpl.transform(TransformerImpl.java:185)
  ...
Caused by: java.lang.RuntimeException: Internal error evaluating template rule  at line 959 in module ...
    at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:402)
    at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:456)
    at net.sf.saxon.expr.instruct.ApplyTemplates.apply(ApplyTemplates.java:296)
    at net.sf.saxon.expr.instruct.ApplyTemplates.processLeavingTail(ApplyTemplates.java:253)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:654)
    at net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:708)
    at net.sf.saxon.expr.instruct.Choose.processLeavingTail(Choose.java:833)
    at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:149)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:364)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:311)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:654)
    at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:149)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:364)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:311)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:654)
    at net.sf.saxon.expr.instruct.NamedTemplate.expand(NamedTemplate.java:283)
    at net.sf.saxon.expr.instruct.CallTemplate.process(CallTemplate.java:354)
    at net.sf.saxon.expr.parser.ExpressionTool.getIteratorFromProcessMethod(ExpressionTool.java:671)
    at net.sf.saxon.expr.instruct.Instruction.iterate(Instruction.java:354)
    at net.sf.saxon.expr.CardinalityChecker.evaluateItem(CardinalityChecker.java:277)
    at net.sf.saxon.expr.ItemChecker.evaluateItem(ItemChecker.java:194)
    at net.sf.saxon.expr.parser.ExpressionTool.evaluate(ExpressionTool.java:301)
    at net.sf.saxon.expr.LetExpression.eval(LetExpression.java:491)
    at net.sf.saxon.expr.LetExpression.iterate(LetExpression.java:447)
    at net.sf.saxon.expr.instruct.ForEach.map(ForEach.java:485)
    at net.sf.saxon.expr.ContextMappingIterator.next(ContextMappingIterator.java:61)
    at net.sf.saxon.value.SequenceExtent.<init>(SequenceExtent.java:86)
    at net.sf.saxon.value.SequenceExtent.makeSequenceExtent(SequenceExtent.java:110)
    at net.sf.saxon.expr.parser.ExpressionTool.evaluate(ExpressionTool.java:313)
    at net.sf.saxon.expr.LetExpression.eval(LetExpression.java:491)
    at net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:699)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:654)
    at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:149)
    at net.sf.saxon.expr.CardinalityChecker.process(CardinalityChecker.java:320)
    at net.sf.saxon.expr.instruct.NamedTemplate.expand(NamedTemplate.java:285)
    at net.sf.saxon.expr.instruct.CallTemplate$CallTemplatePackage.processLeavingTail(CallTemplate.java:510)
    at net.sf.saxon.expr.instruct.ApplyTemplates.apply(ApplyTemplates.java:298)
    at net.sf.saxon.expr.instruct.ApplyTemplates.process(ApplyTemplates.java:249)
  ...
    at net.sf.saxon.functions.IntegratedFunctionCall.iterate(IntegratedFunctionCall.java:283)
    at net.sf.saxon.expr.Expression.process(Expression.java:878)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:656)
    at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:389)
    ... 22 more
Caused by: java.lang.RuntimeException: Internal error evaluating template rule  at line 2760 in module ...
    at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:402)
    at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:456)
    at net.sf.saxon.expr.instruct.ApplyTemplates.apply(ApplyTemplates.java:296)
    at net.sf.saxon.expr.instruct.ApplyTemplates.process(ApplyTemplates.java:249)
    at net.sf.saxon.expr.parser.ExpressionTool.getIteratorFromProcessMethod(ExpressionTool.java:671)
    at net.sf.saxon.expr.instruct.Instruction.iterate(Instruction.java:354)
    at net.sf.saxon.expr.CardinalityChecker.evaluateItem(CardinalityChecker.java:277)
    at net.sf.saxon.expr.ItemChecker.evaluateItem(ItemChecker.java:194)
    at net.sf.saxon.expr.parser.ExpressionTool.evaluate(ExpressionTool.java:301)
    at net.sf.saxon.expr.LetExpression.eval(LetExpression.java:491)
    at net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:699)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:654)
    at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:389)
    ... 65 more
Caused by: java.lang.IndexOutOfBoundsException: Index: 92, Size: 7
    at java.util.ArrayList.rangeCheck(ArrayList.java:653)
    at java.util.ArrayList.get(ArrayList.java:429)
    at net.sf.saxon.expr.XPathContextMajor.getTargetComponent(XPathContextMajor.java:690)
    at net.sf.saxon.expr.UserFunctionCall.getTargetComponent(UserFunctionCall.java:561)
    at net.sf.saxon.expr.UserFunctionCall.callFunction(UserFunctionCall.java:493)
    at net.sf.saxon.expr.UserFunctionCall.evaluateItem(UserFunctionCall.java:451)
    at net.sf.saxon.expr.LetExpression.evaluateItem(LetExpression.java:512)
    at net.sf.saxon.expr.parser.ExpressionTool.evaluate(ExpressionTool.java:301)
    at net.sf.saxon.expr.instruct.LocalParam.getSelectValue(LocalParam.java:382)
    at net.sf.saxon.expr.instruct.LocalParamSetter.processLeavingTail(LocalParamSetter.java:280)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:654)
    at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:149)
    at net.sf.saxon.expr.CardinalityChecker.process(CardinalityChecker.java:320)
    at net.sf.saxon.expr.instruct.NamedTemplate.expand(NamedTemplate.java:285)
    at net.sf.saxon.expr.instruct.CallTemplate$CallTemplatePackage.processLeavingTail(CallTemplate.java:510)
    at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:151)
    at net.sf.saxon.expr.ItemChecker.process(ItemChecker.java:234)
    at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:391)
    ... 77 more

Thanks

RE: Internal error in Saxon-HE-9.7.0-5 - Added by Michael Kay 10 months ago

The two crashes are actually different manifestations of the same error: a component reference (probably a function call) is attempting to locate the target component using the wrong binding vector. In the first case it finds a component of the wrong type, and crashes with a ClassCastException; in the second case the binding vector is too short, and it crashes with an IOOBE.

(This is all part of the mechanism for implementing separately compiled packages in XSLT 3.0)

What the stack trace doesn't tell us is why. The theory is that whenever a component is invoked, the current component is placed in the context. The crash means that some code somewhere has failed to follow this protocol. To locate the error, we will need a repro. Thanks for your efforts on this. Don't worry if the repro contains a lot of code: so long as it doesn't have complex external dependencies, we should be able to pin it down.

RE: Internal error in Saxon-HE-9.7.0-5 - Added by Vladimir Nesterovsky 10 months ago

I reduced the problem to a following gibrish xslt:

<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
  xmlns:xs="http://www.w3.org/2001/XMLSchema" 
  xmlns:t="t" 
  xmlns="d" 
  xpath-default-namespace="d">

  <xsl:param name="extract-folder" as="xs:string?"/>
  <xsl:param name="model-scope" as="xs:string?"/>
  <xsl:param name="program-tree-folder" as="xs:string?"/>
  <xsl:param name="derived-data-folder" as="xs:string?"/>

  <xsl:variable name="code" as="element()">
    
      <action>
        <argument number="1">
          <method/>
        </argument>
      </action>
      <call/>
      <open-window/>
    
</xsl:variable> <xsl:variable name="data-view" as="element()">
<data-view/>
</xsl:variable> <xsl:template match="/*">
<xsl:apply-templates mode="t:generate-statements" select="$code/*"/>
</xsl:template> <xsl:template mode="t:generate-expression" match="*">
<expresion/>
</xsl:template> <xsl:template mode="t:generate-statements" match="action">
<xsl:apply-templates mode="t:generate-expression"
select="argument[@number = 1]/method"/>
</xsl:template> <xsl:template mode="t:generate-expression"
name="t:control-property"
match="property">
<xsl:param name="member-type" as="element()?">
<type>
<xsl:sequence select="t:get-expression-program-type(.)"/>
</type>
</xsl:param> <invoke name="get"/>
</xsl:template> <xsl:template mode="t:generate-expression" match="method">
<xsl:call-template name="t:control-property"/>
</xsl:template> <xsl:template name="t:generate-entity">
<expression/>
</xsl:template> <xsl:template name="t:generate-group">
<field/>
</xsl:template> <xsl:template name="t:generate-assign">
<statement/>
</xsl:template> <xsl:template name="t:generate-group-assign">
<scope/>
</xsl:template> <xsl:function name="t:get-type-of" as="element()">
<type/>
</xsl:function> <xsl:variable name="t:ui-object" as="element()?"/>
<xsl:variable name="t:int" as="element()?"/>
<xsl:variable name="t:zero" as="element()?"/>
<xsl:variable name="t:Object" as="element()?"/>
<xsl:variable name="t:char" as="element()?"/>
<xsl:variable name="t:Character" as="element()?"/>
<xsl:variable name="t:boolean" as="element()?"/>
<xsl:variable name="t:Boolean" as="element()?"/>
<xsl:variable name="t:byte" as="element()?"/>
<xsl:variable name="t:Byte" as="element()?"/>
<xsl:variable name="t:short" as="element()?"/>
<xsl:variable name="t:Short" as="element()?"/>
<xsl:variable name="t:integer" as="element()?"/>
<xsl:variable name="t:Integer" as="element()?"/>
<xsl:variable name="t:long" as="element()?"/>
<xsl:variable name="t:Long" as="element()?"/>
<xsl:variable name="t:float" as="element()?"/>
<xsl:variable name="t:Float" as="element()?"/>
<xsl:variable name="t:double" as="element()?"/>
<xsl:variable name="t:Double" as="element()?"/>
<xsl:variable name="t:String" as="element()?"/>
<xsl:variable name="t:one" as="element()?"/>
<xsl:variable name="t:two" as="element()?"/> <xsl:template mode="t:simplify-expression" match="*">
<xsl:sequence select="."/>
</xsl:template> <xsl:variable name="t:extraction" as="document-node()?"/>
<xsl:variable name="t:tnames" as="xs:string*"/>
<xsl:variable name="t:extract-uri" as="xs:anyURI?"/>
<xsl:variable name="t:extract-root" as="xs:anyURI?"/>
<xsl:variable name="t:program-tree-folder" as="xs:anyURI?"/>
<xsl:variable name="t:derived-data-folder" as="xs:anyURI?"/> <xsl:function name="t:get-extraction-element" as="element()">
<xsl:sequence select="error()"/>
</xsl:function> <xsl:function name="t:get-model-extraction-document" as="document-node()">
<xsl:sequence select="error()"/>
</xsl:function> <xsl:function name="t:get-model-extraction-element" as="element()">
<xsl:sequence select="error()"/>
</xsl:function> <xsl:function name="t:get-extraction-document" as="document-node()">
<xsl:sequence select="error()"/>
</xsl:function> <xsl:function name="t:get-model-extraction-document" as="document-node()">
<xsl:param name="model-id" as="xs:string"/>
<xsl:param name="type" as="xs:string"/>
<xsl:param name="id" as="xs:string"/> <xsl:sequence select="error()"/>
</xsl:function> <xsl:function name="t:get-extraction-index" as="element()">
<xsl:param name="type" as="xs:string"/> <xsl:sequence select="error()"/>
</xsl:function> <xsl:function name="t:get-model-extraction-index" as="element()">
<xsl:param name="model-id" as="xs:string"/>
<xsl:param name="type" as="xs:string"/> <xsl:sequence select="error()"/>
</xsl:function> <xsl:function name="t:get-extraction-index" as="element()*">
<xsl:param name="type" as="xs:string"/>
<xsl:param name="ids" as="xs:string*"/> <xsl:sequence select="error()"/>
</xsl:function> <xsl:function name="t:get-model-extraction-index" as="element()*">
<xsl:param name="model-id" as="xs:string"/>
<xsl:param name="type" as="xs:string"/>
<xsl:param name="ids" as="xs:string*"/> <xsl:sequence select="error()"/>
</xsl:function> <xsl:function name="t:get-extraction-index2" as="element()*">
<xsl:param name="type" as="xs:string"/>
<xsl:param name="ids" as="xs:string*"/> <xsl:sequence select="error()"/>
</xsl:function> <xsl:function name="t:get-model-extraction-index2" as="element()*">
<xsl:param name="model-id" as="xs:string"/>
<xsl:param name="type" as="xs:string"/>
<xsl:param name="ids" as="xs:string*"/> <xsl:sequence select="error()"/>
</xsl:function> <xsl:function name="t:get-document" as="document-node()">
<xsl:param name="path" as="xs:string?"/>
<xsl:param name="id" as="xs:string"/> <xsl:sequence select="error()"/>
</xsl:function> <xsl:function name="t:get-document" as="document-node()">
<xsl:param name="path" as="xs:string"/>
<xsl:sequence select="error()"/>
</xsl:function> <xsl:function name="t:get-entities-document" as="document-node()">
<xsl:sequence select="error()"/>
</xsl:function> <xsl:function name="t:get-entity-document" as="document-node()">
<xsl:sequence select="error()"/>
</xsl:function> <xsl:function name="t:get-controls-document" as="document-node()">
<xsl:sequence select="error()"/>
</xsl:function> <xsl:function name="t:find-entity-item" as="element()?">
<xsl:param name="id" as="xs:string"/> <xsl:sequence select="error()"/>
</xsl:function> <xsl:function name="t:find-entity" as="element()?">
<xsl:param name="id" as="xs:string"/> <xsl:sequence select="error()"/>
</xsl:function> <xsl:function name="t:get-entity-by-attribute-id" as="document-node()">
<xsl:param name="attribute-id" as="xs:string"/> <xsl:sequence select="error()"/>
</xsl:function> <xsl:function name="t:get-entity-attribute-by-id" as="element()">
<xsl:param name="id" as="xs:string"/> <xsl:sequence select="error()"/>
</xsl:function> <xsl:function name="t:get-attribute-by-id" as="element()">
<xsl:param name="id" as="xs:string"/> <xsl:sequence select="error()"/>
</xsl:function> <xsl:function name="t:get-attribute-with-alias" as="element()">
<xsl:param name="entity-id" as="xs:string+"/>
<xsl:param name="attribute-id" as="xs:string"/> <xsl:sequence select="error()"/>
</xsl:function> <xsl:function name="t:get-data-views-document" as="document-node()">
<xsl:sequence select="error()"/>
</xsl:function> <xsl:function name="t:get-data-view-document" as="document-node()">
<xsl:param name="id" as="xs:string"/> <xsl:sequence select="error()"/>
</xsl:function> <xsl:function name="t:get-program-document" as="document-node()">
<xsl:param name="id" as="xs:string"/> <xsl:sequence select="error()"/>
</xsl:function> <xsl:function name="t:get-data-view" as="document-node()">
<xsl:sequence select="error()"/>
</xsl:function> <xsl:function name="t:get-dvset" as="document-node()">
<xsl:param name="code" as="element()"/> <xsl:sequence select="error()"/>
</xsl:function> <xsl:function name="t:get-dvset-document" as="document-node()">
<xsl:param name="id" as="xs:string"/> <xsl:sequence select="error()"/>
</xsl:function> <xsl:function name="t:get-enty-with-subtypes" as="element()+">
<xsl:param name="enty" as="element()"/> <xsl:sequence select="error()"/>
</xsl:function> <xsl:function name="t:get-enty-with-base" as="element()*">
<xsl:param name="enty" as="element()?"/> <xsl:sequence select="error()"/>
</xsl:function> <xsl:function name="t:filter-elements" as="element()*">
<xsl:param name="elements" as="element()*"/>
<xsl:param name="rel" as="xs:string"/>
<xsl:param name="type" as="xs:string"/> <xsl:sequence select="error()"/>
</xsl:function> <xsl:function name="t:get-children" as="element()*">
<xsl:param name="element" as="element()"/>
<xsl:param name="rel" as="xs:string"/>
<xsl:param name="type" as="xs:string"/> <xsl:sequence select="error()"/>
</xsl:function> <xsl:function name="t:get-required-children" as="element()+">
<xsl:param name="element" as="element()"/>
<xsl:param name="rel" as="xs:string"/>
<xsl:param name="type" as="xs:string"/> <xsl:sequence select="error()"/>
</xsl:function> <xsl:function name="t:get-required-child" as="element()">
<xsl:param name="element" as="element()"/>
<xsl:param name="rel" as="xs:string"/>
<xsl:param name="type" as="xs:string"/> <xsl:sequence select="error()"/>
</xsl:function> <xsl:function name="t:get-child" as="element()?">
<xsl:param name="element" as="element()"/>
<xsl:param name="rel" as="xs:string"/>
<xsl:param name="type" as="xs:string"/> <xsl:sequence select="error()"/>
</xsl:function> <xsl:function name="t:get-parent" as="element()">
<xsl:param name="element" as="element()"/> <xsl:sequence select="error()"/>
</xsl:function> <xsl:function name="t:get-parent" as="element()*">
<xsl:param name="element" as="element()"/>
<xsl:param name="rel" as="xs:string"/>
<xsl:param name="type" as="xs:string"/> <xsl:sequence select="error()"/>
</xsl:function> <xsl:function name="t:related" as="element()*">
<xsl:param name="element" as="element()"/>
<xsl:param name="rel" as="xs:string"/>
<xsl:param name="type" as="xs:string"/> <xsl:sequence select="error()"/>
</xsl:function> <xsl:function name="t:model-related" as="element()*">
<xsl:param name="model-id" as="xs:string"/>
<xsl:param name="element" as="element()"/>
<xsl:param name="rel" as="xs:string"/>
<xsl:param name="type" as="xs:string"/> <xsl:sequence select="error()"/>
</xsl:function> <xsl:function name="t:deref" as="element()">
<xsl:param name="element" as="element()"/> <xsl:sequence select="error()"/>
</xsl:function> <xsl:function name="t:model-deref" as="element()">
<xsl:param name="model-id" as="xs:string"/>
<xsl:param name="element" as="element()"/> <xsl:sequence select="error()"/>
</xsl:function> <xsl:function name="t:get-enty-subtypes" as="element()+">
<xsl:param name="enty" as="element()"/>
<xsl:param name="collected" as="element()*"/> <xsl:sequence select="error()"/>
</xsl:function> <xsl:function name="t:get-enty-subtypes" as="element()*">
<xsl:param name="enties" as="element()*"/>
<xsl:param name="index" as="xs:integer"/>
<xsl:param name="collected" as="element()*"/> <xsl:sequence select="error()"/>
</xsl:function> <xsl:function name="t:get-enty-with-base" as="element()*">
<xsl:param name="enty" as="element()?"/>
<xsl:param name="collected" as="element()*"/> <xsl:sequence select="error()"/>
</xsl:function> <xsl:function name="t:get-enty-attributes" as="item()*">
<xsl:param name="enty" as="element()"/>
</xsl:function> <xsl:function name="t:get-control-by-name" as="element()*">
<xsl:param name="code" as="element()"/>
<xsl:param name="name" as="xs:string"/>
</xsl:function> <xsl:function name="t:get-program-neg-expression" as="element()">
<xsl:param name="expression" as="element()"/> <neg/>
</xsl:function> <xsl:function name="t:get-expression-program-type" as="item()+">
<xsl:param name="expression" as="element()"/> <xsl:sequence select="'1'"/>
</xsl:function> <xsl:function name="t:get-program-type-name" as="xs:string?">
<xsl:param name="closure" as="item()+"/>
</xsl:function> <xsl:function name="t:get-program-type-length" as="xs:integer?">
<xsl:param name="closure" as="item()+"/>
</xsl:function> <xsl:function name="t:get-program-type-precision" as="xs:integer?">
<xsl:param name="closure" as="item()+"/>
</xsl:function> <xsl:function name="t:get-program-type-element" as="element()">
<xsl:param name="type" as="item()+"/> <type/>
</xsl:function>

</xsl:stylesheet>

I hope you can reproduce the problem on your side.
Input is any xml.

It results in:

java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
    at java.util.ArrayList.rangeCheck(ArrayList.java:653)
    at java.util.ArrayList.get(ArrayList.java:429)
    at net.sf.saxon.expr.XPathContextMajor.getTargetComponent(XPathContextMajor.java:690)
    at net.sf.saxon.expr.UserFunctionCall.getTargetComponent(UserFunctionCall.java:561)
    at net.sf.saxon.expr.UserFunctionCall.process(UserFunctionCall.java:532)
    at net.sf.saxon.expr.instruct.ElementCreator.constructElement(ElementCreator.java:450)
    at net.sf.saxon.expr.instruct.ElementCreator.evaluateItem(ElementCreator.java:390)
    at net.sf.saxon.expr.parser.ExpressionTool.evaluate(ExpressionTool.java:301)
    at net.sf.saxon.expr.instruct.LocalParam.getSelectValue(LocalParam.java:382)
    at net.sf.saxon.expr.instruct.LocalParamSetter.processLeavingTail(LocalParamSetter.java:280)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:654)
    at net.sf.saxon.expr.instruct.NamedTemplate.expand(NamedTemplate.java:283)
    at net.sf.saxon.expr.instruct.CallTemplate$CallTemplatePackage.processLeavingTail(CallTemplate.java:510)
    at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:387)
    at net.sf.saxon.expr.instruct.ApplyTemplates$ApplyTemplatesPackage.processLeavingTail(ApplyTemplates.java:567)
    at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:387)
    at net.sf.saxon.expr.instruct.ApplyTemplates$ApplyTemplatesPackage.processLeavingTail(ApplyTemplates.java:567)
    at net.sf.saxon.trans.TextOnlyCopyRuleSet.process(TextOnlyCopyRuleSet.java:67)
    at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:433)
    at net.sf.saxon.Controller.transformDocument(Controller.java:2270)
    at net.sf.saxon.Controller.transform(Controller.java:1847)
    at net.sf.saxon.s9api.Xslt30Transformer.applyTemplates(Xslt30Transformer.java:553)
    at net.sf.saxon.Transform.processFile(Transform.java:1239)
    at net.sf.saxon.Transform.doTransform(Transform.java:795)
    at net.sf.saxon.Transform.main(Transform.java:77)
java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
    at java.util.ArrayList.rangeCheck(ArrayList.java:653)
    at java.util.ArrayList.get(ArrayList.java:429)
    at net.sf.saxon.expr.XPathContextMajor.getTargetComponent(XPathContextMajor.java:690)
    at net.sf.saxon.expr.UserFunctionCall.getTargetComponent(UserFunctionCall.java:561)
    at net.sf.saxon.expr.UserFunctionCall.process(UserFunctionCall.java:532)
    at net.sf.saxon.expr.instruct.ElementCreator.constructElement(ElementCreator.java:450)
    at net.sf.saxon.expr.instruct.ElementCreator.evaluateItem(ElementCreator.java:390)
    at net.sf.saxon.expr.parser.ExpressionTool.evaluate(ExpressionTool.java:301)
    at net.sf.saxon.expr.instruct.LocalParam.getSelectValue(LocalParam.java:382)
    at net.sf.saxon.expr.instruct.LocalParamSetter.processLeavingTail(LocalParamSetter.java:280)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:654)
    at net.sf.saxon.expr.instruct.NamedTemplate.expand(NamedTemplate.java:283)
    at net.sf.saxon.expr.instruct.CallTemplate$CallTemplatePackage.processLeavingTail(CallTemplate.java:510)
    at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:387)
    at net.sf.saxon.expr.instruct.ApplyTemplates$ApplyTemplatesPackage.processLeavingTail(ApplyTemplates.java:567)
    at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:387)
    at net.sf.saxon.expr.instruct.ApplyTemplates$ApplyTemplatesPackage.processLeavingTail(ApplyTemplates.java:567)
    at net.sf.saxon.trans.TextOnlyCopyRuleSet.process(TextOnlyCopyRuleSet.java:67)
    at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:433)
    at net.sf.saxon.Controller.transformDocument(Controller.java:2270)
    at net.sf.saxon.Controller.transform(Controller.java:1847)
    at net.sf.saxon.s9api.Xslt30Transformer.applyTemplates(Xslt30Transformer.java:553)
    at net.sf.saxon.Transform.processFile(Transform.java:1239)
    at net.sf.saxon.Transform.doTransform(Transform.java:795)
    at net.sf.saxon.Transform.main(Transform.java:77)
Fatal error during transformation: java.lang.IndexOutOfBoundsException: Index: 1, Size: 1

RE: Internal error in Saxon-HE-9.7.0-5 - Added by Michael Kay 10 months ago

Thanks for your efforts. I regret my first attempts to reproduce it have been unsuccessful: I get

Type error at argument on line 15 column 30 of crash.xsl:
XTTE0570: A sequence of more than one item is not allowed as the value of variable $code
(<action/>, <call/>, ...)
in built-in template rule
A sequence of more than one item is not allowed as the value of variable $code (<action/>, <call/>, ...)

Changed the declaration of $code to say as="element()*", and the stylesheet runs to completion without error.

RE: Internal error in Saxon-HE-9.7.0-5 - Added by Michael Kay 10 months ago

FWIW, it's fairly clear from the stack trace that it's failing at the function call on line 46, where it's evaluating the default value of a local template parameter. Intuitively, that's an easy place for the code to get muddled about what the current component is. In the morning I'll do a careful code-check of that path to see if I can spot anything amiss.

RE: Internal error in Saxon-HE-9.7.0-5 - Added by Vladimir Nesterovsky 10 months ago

Editor has removed a some tags.
Please look into file attached.

main.xslt (13.2 KB)

RE: Internal error in Saxon-HE-9.7.0-5 - Added by Michael Kay 10 months ago

Thanks, but it still doesn't fail for me. I get the output

<invoke xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:t="t" xmlns="d" name="get"/>

RE: Internal error in Saxon-HE-9.7.0-5 - Added by Vladimir Nesterovsky 10 months ago

I suspected something like this, as even small changes in that xslt, like removing something that's never called, prevents the error.

I still, can confirm that I can reproduce that problem.
I'm using Saxon from maven:
http://search.maven.org/#artifactdetails%7Cnet.sf.saxon%7CSaxon-HE%7C9.7.0-5%7Cjar

RE: Internal error in Saxon-HE-9.7.0-5 - Added by Michael Kay 10 months ago

I've reproduced it now by running with the -T option.

RE: Internal error in Saxon-HE-9.7.0-5 - Added by Michael Kay 10 months ago

A patch has now been tested and committed.

RE: Internal error in Saxon-HE-9.7.0-5 - Added by Vladimir Nesterovsky 10 months ago

When can we expect it on maven?

RE: Internal error in Saxon-HE-9.7.0-5 - Added by Michael Kay 10 months ago

We tend to do a new maintenance release every 4-6 weeks. Can't commit to firm dates.

RE: Internal error in Saxon-HE-9.7.0-5 - Added by Vladimir Nesterovsky 9 months ago

On you site a couple of days ago you have published that Saxon 9.7.0.6 is available.
For some reason I cannot see it on maven.
E.g. http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22net.sf.saxon%22%20AND%20a%3A%22Saxon-HE%22

Can you please check it?

RE: Internal error in Saxon-HE-9.7.0-5 - Added by O'Neil Delpratt 9 months ago

Hi, the maven deployment will be done shortly. Sorry for the delay.

    (1-15/15)

    Please register to reply