Without seeing your page this is just a guess, but I would say that
you are trying to reference one of the indexes of Value without first
checking if its null.  (i.e. Value[0] or Value.length).  I say this because
the root cause is a NullPointerException.

        I know that this does work just fine in Tomcat 3.2 w/JDK1.2 as I use
it.

        Randy

-----Original Message-----
From: Subha Gowri [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 08, 2001 12:22 AM
To: '[EMAIL PROTECTED]'
Subject: Problem with Tomcat 3.1 and JDK 1.2.2...




Hi All,

We are working on Tomcat 3.1 with JDK 1.2.2. and deployed all the .jsp pages
in Apache server.
For that we've created a new context in server.xml to take the .jsp pages
from Apache.
It's working fine. But the problem is multiple selection list box in it.

After submitting the page, if I try to get the value from the List box
(multiple) as

String Value[] = request.getParameterValues(name);

it is throwing an exception as,

****************************************************************************
****************************************************************************
*********************************************
Error: 500
Location: /cmt/browser/callagent/callagentmainpage.jsp
Internal Servlet Error:
javax.servlet.ServletException
        at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:386)
        at
browser.callagent._0002fbrowser_0002fcallagent_0002fcallagentmainpage_0002ej
spcallagentmainpage_jsp_0._jspService(_0002fbrowser_0002fcallagent_0002fcall
agentmainpage_0002ejspcallagentmainpage_jsp_0.java, Compiled Code)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java,
Compiled Code)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled
Code)
        at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja
va, Compiled Code)
        at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java,
Compiled Code)
        at org.apache.jasper.runtime.JspServlet.service(JspServlet.java,
Compiled Code)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled
Code)
        at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java,
Compiled Code)
        at
org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled
Code)
        at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java, Compiled Code)
        at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java,
Compiled Code)
        at java.lang.Thread.run(Thread.java, Compiled Code)
Root cause: 
java.lang.NullPointerException
        at
browser.callagent._0002fbrowser_0002fcallagent_0002fcallagentmainpage_0002ej
spcallagentmainpage_jsp_0._jspService(_0002fbrowser_0002fcallagent_0002fcall
agentmainpage_0002ejspcallagentmainpage_jsp_0.java, Compiled Code)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java,
Compiled Code)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled
Code)
        at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja
va, Compiled Code)
        at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java,
Compiled Code)
        at org.apache.jasper.runtime.JspServlet.service(JspServlet.java,
Compiled Code)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled
Code)
        at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java,
Compiled Code)
        at
org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled
Code)
        at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java, Compiled Code)
        at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java,
Compiled Code)
        at java.lang.Thread.run(Thread.java, Compiled Code)

****************************************************************************
****************************************************************************
*********************************************

Note : The same .jsp page is working fine if I use tomcat 3.1 and JDK 1.3. 

If any one find the solution for this problem please let me know.

Thanks in advance,
Subha



. 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to