Connecting Tech Pros Worldwide Forums | Help | Site Map

while(rslogin.next()) creates error

pravipravi's Avatar
Newbie
 
Join Date: Feb 2007
Posts: 16
#1: Apr 19 '07
[HTML]id=request.getParameter("txtId");
51: pwd=request.getParameter("txtPwd");
52: rslogin=getAllData("select * from login where username='"+id+"' and password='"+pwd+"'");
53: while(rslogin.next())
54: {
55: flag=1;
56: session.setAttribute("UserId",id); [/HTML]
The above given is my coding.In my login table i have username and password.
But when iam excecuing the application with Tomcat following error is occuring.

org.apache.jasper.JasperException: An exception occurred processing JSP page /myLogTest.jsp at line 53

Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handle JspException(JspServletWrapper.java:515)
org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:426)
org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet .java:803)

root cause

java.lang.NullPointerException
org.apache.jsp.myLogTest_jsp._jspService(myLogTest _jsp.java:170)
org.apache.jasper.runtime.HttpJspBase.service(Http JspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet .java:803)
org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:384)
org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet .java:803)
What i can Do ? Pleas Help me ...... :)

Lives Here
 
Join Date: Sep 2006
Posts: 12,070
#2: Apr 19 '07

re: while(rslogin.next()) creates error


Quote:

Originally Posted by pravipravi

[HTML]id=request.getParameter("txtId");
51: pwd=request.getParameter("txtPwd");
52: rslogin=getAllData("select * from login where username='"+id+"' and password='"+pwd+"'");
53: while(rslogin.next())
54: {
55: flag=1;
56: session.setAttribute("UserId",id); [/HTML]
The above given is my coding.In my login table i have username and password.
But when iam excecuing the application with Tomcat following error is occuring.

org.apache.jasper.JasperException: An exception occurred processing JSP page /myLogTest.jsp at line 53

Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handle JspException(JspServletWrapper.java:515)
org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:426)
org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet .java:803)

root cause

java.lang.NullPointerException
org.apache.jsp.myLogTest_jsp._jspService(myLogTest _jsp.java:170)
org.apache.jasper.runtime.HttpJspBase.service(Http JspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet .java:803)
org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:384)
org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet .java:803)
What i can Do ? Pleas Help me ...... :)

Are there any situations where your getAllData method can return null?
pravipravi's Avatar
Newbie
 
Join Date: Feb 2007
Posts: 16
#3: Apr 19 '07

re: while(rslogin.next()) creates error


Quote:

Originally Posted by r035198x

Are there any situations where your getAllData method can return null?

This is the code i used.Here i declared rslogin as null.

[HTML]<%
String id="",pwd="",area="";
int flag=0;
connectionMe();
java.sql.ResultSet rslogin=null;
if(request.getParameter("loginhidden")!=null)
{
if(request.getParameter("loginhidden").equals("log in"))
{
id=request.getParameter("txtId");
pwd=request.getParameter("txtPwd");
rslogin=getAllData("select * from login where username='"+id+"' and password='"+pwd+"'");
while(rslogin.next())
{
flag=1;
// session.setAttribute("UserId",id);
out.print("Login Successfully....");
// session.setAttribute("message","");
// redirect url
response.sendRedirect("process.jsp");
}
if(flag==0)
{
session.setAttribute("message","Invalid UserName or Password");
}
}

}
%>[/HTML]
Lives Here
 
Join Date: Sep 2006
Posts: 12,070
#4: Apr 19 '07

re: while(rslogin.next()) creates error


Quote:

Originally Posted by pravipravi

This is the code i used.Here i declared rslogin as null.

[HTML]<%
String id="",pwd="",area="";
int flag=0;
connectionMe();
java.sql.ResultSet rslogin=null;
if(request.getParameter("loginhidden")!=null)
{
if(request.getParameter("loginhidden").equals("log in"))
{
id=request.getParameter("txtId");
pwd=request.getParameter("txtPwd");
rslogin=getAllData("select * from login where username='"+id+"' and password='"+pwd+"'");
while(rslogin.next())
{
flag=1;
// session.setAttribute("UserId",id);
out.print("Login Successfully....");
// session.setAttribute("message","");
// redirect url
response.sendRedirect("process.jsp");
}
if(flag==0)
{
session.setAttribute("message","Invalid UserName or Password");
}
}

}
%>[/HTML]

