tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rashmi Rubdi" <rashmi....@gmail.com>
Subject Re: NullPointerException with Parameters.getParameterValues(String)
Date Tue, 10 Apr 2007 04:35:33 GMT
Can you also post the HTML Form? May be it has some syntax errors.

Someone has reported a bug that looks a bit similar but is not the same:
http://mail-archives.apache.org/mod_mbox/tomcat-dev/200401.mbox/%3C20040122133309.29667.qmail@nagoya.betaversion.org%3E

-Rashmi

On 4/9/07, Rahul Thakur <rahul.thakur.xdev@gmail.com> wrote:
> root cause java.lang.NullPointerException
>         java.util.Hashtable.get(Hashtable.java:333)
>         org.apache.tomcat.util.http.Parameters.getParameterValues(Parameters.java:193)
>         org.apache.tomcat.util.http.Parameters.getParameter(Parameters.java:238)
>         org.apache.catalina.connector.Request.getParameter(Request.java:1007)
>         org.apache.catalina.connector.RequestFacade.getParameter(RequestFacade.java:353)
>         eluminet.wlp.modules.users.servlet.tags.UserLoginTag.doStartTag(UserLoginTag.java:101)
>         org.apache.jsp.admin.index_jsp._jspService(index_jsp.java:81)
>         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
>         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
>         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
>         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
>         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>
> ----- End of Error -----
>
>
> Also, here is the relevant snippet from the taglib handler
> implementation which is blowing up on the first call to
> pageContext.getRequest ().getParameter (username).
>
> ----- quote ----
>
>             username = pageContext.getRequest ().getParameter (username);
>             System.out.println ("param : 'username' , value: '" +
> username + "'");
>             password = pageContext.getRequest ().getParameter (password);
>             System.out.println ("param : 'password' , value: '" +
> password + "'");
>             logout = pageContext.getRequest ().getParameter (logout);
>             System.out.println ("param : 'logout' , value: '" + logout + "'");
>
> ------ end quote -----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message