[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: RE: supposed timing problem

Subject: RE: RE: supposed timing problem
From: Jay Burgess <jburgess@xxxxxxxxxxxxxx>
Date: Wed, 30 Jan 2002 13:37:45 -0600
java javax timing problems
To wrap-up my thread, once I knew that my problem wasn't XSL-related, I turned to the Xalan bug database and found what appears to be the problem I've encountered. Bug 5609 is still open and says:

Initial report (28-Dec-2001): When using a single Transformer object to transform multiple XML documents, if the XSLT contains a global <xsl:variable> declaration, the variable will be assigned a value from the first transformation that occurs. This value will then be applied to all subsequent transformations even though the value initially assigned the variable was from a separate XML document.

Follow-up (2-Jan-2002): 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

Follow-up (7-Jan-2002): OK, is it just me, or is re-using transformers totally broken today (07-Jan-02)?
TestID: Bugzilla5609.java
Running the new Bugzilla5609.java test the first transform runs fine but the second one always throws an exception: javax.xml.transform.TransformerException: java.lang.NullPointerException

I'm convinced this is my problem, as I'm re-using a transformer, Sun's XML Pack uses 2_2_D14, and I'm getting the same NullPointerException. Now, on to debugging Xalan...



-----Original Message-----
From: Jay Burgess [mailto:jburgess@xxxxxxxxxxxxxx]
Sent: Wednesday, January 30, 2002 10:48 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  RE: supposed timing problem

Thanks to you (and David McNally in a previous reply) for the suggestion. I'll do that now. And sorry for not posting a subject line--I hadn't had my coffee yet.

BTW, I'm using Xalan from Sun's Java XML Pack (Winter 2001).  Everything
seemed to work fine before changing the version of Xalan.  I'll be back if
I have more questions.


-----Original Message-----
From: Michael Kay [mailto:michael.h.kay@xxxxxxxxxxxx]
Sent: Wednesday, January 30, 2002 10:39 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  RE: supposed timing problem

> The reason I'm > asking is that > it doesn't always work, and in the cases it fails, it appears > like the > "value2" variable is trying to initialize before "value1" is > fully defined > (timing problem?).

Which processor are you using?

If you suspect a processor bug, the first thing to do is to try another

Mike Kay

XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.