The important line is this one

Expand|Select|Wrap|Line Numbers
  1.  
  2. rslogin=getAllData("select * from login where username='"+id+"' and password='"+pwd+"'");
  3.  
  4.  
Does the getAllData method return null?
pravipravi's Avatar
Newbie
 
Join Date: Feb 2007
Posts: 16
#5: Apr 19 '07

re: while(rslogin.next()) creates error


Quote:

Originally Posted by r035198x

The important line is this one

Expand|Select|Wrap|Line Numbers
  1.  
  2. rslogin=getAllData("select * from login where username='"+id+"' and password='"+pwd+"'");
  3.  
  4.  
Does the getAllData method return null?


This is my getAllData Function.

Expand|Select|Wrap|Line Numbers
  1. public java.sql.ResultSet getAllData(String sQuery)
  2.   {
  3.     java.sql.ResultSet rs=null;
  4.   try
  5.   {
  6.  java.sql.Statement     state=conn.createStatement(rs.TYPE_SCROLL_INSENSITIVE,rs.CONCUR_UPDATABLE);
  7.  rs =state.executeQuery(sQuery);
  8.   }catch(Exception e)
  9.   {
  10.      System.out.print(e.toString());
  11.   }
  12.    return rs;  
  13.   }  
  14.  
Lives Here
 
Join Date: Sep 2006
Posts: 12,070
#6: Apr 19 '07

re: while(rslogin.next()) creates error


Quote:

Originally Posted by pravipravi

This is my getAllData Function.

Expand|Select|Wrap|Line Numbers
  1. public java.sql.ResultSet getAllData(String sQuery)
  2. {
  3. java.sql.ResultSet rs=null;
  4. try
  5. {
  6. java.sql.Statement state=conn.createStatement(rs.TYPE_SCROLL_INSENSITIVE,rs.CONCUR_UPDATABLE);
  7. rs =state.executeQuery(sQuery);
  8. }catch(Exception e)
  9. {
  10. System.out.print(e.toString());
  11. }
  12. return rs; 
  13.  

This is your problem

Expand|Select|Wrap|Line Numbers
  1.  
  2. java.sql.Statement     state=conn.createStatement(rs.TYPE_SCROLL_INSENSIT  IVE,rs.CONCUR_UPDATABLE);
  3.  
rs is still null at this point. You are calling static variables so use ResultSet (class name) instead of rs
pravipravi's Avatar
Newbie
 
Join Date: Feb 2007
Posts: 16
#7: Apr 19 '07

re: while(rslogin.next()) creates error


Quote:

Originally Posted by r035198x

This is your problem

Expand|Select|Wrap|Line Numbers
  1.  
  2. java.sql.Statement     state=conn.createStatement(rs.TYPE_SCROLL_INSENSIT  IVE,rs.CONCUR_UPDATABLE);
  3.  
rs is still null at this point. You are calling static variables so use ResultSet (class name) instead of rs

How to use the ResultSet(class name) in my coding?
Or How can i make rs null?
Actually i am using
Expand|Select|Wrap|Line Numbers
  1. public java.sql.ResultSet getAllData(String sQuery)
  2. {java.sql.ResultSet rs=null;
  3.  
  4. }
  5.  
So there it self can rs be null?
Lives Here
 
Join Date: Sep 2006
Posts: 12,070
#8: Apr 19 '07

re: while(rslogin.next()) creates error


Quote:

Originally Posted by pravipravi

How to use the ResultSet(class name) in my coding?
Or How can i make rs null?
Actually i am using

Expand|Select|Wrap|Line Numbers
  1. public java.sql.ResultSet getAllData(String sQuery)
  2. {java.sql.ResultSet rs=null;
  3.  
  4. }
  5.  
So there it self can rs be null?


Change the line

Expand|Select|Wrap|Line Numbers
  1. java.sql.Statement     state=conn.createStatement(rs.TYPE_SCROLL_INSENSIT  IVE,rs.CONCUR_UPDATABLE);
to

Expand|Select|Wrap|Line Numbers
  1. java.sql.Statement  state = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
pravipravi's Avatar
Newbie
 
Join Date: Feb 2007
Posts: 16
#9: Apr 19 '07

re: while(rslogin.next()) creates error


Quote:

Originally Posted by r035198x

Change the line

Expand|Select|Wrap|Line Numbers
  1. java.sql.Statement     state=conn.createStatement(rs.TYPE_SCROLL_INSENSIT  IVE,rs.CONCUR_UPDATABLE);
to

Expand|Select|Wrap|Line Numbers
  1. java.sql.Statement  state = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);


