You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xalan.apache.org by sc...@us.ibm.com on 2002/04/02 16:59:23 UTC
Re: Stylesheet Reuse NullPointerException
Hi Frank. I just wanted to give you a status on this. I've spent the
morning working on it. I can reproduce it from the DOS command prompt, but
not in my debugger. The transformations in your test are not being run
concurrently, so it's got nothing to do with that. Also, your tests are
not reusing the transformer... you create a new transformer every time...
so it's got nothing to do with that either. Nothing with incremental
threads should be occurring, so I don't think it has anything to do with
that. The bug is a reference to a DTM that does not exist, and it is
indeed an RTF, but I don't see where or why it would have been trimmed, and
when I comment out the RTF trim code in the call-template code, the bug
still occurs. Because the bug seems timing dependent or environment
dependent, I suspect a garbage value as the cause... though this kind of
thing is really rare in Java. So, in short, I don't have a real clue yet,
but am eliminating possibilities, which is a start, I guess.
I'll keep you updated on progress.
-scott
"Frank E. Weiss"
<fr...@well.com> To: scott_boag@us.ibm.com
cc: joseph_kesselman@us.ibm.com
04/01/2002 10:29 Subject: Re: Stylesheet Reuse NullPointerException
AM
I've attached a test case to Bugzilla 7622. As you know, either
NullPointerException or ArrayIndexOutOfBoundException are
arising. This test case creates ArrayIndexOutOfBoundException, although as
I was stripping down the stylesheet,
NullPointerException also manifested.
Scott, I hope this test case test will help you track down this bug easier.
I'm here to help you any way.
-- Frank Weiss
Re: Stylesheet Reuse NullPointerException
Posted by "Frank E. Weiss" <fr...@well.com>.
Scott, thanks for the update.
> I can reproduce it from the DOS command prompt, but
> not in my debugger.
Ouch. Maybe I'll try runiing it on Linux and see if it reproduces. Sounds like as, Joseph said, a timing problem.
> Also, your tests are not reusing the transformer... you create a new transformer every time...
> so it's got nothing to do with that either.
Hmm. Really? The transformer is created outside the loop
Transformer transformer = tfactory.newTransformer(new StreamSource(xslID));
and inside the loop the call
transformer.transform( new StreamSource(sourceID),
new StreamResult("reuse00"));
I thought that's the way the example shows transformer reuse.