www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Petter "Mhln" <petter.mah...@chello.se>
Subject mod_jserv/6719: NullPointerException when requesting classes not in the CLASSPATH
Date Sat, 21 Oct 2000 17:01:08 GMT

>Number:         6719
>Category:       mod_jserv
>Synopsis:       NullPointerException when requesting classes not in the CLASSPATH
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    jserv
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Sat Oct 21 10:10:00 PDT 2000
>Originator:     petter.mahlen@chello.se
>Release:        1.3.12
I am running Windows 98, but that's hardly relevant.
I have a servlet that creates a helper class (QueryResponse) to analyse the body of a POST
request. That body is an XML document, so I have been using Sun's Jaxp reference implementation
to parse the reqest. In the jserv.properties (wrapper.classpath) file, the path to the Jaxp
implementation was incorrect (a space too much). The following call caused a NullPointerException
to be thrown:

QueryReport qr = new QueryReport(param1, param2);

It's an error on my side, but the error reporting should be improved.
See above
A couple of things would be good: 
- first, when loading the jserv.properties file, verify that each classpath is an existing
directory (in wrapper_config_classpath(), I guess)
- second, if there is a run-time error, throw an exception that gives more information. I
haven't looked for where this should happen.
 [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