DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18683>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18683

XMLDB Source registers driver against DatabaseManager for every toSAX() call

           Summary: XMLDB Source registers driver against DatabaseManager
                    for every toSAX() call
           Product: Cocoon 2
           Version: Current CVS
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Other
         Component: general components
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


In some experiments I was doing, I was using Lucene indexing on some pages with
XMLDB driven content. During indexing it appears that all available memory is
consumed within a short period until an OutOfMemoryError is produced, bringing
the entire process to a halt. 

The cause seems to be a bad semantic in the XMLDBSource which assumes that the
database driver must be registered with the DatabaseManager to be "connected" to
the database.

This issue was previously posted on the developer list 
see thread:

 http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=102529069023501&w=2

I believe Stephan posted a possible fix for this in the scratchpad in late June
2002. From what I read of the XMLDB API, the patch seems to do the trick.

I have created a patch for the more recent CVS version of Cocoon, as the
corrected classes he placed in scratchpad back then are using old interfaces.

Reply via email to