Re: Stylesheet Reuse NullPointerException

2002-04-02 Thread scott_boag
Well, then we would also have to track the DTMManager in XRTreeFrag, which is already too bloated with member variables. Each instance could make a new member of XPathContext... this might be the better choice. But a bigger change than I want to make right now. For right now, I just put in a c

Re: Stylesheet Reuse NullPointerException

2002-04-02 Thread scott_boag
Subject: Re: Stylesheet Reuse

Re: Stylesheet Reuse NullPointerException

2002-04-02 Thread Joseph Kesselman/CAM/Lotus
Scott's diagnosis makes sense to me. Simplest fix might be for each transform() call to allocate a new DTMManager, so the late finalizers could negotiate with the old one without any interaction with the new transformation. Best fix might be to improve our scoping to eliminate the need for the f

Re: Stylesheet Reuse NullPointerException

2002-04-02 Thread scott_boag
L PROTECTED]>To: cc: [EMAIL PROTECTED], (bcc: Scott Boag/Cambridge/IBM) 04/02/2002 12:28 Subject: Re: Stylesheet Reuse NullPointerException

Re: Stylesheet Reuse NullPointerException

2002-04-02 Thread scott_boag
CTED]>To: cc: [EMAIL PROTECTED], (bcc: Scott Boag/Cambridge/IBM) 04/02/2002 12:28 Subject: Re: Stylesheet Reuse NullPointerException

Re: Stylesheet Reuse NullPointerException

2002-04-02 Thread Frank E. Weiss
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 > t

Re: Stylesheet Reuse NullPointerException

2002-04-02 Thread Joseph Kesselman/CAM/Lotus
> 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 Might be worth taking another look at the finalizer for XRTreeFrag. We had a timing problem there since the finalizer does run in a second

Re: Stylesheet Reuse NullPointerException

2002-04-02 Thread scott_boag
IL PROTECTED]>To: [EMAIL PROTECTED] cc: [EMAIL PROTECTED] 04/01/2002 10:29 Subject: Re: Stylesheet Reuse NullPointerException

Re: Stylesheet Reuse NullPointerException

2002-03-27 Thread scott_boag
OTECTED]>To: [EMAIL PROTECTED] cc: [EMAIL PROTECTED] 03/19/2002 10:05 Subject: Re: Stylesheet Reuse NullPointerException

Re: Stylesheet Reuse NullPointerException

2002-03-19 Thread scott_boag
<[EMAIL PROTECTED]>To: [EMAIL PROTECTED] cc: (bcc: Scott Boag/Cambridge/IBM) 03

Re: Stylesheet Reuse NullPointerException

2002-03-19 Thread Frank E. Weiss
> The NullPointer occurs within a named template at > org.apache.xpath.objects.XRTreeFrag.xstr(). The member variable m_dtm > is null and m_allowRelease is true. I'm assuming either detach() or > destruct() was called. It could be a race or some > bad laogic that leads to xstr() being called afte