Note 1273115 - Size limitation for XSLT stylesheets

Version / Date 5 / 2008-11-12
Priority Correction with medium priority
Category Release planning information
Primary Component BC-JVM SAP Java Virtual Machine
Secondary Components


Document transformations using large XSLT stylesheets fail with Java exception " Branch target offset too large for short" when used with SAP JVM 5.1, 6.1 or other derivates of Sun's JDK 5 or 6 (e.g the HP JDK 1.5). They formerly worked with JDKs of version 1.4.2.

Other terms

SAP NetWeaver PI 7.1
"Error initializing XSLT Mode:; caused by javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet"

Reason and Prerequisites

Template definitions contained in XSLT stylesheets are compiled by SAP JVM's XSLT compiler "Xalan" into Java methods for faster execution of transformations. Java bytecode branch instructions contained in these Java methods are limited to 32K offsets. Large template definitions can now lead to very large Java methods, where the branch offset would need to be larger than 32K. Therefore these stylesheets cannot be compiled to Java methods and therefore cannot be used for transformations.

Solution (SAP Service marketplace login required)

Key words :    , each>  , newelementa99>  , newelementa0>  , smaller templates, large template,

Affected Releases
Software Component Release From Release To Release And subsequent

Related Notes
1362176Upgrade to SAP NW 7.1 EHP 1 for banking services 7.0 and 8.0
1252365Upgrades based on SAP NetWeaver 7.1 including EHP 1
1061649Upgrade to SAP NetWeaver Process Integration 7.1