I done the specified changes..But the Same error is coming again..
[HTML]org.apache.jasper.JasperException: An exception occurred processing JSP page /myLogTest.jsp at line 53[/HTML]
pravipravi's Avatar
Newbie
 
Join Date: Feb 2007
Posts: 16
#10: Apr 19 '07

re: while(rslogin.next()) creates error


I done the specified changes..But the Same error is coming again..


[HTML]org.apache.jasper.JasperException: An exception occurred processing JSP page /myLogTest.jsp [/HTML]
Lives Here
 
Join Date: Sep 2006
Posts: 12,070
#11: Apr 19 '07

re: while(rslogin.next()) creates error


Quote:

Originally Posted by pravipravi

I done the specified changes..But the Same error is coming again..


[HTML]org.apache.jasper.JasperException: An exception occurred processing JSP page /myLogTest.jsp [/HTML]



Is the root cause still the nullpointer exception?
Which line is reported as giving the error now?
pravipravi's Avatar
Newbie
 
Join Date: Feb 2007
Posts: 16
#12: Apr 19 '07

re: while(rslogin.next()) creates error


[HTML]50: id=request.getParameter("txtId");
51: pwd=request.getParameter("txtPwd");
52: rs=getAllData("select * from login where username='"+id+"' and password='"+pwd+"'");
53: while(rs.next())
54: {
55: flag=1;
56: // session.setAttribute("UserId",id);
[/HTML]

Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handle JspException(JspServletWrapper.java:515)
org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:426)
org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet .java:803)

root cause

java.lang.NullPointerException
org.apache.jsp.myLogTest_jsp._jspService(myLogTest _jsp.java:170)
org.apache.jasper.runtime.HttpJspBase.service(Http JspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet .java:803)
org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:384)
org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet .java:803)
This is the Error report.Same line is showing the error.And,Root cause is null pointer exception.
pravipravi's Avatar
Newbie
 
Join Date: Feb 2007
Posts: 16
#13: Apr 19 '07

re: while(rslogin.next()) creates error


Quote:

Originally Posted by pravipravi

[HTML]50: id=request.getParameter("txtId");
51: pwd=request.getParameter("txtPwd");
52: rs=getAllData("select * from login where username='"+id+"' and password='"+pwd+"'");
53: while(rs.next())
54: {
55: flag=1;
56: // session.setAttribute("UserId",id);
[/HTML]

Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handle JspException(JspServletWrapper.java:515)
org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:426)
org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet .java:803)

root cause

java.lang.NullPointerException
org.apache.jsp.myLogTest_jsp._jspService(myLogTest _jsp.java:170)
org.apache.jasper.runtime.HttpJspBase.service(Http JspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet .java:803)
org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:384)
org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet .java:803)
This is the Error report.Same line is showing the error.And,Root cause is null pointer exception.

yaa as above...
Lives Here
 
Join Date: Sep 2006
Posts: 12,070
#14: Apr 19 '07

re: while(rslogin.next()) creates error


Quote:

Originally Posted by pravipravi

