Hi,
could anyone help with the exception I am getting below?
I am new to XSLTC so sorry if this problem doesnt belong in this group.
thanks.
de.fub.bytecode.generic.ClassGenException: Branch target offset too large
for short
at
de.fub.bytecode.generic.BranchInstruction.dump(BranchInstruction.java:45,
Compiled Code)
at
de.fub.bytecode.generic.InstructionList.getByteCode(InstructionList.java:925
, Compiled Code)
at de.fub.bytecode.generic.MethodGen.getMethod(MethodGen.java:530,
Compiled Code)
at
org.apache.xalan.xsltc.compiler.Mode.compileApplyTemplates(Mode.java:723,
Compiled Code)
at
org.apache.xalan.xsltc.compiler.Stylesheet.compileModes(Stylesheet.java:399,
Compiled Code)
at
org.apache.xalan.xsltc.compiler.Stylesheet.translate(Stylesheet.java:501,
Compiled Code)
at org.apache.xalan.xsltc.compiler.XSLTC.compile(XSLTC.java:211)
at
org.apache.xalan.xsltc.runtime.TransformerFactoryImpl.newTransformer(Transfo
rmerFactoryImpl.java:235)
*****************
*from this code:*
*****************
System.setProperty("javax.xml.transform.TransformerFactory","org.apache.xala
n.xsltc.runtime.TransformerFactoryImpl");
TemplateLoader theLoader = new TemplateLoader();
String stylesheet =
theLoader.getFileLocation(baseRoot,thePOS,theLocale,templateName);
templatefilepath = theLoader.getTemplateFilePath();
Templates template = null;
String output = new String();
try
{
String xslInURI = stylesheet;
String xmlInURI = templatefilepath;
TransformerFactory tFactory = TransformerFactory.newInstance();
Transformer transformer = tFactory.newTransformer(new
StreamSource(xslInURI)); //THROWS EXCEPTION HERE
transformer.transform(new StreamSource(xmlInURI),new
StreamResult(output));