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
Subject: Re: Stylesheet Reuse
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
L PROTECTED]>To:
cc: [EMAIL PROTECTED],
(bcc: Scott Boag/Cambridge/IBM)
04/02/2002 12:28 Subject: Re: Stylesheet Reuse
NullPointerException
CTED]>To:
cc: [EMAIL PROTECTED],
(bcc: Scott Boag/Cambridge/IBM)
04/02/2002 12:28 Subject: Re: Stylesheet Reuse
NullPointerException
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
> 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
IL PROTECTED]>To: [EMAIL PROTECTED]
cc: [EMAIL PROTECTED]
04/01/2002 10:29 Subject: Re: Stylesheet Reuse
NullPointerException
OTECTED]>To: [EMAIL PROTECTED]
cc: [EMAIL PROTECTED]
03/19/2002 10:05 Subject: Re: Stylesheet Reuse
NullPointerException
<[EMAIL PROTECTED]>To: [EMAIL PROTECTED]
cc: (bcc: Scott
Boag/Cambridge/IBM)
03
> 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
11 matches
Mail list logo