[HTML]50: id=request.getParameter("txtId");
51: pwd=request.getParameter("txtPwd");
52: rs=getAllData("select * from login where username='"+id+"' and password='"+pwd+"'");
53: while(rs.next())
54: {
55: flag=1;
56: // session.setAttribute("UserId",id);
[/HTML]

.

That code throws a nullpointer only if the getAllData returns null. So you really need to be looking at your getAllData method.
pravipravi's Avatar
Newbie
 
Join Date: Feb 2007
Posts: 16
#15: Apr 20 '07

re: while(rslogin.next()) creates error


Quote:

Originally Posted by r035198x

That code throws a nullpointer only if the getAllData returns null. So you really need to be looking at your getAllData method.

My entire business logic progran i am giving below.
Expand|Select|Wrap|Line Numbers
  1. <%@ page import= "java.sql.*" %>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
  5. <title>
  6. </title>
  7. </head>
  8. <body>
  9. <%
  10. %>
  11. <%!
  12. public Connection conn;
  13. public void connectionMe()
  14. {
  15. try
  16.   {
  17. conn=java.sql.DriverManager.getConnection("jdbc:oracle:thin:slippage/slippage@172.18.1.92:1521:orcl");  
  18.    }catch(Exception e)
  19.    {
  20.      System.out.print("error");
  21.    }
  22. }
  23. public java.sql.ResultSet getAllData(String sQuery)
  24.   {
  25.     java.sql.ResultSet rs=null;
  26.   try
  27.   {
  28.  //rs.TYPE_SCROLL_SENSITIVE,rs.CONCUR_UPDATABLE
  29.  java.sql.Statement  state=conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDATABLE);
  30.      rs =state.executeQuery(sQuery);
  31.   }catch(Exception e)
  32.   {
  33.      System.out.print(e.toString());
  34.   }
  35.    return rs;  
  36.   }  
  37.  
  38. public void executeQuery(String sQuery) throws Exception
  39. {
  40. try{
  41.    java.sql.Statement insquery =conn.createStatement();
  42.    insquery.executeUpdate(sQuery);
  43.    insquery.close();
  44. }catch(Exception e)
  45. {
  46.     throw new Exception(e.toString());
  47. }
  48. }
  49.  
  50. %>
  51. </body>
  52. </html>
  53.  
Here where is a mistake that i am not getting...
Lives Here
 
Join Date: Sep 2006
Posts: 12,070
#16: Apr 20 '07

re: while(rslogin.next()) creates error


Quote:

Originally Posted by pravipravi

My entire business logic progran i am giving below.

Expand|Select|Wrap|Line Numbers
  1. <%@ page import= "java.sql.*" %>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
  5. <title>
  6. </title>
  7. </head>
  8. <body>
  9. <%
  10. %>
  11. <%!
  12. public Connection conn;
  13. public void connectionMe()
  14. {
  15. try
  16. {
  17. conn=java.sql.DriverManager.getConnection("jdbc:oracle:thin:slippage/slippage@172.18.1.92:1521:orcl"); 
  18. }catch(Exception e)
  19. {
  20. System.out.print("error");
  21. }
  22. }
  23. public java.sql.ResultSet getAllData(String sQuery)
  24. {
  25. java.sql.ResultSet rs=null;
  26. try
  27. {
  28. //rs.TYPE_SCROLL_SENSITIVE,rs.CONCUR_UPDATABLE
  29. java.sql.Statement state=conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDATABLE);
  30. rs =state.executeQuery(sQuery);
  31. }catch(Exception e)
  32. {
  33. System.out.print(e.toString());
  34. }
  35. return rs; 
  36.  
  37. public void executeQuery(String sQuery) throws Exception
  38. {
  39. try{
  40. java.sql.Statement insquery =conn.createStatement();
  41. insquery.executeUpdate(sQuery);
  42. insquery.close();
  43. }catch(Exception e)
  44. {
  45. throw new Exception(e.toString());
  46. }
  47. }
  48.  
  49. %>
  50. </body>
  51. </html>
  52.  
Here where is a mistake that i am not getting...

How did you call the methods?
pravipravi's Avatar
Newbie
 
Join Date: Feb 2007
Posts: 16
#17: Apr 20 '07

re: while(rslogin.next()) creates error


Quote:

Originally Posted by r035198x

How did you call the methods?


