You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Bruce Robertson <br...@mta.ca> on 2003/05/31 22:00:10 UTC
recommed upgrading to Xalan 2.5 when using document() regularly
I've found that under JDK 1.4 my Cocoon 2.0.4 based project (http://heml.mta.ca)
tended to spawn a huge number of open files and after a couple of days of
service would:
a) crash with a 'too many open files' jvm error
b) start throwing 'unknown xpath error's in unlikely places.
By checking with the unix 'lsof' utility, I found that the problem was with
files accessed through xsl's document() function. (This isn't a function you
should get into the habit of using with Cocoon, but at one point I wanted my
xslts to work outside Cocoon, too. I'll probably change things when I rewrite
that section.) Those files never seemed to get properly closed, except with
garbage collection.
The lastest version of Xalan has a fix for this bug
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4858
which directly relates to point b) above. So I replaced the stock Xalan in
Cocoon 2.0.4 with Xalan 2.5 and the necessary Xerces. And the result was ...
some of my xslt threw new errors :-( In particular, it looks like the xpath
parsing is more strict, which is probably a good thing. I fixed those, and, hey,
it works. I tried hammering the server with requests, and no failure so far.
A happy outcome of this is that the part of my code using document() calls,
which had been unreasonably slow, now runs much faster. This is not a measured
result, but I'm certain it's true.
The upshot is that people who, against advice, use document() in their
Cocoon-processed xslt should look into swapping in the Xalan 2.5 jar.
Yrs,
--
Bruce Robertson,
Dept. of Classics, Mount Allison University
http://heml.mta.ca
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org
Re: recommed upgrading to Xalan 2.5 when using document() regularly
Posted by Yury Mikhienko <Yu...@mobicomk.ru>.
On Thu, 05 Jun 2003 19:31:01 +0200
Joerg Heinicke <jo...@gmx.de> wrote:
> Antonio Gallardo wrote:
> >>Do you think the bug is fixed in current Xalan? If it's not we have it
> >>in Cocoon 2.0 too ;-)
> >
> > I am not sure about this, but people was waiting for the new Xalan that
> > will solve this problem.
>
> No, it's not fixed. I tested it. Moved the bug to the Xalan buglist.
>
> > BTW, there is also a discusion about change Xalan
> > also in 2.0.
>
> Isn't this exactly what I have done? :-)
>
Probably I'm wrong, but with Xalan 2.5.1 XMLDBSource component does not work properly also.
For example, with query like 'documents[not(@id = 1)]' I get the empty collection,
but if I do not use the XSL functions, I get the collection of documents fine.
And I had to roll back to the Xalan 2.3.1 :((
--
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org
Re: recommed upgrading to Xalan 2.5 when using document() regularly
Posted by Joerg Heinicke <jo...@gmx.de>.
Antonio Gallardo wrote:
>>Do you think the bug is fixed in current Xalan? If it's not we have it
>>in Cocoon 2.0 too ;-)
>
> I am not sure about this, but people was waiting for the new Xalan that
> will solve this problem.
No, it's not fixed. I tested it. Moved the bug to the Xalan buglist.
> BTW, there is also a discusion about change Xalan
> also in 2.0.
Isn't this exactly what I have done? :-)
Joerg
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org
Re: recommed upgrading to Xalan 2.5 when using document() regularly
Posted by Antonio Gallardo <ag...@agsoftware.dnsalias.com>.
Joerg Heinicke dijo:
> Do you think the bug is fixed in current Xalan? If it's not we have it
> in Cocoon 2.0 too ;-)
I am not sure about this, but people was waiting for the new Xalan that
will solve this problem. BTW, there is also a discusion about change Xalan
also in 2.0. I dont use 2.0 then I dont know is there is the same problem.
Antonio.
>
> Joerg
>
> Antonio Gallardo wrote:
>> Joerg Heinicke dijo:
>>
>>>Antonio Gallardo wrote:
>>>
>>>>Joerg Heinicke dijo:
>>>>
>>>>>I upgraded Xalan to 2.5.1 and Xerces to 2.4.0 in the Cocoon 2.0 CVS,
>>>>> so they should be in the next Cocoon 2.0.x release - I guess the 5
>>>>> comes after the 4 ;-)
>>>>
>>>>Cool! I think we can close the bug related to document() function!
>>>
>>>Hello Anotnio,
>>>
>>>to which one you refer?
>>
>>
>> This?
>> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20381
>>
>> Antonio
>>
>>>Joerg
>
> --
>
> System Development
> VIRBUS AG
> Fon +49(0)341-979-7419
> Fax +49(0)341-979-7409
> joerg.heinicke@virbus.de
> www.virbus.de
>
>
> --------------------------------------------------------------------- To
> unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org
Re: recommed upgrading to Xalan 2.5 when using document() regularly
Posted by Joerg Heinicke <jo...@gmx.de>.
Do you think the bug is fixed in current Xalan? If it's not we have it in
Cocoon 2.0 too ;-)
Joerg
Antonio Gallardo wrote:
> Joerg Heinicke dijo:
>
>>Antonio Gallardo wrote:
>>
>>>Joerg Heinicke dijo:
>>>
>>>>I upgraded Xalan to 2.5.1 and Xerces to 2.4.0 in the Cocoon 2.0 CVS,
>>>>so they should be in the next Cocoon 2.0.x release - I guess the 5
>>>>comes after the 4 ;-)
>>>
>>>Cool! I think we can close the bug related to document() function!
>>
>>Hello Anotnio,
>>
>>to which one you refer?
>
>
> This?
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20381
>
> Antonio
>
>>Joerg
--
System Development
VIRBUS AG
Fon +49(0)341-979-7419
Fax +49(0)341-979-7409
joerg.heinicke@virbus.de
www.virbus.de
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org
Re: recommed upgrading to Xalan 2.5 when using document() regularly
Posted by Antonio Gallardo <ag...@agsoftware.dnsalias.com>.
Joerg Heinicke dijo:
> Antonio Gallardo wrote:
>> Joerg Heinicke dijo:
>>>I upgraded Xalan to 2.5.1 and Xerces to 2.4.0 in the Cocoon 2.0 CVS,
>>> so they should be in the next Cocoon 2.0.x release - I guess the 5
>>> comes after the 4 ;-)
>>
>> Cool! I think we can close the bug related to document() function!
>
> Hello Anotnio,
>
> to which one you refer?
This?
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20381
Antonio
>
> Joerg
>
>
> --------------------------------------------------------------------- To
> unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org
Re: recommed upgrading to Xalan 2.5 when using document() regularly
Posted by Joerg Heinicke <jo...@gmx.de>.
Antonio Gallardo wrote:
> Joerg Heinicke dijo:
>>I upgraded Xalan to 2.5.1 and Xerces to 2.4.0 in the Cocoon 2.0 CVS, so
>>they should be in the next Cocoon 2.0.x release - I guess the 5 comes
>>after the 4 ;-)
>
> Cool! I think we can close the bug related to document() function!
Hello Anotnio,
to which one you refer?
Joerg
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org
Re: recommed upgrading to Xalan 2.5 when using document() regularly
Posted by Antonio Gallardo <ag...@agsoftware.dnsalias.com>.
Joerg Heinicke dijo:
> Hello Bruce,
>
> I upgraded Xalan to 2.5.1 and Xerces to 2.4.0 in the Cocoon 2.0 CVS, so
> they should be in the next Cocoon 2.0.x release - I guess the 5 comes
> after the 4 ;-)
Cool! I think we can close the bug related to document() function!
Antonio Gallardo.
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org
Re: recommed upgrading to Xalan 2.5 when using document() regularly
Posted by Bruce Robertson <br...@mta.ca>.
Quoting Joerg Heinicke <jo...@gmx.de>:
> Hello Bruce,
>
> I upgraded Xalan to 2.5.1 and Xerces to 2.4.0 in the Cocoon 2.0 CVS, so
> they should be in the next Cocoon 2.0.x release - I guess the 5 comes
> after the 4 ;-)
>
> Joerg
>
It's an indication of Cocoon 2.0.x's excellence that I'm delighted to hear
there will be continued releases of it!
After a few days of traffic, including a Freshmeat announcement which generates
a fair number of hits, the problem I described in the parent post has not
recurred and no nasties have appeared in its place. Xalan 2.5 looks like a
winner, and I'm glad it will be stock in future releases.
Yrs,
--
Bruce Robertson,
Dept. of Classics, Mount Allison University
http://heml.mta.ca
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org
Re: recommed upgrading to Xalan 2.5 when using document() regularly
Posted by Joerg Heinicke <jo...@gmx.de>.
Hello Bruce,
I upgraded Xalan to 2.5.1 and Xerces to 2.4.0 in the Cocoon 2.0 CVS, so
they should be in the next Cocoon 2.0.x release - I guess the 5 comes
after the 4 ;-)
Joerg
Bruce Robertson wrote:
> I've found that under JDK 1.4 my Cocoon 2.0.4 based project (http://heml.mta.ca)
> tended to spawn a huge number of open files and after a couple of days of
> service would:
> a) crash with a 'too many open files' jvm error
>
> b) start throwing 'unknown xpath error's in unlikely places.
>
> By checking with the unix 'lsof' utility, I found that the problem was with
> files accessed through xsl's document() function. (This isn't a function you
> should get into the habit of using with Cocoon, but at one point I wanted my
> xslts to work outside Cocoon, too. I'll probably change things when I rewrite
> that section.) Those files never seemed to get properly closed, except with
> garbage collection.
>
> The lastest version of Xalan has a fix for this bug
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4858
> which directly relates to point b) above. So I replaced the stock Xalan in
> Cocoon 2.0.4 with Xalan 2.5 and the necessary Xerces. And the result was ...
> some of my xslt threw new errors :-( In particular, it looks like the xpath
> parsing is more strict, which is probably a good thing. I fixed those, and, hey,
> it works. I tried hammering the server with requests, and no failure so far.
>
> A happy outcome of this is that the part of my code using document() calls,
> which had been unreasonably slow, now runs much faster. This is not a measured
> result, but I'm certain it's true.
>
> The upshot is that people who, against advice, use document() in their
> Cocoon-processed xslt should look into swapping in the Xalan 2.5 jar.
>
> Yrs,
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org