www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Hutchison <j...@inst.strykercorp.com>
Subject mod_jserv/5602: AdaptiveClassLoader will not load resource from zipfile
Date Tue, 18 Jan 2000 21:30:21 GMT

>Number:         5602
>Category:       mod_jserv
>Synopsis:       AdaptiveClassLoader will not load resource from zipfile
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    jserv
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Tue Jan 18 13:40:00 PST 2000
>Originator:     jhut@inst.strykercorp.com
>Release:        Apache 1.3.9 + JServ 1.1
Redhat 6.1 Linux
Linux narwhal.inst.strykercorp.com 2.2.12-20smp #1 SMP Mon Sep 27 10:34:45 EDT 1999 i686 unknown
java full version "JDK 1.1.8 IBM build l118-19991013 (JIT enabled: jitc)"
I've found a bug in AdaptiveClassLoader.loadResourceFromZipfile. This
method returns an InputStream with zipfile.getInputStream from within the
main block of a try/catch/finally statement and then calls zipfile.close
from within the finally block of the same.  When I commented out the
finally block of the try/catch/finally, it works fine.  (This is how it
was up through 1.1b3.)

Grossly paraphrased it's doing this:

try {
        return zipfile.getInputStream(entry);
} catch (IOException ex) {
        return null;
} finally {

Attempt to load property file from repository jar file.
Remove finally block, zipfile should close when gc'd.
 [In order for any reply to be added to the PR database, you need]
 [to include <apbugs@Apache.Org> in the Cc line and make sure the]
 [subject line starts with the report component and number, with ]
 [or without any 'Re:' prefixes (such as "general/1098:" or      ]
 ["Re: general/1098:").  If the subject doesn't match this       ]
 [pattern, your message will be misfiled and ignored.  The       ]
 ["apbugs" address is not added to the Cc line of messages from  ]
 [the database automatically because of the potential for mail   ]
 [loops.  If you do not include this Cc, your reply may be ig-   ]
 [nored unless you are responding to an explicit request from a  ]
 [developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]

View raw message