[HTML] <%@ include file="connLib.jsp" %>
<%@ page contentType="text/html;charset=windows-1252"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
</head>
<body bgcolor="#1c80dd" onkeypress="acceptEnter()">
<script language="javascript">
function acceptEnter()
{
if(window.event.keyCode==13)
{
validate();
}

}
function validate()
{
if(login.txtId.value=="" )
{
alert("The Id cannot be kept blank");
login.txtId.focus();
return false;
}
if(login.txtPwd.value=="")
{
alert("The Password cannot be kept blank");
login.txtPwd.focus();
return false;
}
login.loginhidden.value="login";
}
</script>
<%
String id="",pwd="",area="";
int flag=0;
connectionMe();
java.sql.ResultSet rslogin=null;
if(request.getParameter("loginhidden")!=null)
{
if(request.getParameter("loginhidden").equals("log in"))
{
id=request.getParameter("txtId");
pwd=request.getParameter("txtPwd");
rslogin=getAllData("select * from login where username='"+id+"' and password='"+pwd+"'");
while(rslogin.next())
{
flag=1;
out.print("Login Successfully....");
response.sendRedirect("process.jsp");
}
if(flag==0)
{
session.setAttribute("message","Invalid UserName or Password");
}
}
}
%>
<center>
<hr><font color="white" size=5 ><b>LOGIN PAGE</font></b><hr>
</center>
<form name="login" action="" method="post">
<center>
<table>
<tr><td><font color="black" size=3><b>User Login Page </font></b></td></tr>
</table><br>
<table border=1 bgcolor="#1c80dd">
<tr>
<td><font color="white" face="Times New Roman"><b>User ID :-</td>
<td><input type="text" name="txtId" ></td>
</tr>
<tr>
<td><font color="white" face="Times New Roman"><b>Password :-</td>
<td><input type="password" name="txtPwd" ></td>
</tr>
<td colspan=6 bgcolor="#1c80dd" align="center">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;
<input type="submit" name="btnLogin" value="Login" onclick="return validate()">
<input type="reset" name="btnReset" value="Reset" >
<input type="hidden" name="loginhidden">
</table>
<br>
<table>
<tr><td align="center"><font color="#1c80dd" face="arial"><b>
<%
if(session.getAttribute("message")!=null)
{
out.print("<font color=white>"+session.getAttribute("message"));
}
%></b></font></td></tr>
</table>
<br><br>
<hr>
<table><tr>
</tr></table>
</center>
</form>
</body>
</html>
[/HTML]

This is the program where iam calling the result set,connection object all..
pravipravi's Avatar
Newbie
 
Join Date: Feb 2007
Posts: 16
#18: Apr 20 '07

re: while(rslogin.next()) creates error


Null pointer exception is still there ,What i need tom do?
Newbie
 
Join Date: Oct 2006
Posts: 6
#19: Apr 20 '07

re: while(rslogin.next()) creates error


I think that if your getAllData raises an exception inside the try-catch it returns null. May be that is the problem.
JosAH's Avatar
Expert
 
Join Date: Mar 2007
Posts: 10,611
#20: Apr 20 '07

re: while(rslogin.next()) creates error


Quote:

Originally Posted by pravipravi

Null pointer exception is still there ,What i need tom do?

According to the line numbers supplied by the stack trace the NullPointerException
isn't raised anywhere in the piece of code you showed us; it is somewhere in
a method named 'myLogText' (or similar).

Tomcat also keeps a log for anything that is written to the standard out stream;
noticed anything peculiar in there?

kind regards,

Jos
pravipravi's Avatar
Newbie
 
Join Date: Feb 2007
Posts: 16
#21: Apr 21 '07

re: while(rslogin.next()) creates error


Quote:

Originally Posted by gusa992000

I think that if your getAllData raises an exception inside the try-catch it returns null. May be that is the problem.


ok let me know the solution also ..
pravipravi's Avatar
Newbie
 
Join Date: Feb 2007
Posts: 16
#22: Apr 21 '07

re: while(rslogin.next()) creates error


Quote:

Originally Posted by JosAH

According to the line numbers supplied by the stack trace the NullPointerException
isn't raised anywhere in the piece of code you showed us; it is somewhere in
a method named 'myLogText' (or similar).

Tomcat also keeps a log for anything that is written to the standard out stream;
noticed anything peculiar in there?

kind regards,

Jos

This is the error in Error log.
and in my broser i am getting same error

errorerrorjava.lang.NullPointerException

Exception error mesage:
[HTML]
type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: An exception occurred processing JSP page /myLogTest.jsp at line 53

50: id=request.getParameter("txtId");
51: pwd=request.getParameter("txtPwd");
52: rslogin=getAllData("select * from login where username='"+id+"' and password='"+pwd+"'");
53: while(rslogin.next())
54: {
55: flag=1;
56: // session.setAttribute("UserId",id);


Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handle JspException(JspServletWrapper.java:515)
org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:426)
org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet .java:803)

root cause

java.lang.NullPointerException
org.apache.jsp.myLogTest_jsp._jspService(myLogTest _jsp.java:169)
org.apache.jasper.runtime.HttpJspBase.service(Http JspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet .java:803)
org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:384)
org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet .java:803)

note The full stack trace of the root cause is available in the Apache Tomcat/6.0.10 logs.
Apache Tomcat/6.0.10[/HTML]
Reply