Project

Profile

Help

Bug #1738

closed

Null pointer exception when bytecode is on

Added by O'Neil Delpratt over 11 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
Category:
Byte code generation
Sprint/Milestone:
-
Start date:
2013-04-23
Due date:
% Done:

100%

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

Description

Bug reported by Peter Rushforth:

I've upgraded a project from saxon 9.3.0.8 to 9.4.0.7 and I'm running into an exception that works using using the former but not the latter.

Here's the stack trace

java.lang.NullPointerException

    at CE_atom_entry_28505582.process(:291)

    at com.saxonica.bytecode.CompiledExpression.process(CompiledExpression.java:60)

    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:617)

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

    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:301)

    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:254)

    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:615)

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

    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:301)

    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:254)

    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:615)

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

    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:301)

    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:254)

    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:615)

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

    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:301)

    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:254)

    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:615)

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

    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:301)

    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:254)

    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:615)

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

    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:301)

    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:254)

    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:615)

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

    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:301)

    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:254)

    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:615)

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

    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:301)

    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:254)

    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:615)

    at net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:609)

    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:615)

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

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

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

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

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

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

    at org.atomserver.abdera.TransformBaseResponseContext.transfrom(TransformBaseResponseContext.java:134)

The xml document and a modified stylesheet are attached.


Files

iso2html.xsl (159 KB) iso2html.xsl Modified xsl to prevent exceeding method length limits in bytecode generation O'Neil Delpratt, 2013-04-23 16:47
iso.xml (47.8 KB) iso.xml O'Neil Delpratt, 2013-04-23 16:47

Please register to edit this issue

Also available in: Atom PDF