xml-xalan-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 5609] - Global Variable Initialization across Multiple Transformations
Date Wed, 02 Jan 2002 23:02:45 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5609>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5609

Global Variable Initialization across Multiple Transformations





------- Additional Comments From howejr77@yahoo.com  2002-01-02 15:02 -------
A work around for this was to make the global variables local and pass them 
around to the templates where they were used. This workaround has worked for me 
in version 2_2_D10 but the following is a stack trace received when running the 
same scenario under 2_2_D14. 


javax.xml.transform.TransformerException: java.lang.NullPointerException
        at org.apache.xalan.transformer.TransformerImpl.transformNode(Transforme
rImpl.java:1230)
        at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImp
l.java:642)
        at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImp
l.java:1092)
        at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImp
l.java:1070)
        at ddrrjx.xml.DOMTransformer.transformDOMs(DOMTransformer.java)
        at ddrrjx.ReportGenerator.main(ReportGenerator.java)
---------
java.lang.NullPointerException
        at org.apache.xpath.objects.XRTreeFrag.xstr(XRTreeFrag.java:255)
        at org.apache.xpath.objects.XRTreeFragSelectWrapper.xstr(XRTreeFragSelec
tWrapper.java:87)
        at org.apache.xpath.objects.XObject.dispatchCharactersEvents(XObject.jav
a:170)
        at org.apache.xpath.Expression.executeCharsToContentHandler(Expression.j
ava:303)
        at org.apache.xalan.templates.ElemValueOf.execute(ElemValueOf.java:319)
        at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Tr
ansformerImpl.java:2186)
        at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResul
t.java:710)
        at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Tr
ansformerImpl.java:2186)
        at org.apache.xalan.templates.ElemTemplate.execute(ElemTemplate.java:430
)
        at org.apache.xalan.templates.ElemCallTemplate.execute(ElemCallTemplate.
java:279)
        at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Tr
ansformerImpl.java:2186)
        at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResul
t.java:710)
        at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Tr
ansformerImpl.java:2186)
        at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Tran
sformerImpl.java:2012)
        at org.apache.xalan.transformer.TransformerImpl.transformNode(Transforme
rImpl.java:1175)
        at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImp
l.java:642)
        at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImp
l.java:1092)
        at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImp
l.java:1070)
        at ddrrjx.xml.DOMTransformer.transformDOMs(DOMTransformer.java)
        at ddrrjx.ReportGenerator.main(ReportGenerator.java)

Mime
View raw message