You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Tim Pizey <ti...@paneris.oc.uk> on 1999/12/02 17:27:42 UTC
os-windows/5408: getResourceAsStream throws NullPointerException in JServServletManager
>Number: 5408
>Category: os-windows
>Synopsis: getResourceAsStream throws NullPointerException in JServServletManager
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: apache
>State: open
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Thu Dec 2 08:30:00 PST 1999
>Last-Modified:
>Originator: tim@paneris.oc.uk
>Organization:
apache
>Release: JServ 1.1b3
>Environment:
Win 95b, Apache 1.3.9, Apache Jserv 1.1b3, webmacro 0.89.1
>Description:
Webmacro servlet throws a NullPointerException on init.
May be connected with bug no 3329
>How-To-Repeat:
It only affects webmacro servlets, /jserv/ and /servlets/IsItWorking are fine.
Maybe its my fault.
Sorry if it is.
>Fix:
Commenting out lines 548 to 560 in JServServletManager.java did it for me.
I think that NullPointerException should be being ignored, but am not worthy to
suggest such.
/*
try {
InputStream argsIn =
loader.getResourceAsStream(classname.replace('.',
File.separatorChar) + ".initArgs");
if (argsIn != null) {
try {
initargs.load(new BufferedInputStream(argsIn));
} finally {
argsIn.close();
}
}
} catch(IOException ignored) {}
*/
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, you need]
[to include <ap...@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! ]