> Hmm. Really? The transformer is created outside the loop

Oops, I was misreading the code.  Got up too early this morning, I guess.

-scott




                                                                                
                                                       
                      "Frank E. Weiss"                                          
                                                       
                      <[EMAIL PROTECTED]>        To:                            
                                                         
                                               cc:       [EMAIL PROTECTED], 
(bcc: Scott Boag/Cambridge/IBM)                 
                      04/02/2002 12:28         Subject:  Re: Stylesheet Reuse 
NullPointerException                                     
                      PM                                                        
                                                       
                                                                                
                                                       
                                                                                
                                                       




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.






Reply via email to