Project

Profile

Help

Bug #5719

closed

java.lang.NullPointerException: Cannot invoke "net.sf.saxon.str.UnicodeString.length32()" because "s" is null

Added by Jeremy Odekirk over 1 year ago. Updated over 1 year ago.

Status:
Duplicate
Priority:
Low
Assignee:
Category:
Byte code generation
Sprint/Milestone:
-
Start date:
2022-10-25
Due date:
% Done:

0%

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

Description

Upgrading from Saxon 10.5 EE to 11.4 EE causes transform to fail.

I tried using process of elimination on the data but couldn't figure out what's causing the issue. Saxon 10.5 works but 11.1 and 11.4 give the same errors.

The main XSL is Mercury_Parts_Catalog.xsl.

Saxon 10 works but Saxon 11 errors out: java -cp C:\Mercury_Stylesheets\saxon\saxon-ee-11.4.jar; net.sf.saxon.Transform -o:"d:\temp\outSaxon.fo" -s:"D:\temp\pcat_saxon11.4_sample\sampleXML\PCat test 98291983_fra_1_tiny_block.xml" -xsl:"C:\Mercury_Stylesheets\Mercury_Parts_Catalog.xsl" -warnings:silent java.lang.NullPointerException: Cannot invoke "net.sf.saxon.str.UnicodeString.length32()" because "s" is null … java.lang.RuntimeException: Internal error evaluating template rule at line 2209 in module file:/C:/Mercury_Stylesheets/Mercury_Parts_parts_list.xsl … Fatal error during transformation: java.lang.RuntimeException: Internal error evaluating template rule at line 26 in module file:/C:/Mercury_Stylesheets/Mercury_Parts_Catalog.xsl


Files

pcat_saxon11.4_sample.zip (64 KB) pcat_saxon11.4_sample.zip Jeremy Odekirk, 2022-10-25 17:07

Please register to edit this issue

Also available in: Atom PDF