Re: Is it Tomcat problem or my problem?

2004-04-24 Thread Dennis Dai
On 4/24/2004 12:02 AM, [EMAIL PROTECTED] wrote:

What if the client has disabled cookies?
You'll need to use response.encodeURL(someURL) to rewrite the URL, so that 
JSESSIONID is appended with each link.

Dennis

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


Re: Is it Tomcat problem or my problem?

2004-04-24 Thread Dennis Dai
Uma,

How did you manage the session? Are you using container managed security? From 
your description, it seems that you manage sessions yourself. If that's the 
case, make sure you create a new session at login and invalidate session at 
logout ...

Dennis

On 4/22/2004 7:16 AM, [EMAIL PROTECTED] wrote:
Also try one more thing, on the first access do not use the URL of the
login, instead use the URL of the homepage and let it redirect you to the
login.
The Login page is itself the Homepage of the site.

I tried to print the session ID and to find out if the session is new by
these statements
System.out.println("session ID "+session.getId());
System.out.println("session isNew "+session.isNew());
For the first time when I entered betform.jsp it gave me
session ID BC45E3915B4AC4E188E7E84D1AEC4E15
session isNew false
When I clicked on other links in the same betform.jsp, then it gave me this
info
session ID 9D0D8E423E875D6ED1D79770B2CB48CC
session isNew false
and I was logged out. I logged in again and seen the output. Its
session ID 9D0D8E423E875D6ED1D79770B2CB48CC
session isNew false
and when I clicked on other links in the same page it gave me the same
session ID.
session ID 9D0D8E423E875D6ED1D79770B2CB48CC
session isNew false
I am really getting frustated with this Tomcat. Any help would be great.

Thank you,
Uma


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


RE: Is it Tomcat problem or my problem?

2004-04-24 Thread UmamaheswarKalluru




What if the client has disabled cookies?

In my coding adventures, I've tracked down two "Hey my session
disappeared!" bugs with this technique.

I dont understand by what you meant by the above lines.

Thank you,
Best Regards,
Uma


   
 "Mike Curwen" 
 <[EMAIL PROTECTED] 
 >  To 
   
 04/23/2004 07:49  "'Tomcat Users List'"   
 PM<[EMAIL PROTECTED]>
cc 
   
 Please respond to 
   "Tomcat Users   
   List"   
 <[EMAIL PROTECTED] 
  rta.apache.org>                  Subject 
   RE: Is it Tomcat problem or my  
   problem?
   
   
   
   
   
   




When debugging a session problem, I find it very helpful to force my
browser to ask me about every cookie.  This way, I can see for sure the
JSESSIONID cookie being set, and can inspect things like the domain and
the jsessionid value.

In my coding adventures, I've tracked down two "Hey my session
disappeared!" bugs with this technique.



> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 22, 2004 11:03 PM
> To: Tomcat Users List
> Subject: Re: Is it Tomcat problem or my problem?
>
>
>
>
>
>
> Doug,
> Its ok no problem.
>
> Any one else in the list can help me out?
>
> Thank you,
> Best Regards,
> Uma
>
>
>
>
>  "Parsons
>
>  Technical
>
>  Services"
>   To
>  
>  @earthlink.net>   "Tomcat Users List"
>
>
> <[EMAIL PROTECTED]>
>  04/22/2004 08:06
>   cc
>  PM
>
>
>
>
>
>  Please respond to
>
>"Tomcat Users
>
>List"
>  Subject
>  <[EMAIL PROTECTED] Re: Is it Tomcat
> problem or my
>   rta.apache.org>  problem?
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Uma,
>
> At this point I am out of ideas. I have not worked with
> sessions and thus am not strong in this area. I am sorry that
> I am unable to help further at this point. Hopefully someone
> else on the list will pick up on something.
>
> You may wish to look into the IO error that you had on
> shutdown as it may be related.
>
> Sorry,
> Doug
>
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Thursday, April 22, 2004 10:16 AM
> Subject: Re: Is it Tomcat problem or my problem?
>
>
> >
> > Doug,
> >
> > >Does it act the same from other machines?
> > YES
> > >Does it act the same from other browsers(Modzilla, Netscape, etc)?
> > YES
> > >Were any updates applied to the machine? Is auto update enabled on
> > windows?
> > NO
> >
> > >Are the connections via http or https?
> > HTTP
> >
> > >Also try one more thing, on the first access do not use the URL of
> > >the login, instead use the URL of the homepage and let it redirect
> > >you to
> the
> > >login.
> > The Login page is itself the Homepage of the site.
> >
> >
> > I tried to print the session ID and to find out if the
> session is new
> > by these statements
> >
> > System.out.println("session ID "+session.getId());
>

RE: Is it Tomcat problem or my problem?

2004-04-23 Thread Mike Curwen
When debugging a session problem, I find it very helpful to force my
browser to ask me about every cookie.  This way, I can see for sure the
JSESSIONID cookie being set, and can inspect things like the domain and
the jsessionid value.
 
In my coding adventures, I've tracked down two "Hey my session
disappeared!" bugs with this technique.  



> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, April 22, 2004 11:03 PM
> To: Tomcat Users List
> Subject: Re: Is it Tomcat problem or my problem?
> 
> 
> 
> 
> 
> 
> Doug,
> Its ok no problem.
> 
> Any one else in the list can help me out?
> 
> Thank you,
> Best Regards,
> Uma
> 
> 
>   
>  
>  "Parsons 
>  
>  Technical
>  
>  Services"
>   To 
>
>  @earthlink.net>   "Tomcat Users List"
>  
>
> <[EMAIL PROTECTED]>
>  04/22/2004 08:06 
>   cc 
>  PM   
>  
>   
>  
>   
>  
>  Please respond to
>  
>"Tomcat Users  
>  
>List"  
>  Subject 
>  <[EMAIL PROTECTED] Re: Is it Tomcat 
> problem or my  
>   rta.apache.org>  problem?   
>  
>   
>  
>   
>  
>   
>  
>   
>  
>   
>  
>   
>  
> 
> 
> 
> 
> Uma,
> 
> At this point I am out of ideas. I have not worked with 
> sessions and thus am not strong in this area. I am sorry that 
> I am unable to help further at this point. Hopefully someone 
> else on the list will pick up on something.
> 
> You may wish to look into the IO error that you had on 
> shutdown as it may be related.
> 
> Sorry,
> Doug
> 
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Thursday, April 22, 2004 10:16 AM
> Subject: Re: Is it Tomcat problem or my problem?
> 
> 
> >
> > Doug,
> >
> > >Does it act the same from other machines?
> > YES
> > >Does it act the same from other browsers(Modzilla, Netscape, etc)?
> > YES
> > >Were any updates applied to the machine? Is auto update enabled on
> > windows?
> > NO
> >
> > >Are the connections via http or https?
> > HTTP
> >
> > >Also try one more thing, on the first access do not use the URL of 
> > >the login, instead use the URL of the homepage and let it redirect 
> > >you to
> the
> > >login.
> > The Login page is itself the Homepage of the site.
> >
> >
> > I tried to print the session ID and to find out if the 
> session is new 
> > by these statements
> >
> > System.out.println("session ID "+session.getId()); 
> > System.out.println("session isNew "+session.isNew());
> >
> > For the first time when I entered betform.jsp it gave me session ID 
> > BC45E3915B4AC4E188E7E84D1AEC4E15 session isNew false
> >
> > When I clicked on other links in the same betform.jsp, then 
> it gave me
> this
> > info
> > session ID 9D0D8E423E875D6ED1D79770B2CB48CC
> > session isNew false
> >
> > and I was logged out. I logged in again and seen the output. Its 
> > session ID 9D0D8E423E875D6ED1D79770B2CB48CC session isNew false
> >
> > and when I clicked on other links in the same page it gave 
> me the same 
> > session ID.
> >
> > session ID 9D0D8E423E875D6ED1D79770B2C

Re: Is it Tomcat problem or my problem?

2004-04-22 Thread UmamaheswarKalluru




Doug,
Its ok no problem.

Any one else in the list can help me out?

Thank you,
Best Regards,
Uma


   
 "Parsons  
 Technical 
 Services"  To 
"Tomcat Users List" 
   <[EMAIL PROTECTED]>
 04/22/2004 08:06   cc 
 PM
   
   
 Please respond to 
   "Tomcat Users   
   List"   Subject 
 <[EMAIL PROTECTED] Re: Is it Tomcat problem or my  
  rta.apache.org>  problem?
   
   
   
   
   
   




Uma,

At this point I am out of ideas. I have not worked with sessions and thus
am
not strong in this area. I am sorry that I am unable to help further at
this
point. Hopefully someone else on the list will pick up on something.

You may wish to look into the IO error that you had on shutdown as it may
be
related.

Sorry,
Doug

- Original Message -
From: <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, April 22, 2004 10:16 AM
Subject: Re: Is it Tomcat problem or my problem?


>
> Doug,
>
> >Does it act the same from other machines?
> YES
> >Does it act the same from other browsers(Modzilla, Netscape, etc)?
> YES
> >Were any updates applied to the machine? Is auto update enabled on
> windows?
> NO
>
> >Are the connections via http or https?
> HTTP
>
> >Also try one more thing, on the first access do not use the URL of the
> >login, instead use the URL of the homepage and let it redirect you to
the
> >login.
> The Login page is itself the Homepage of the site.
>
>
> I tried to print the session ID and to find out if the session is new by
> these statements
>
> System.out.println("session ID "+session.getId());
> System.out.println("session isNew "+session.isNew());
>
> For the first time when I entered betform.jsp it gave me
> session ID BC45E3915B4AC4E188E7E84D1AEC4E15
> session isNew false
>
> When I clicked on other links in the same betform.jsp, then it gave me
this
> info
> session ID 9D0D8E423E875D6ED1D79770B2CB48CC
> session isNew false
>
> and I was logged out. I logged in again and seen the output. Its
> session ID 9D0D8E423E875D6ED1D79770B2CB48CC
> session isNew false
>
> and when I clicked on other links in the same page it gave me the same
> session ID.
>
> session ID 9D0D8E423E875D6ED1D79770B2CB48CC
> session isNew false
>
> I am really getting frustated with this Tomcat. Any help would be great.
>
> Thank you,
> Uma
>
>
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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





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



Re: Is it Tomcat problem or my problem?

2004-04-22 Thread Parsons Technical Services
Uma,

At this point I am out of ideas. I have not worked with sessions and thus am
not strong in this area. I am sorry that I am unable to help further at this
point. Hopefully someone else on the list will pick up on something.

You may wish to look into the IO error that you had on shutdown as it may be
related.

Sorry,
Doug

- Original Message - 
From: <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, April 22, 2004 10:16 AM
Subject: Re: Is it Tomcat problem or my problem?


>
> Doug,
>
> >Does it act the same from other machines?
> YES
> >Does it act the same from other browsers(Modzilla, Netscape, etc)?
> YES
> >Were any updates applied to the machine? Is auto update enabled on
> windows?
> NO
>
> >Are the connections via http or https?
> HTTP
>
> >Also try one more thing, on the first access do not use the URL of the
> >login, instead use the URL of the homepage and let it redirect you to the
> >login.
> The Login page is itself the Homepage of the site.
>
>
> I tried to print the session ID and to find out if the session is new by
> these statements
>
> System.out.println("session ID "+session.getId());
> System.out.println("session isNew "+session.isNew());
>
> For the first time when I entered betform.jsp it gave me
> session ID BC45E3915B4AC4E188E7E84D1AEC4E15
> session isNew false
>
> When I clicked on other links in the same betform.jsp, then it gave me
this
> info
> session ID 9D0D8E423E875D6ED1D79770B2CB48CC
> session isNew false
>
> and I was logged out. I logged in again and seen the output. Its
> session ID 9D0D8E423E875D6ED1D79770B2CB48CC
> session isNew false
>
> and when I clicked on other links in the same page it gave me the same
> session ID.
>
> session ID 9D0D8E423E875D6ED1D79770B2CB48CC
> session isNew false
>
> I am really getting frustated with this Tomcat. Any help would be great.
>
> Thank you,
> Uma
>
>
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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



Re: Is it Tomcat problem or my problem?

2004-04-22 Thread UmamaheswarKalluru
   
   
   










Doug,

>Does it act the same from other machines?
YES
>Does it act the same from other browsers(Modzilla, Netscape, etc)?
YES
>Were any updates applied to the machine? Is auto update enabled on
windows?
NO

>Are the connections via http or https?
HTTP

>Also try one more thing, on the first access do not use the URL of the
>login, instead use the URL of the homepage and let it redirect you to the
>login.
The Login page is itself the Homepage of the site.


I tried to print the session ID and to find out if the session is new by
these statements

System.out.println("session ID "+session.getId());
System.out.println("session isNew "+session.isNew());

For the first time when I entered betform.jsp it gave me
session ID BC45E3915B4AC4E188E7E84D1AEC4E15
session isNew false

When I clicked on other links in the same betform.jsp, then it gave me this
info
session ID 9D0D8E423E875D6ED1D79770B2CB48CC
session isNew false

and I was logged out. I logged in again and seen the output. Its
session ID 9D0D8E423E875D6ED1D79770B2CB48CC
session isNew false

and when I clicked on other links in the same page it gave me the same
session ID.

session ID 9D0D8E423E875D6ED1D79770B2CB48CC
session isNew false

I am really getting frustated with this Tomcat. Any help would be great.

Thank you,
Uma






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



Re: Is it Tomcat problem or my problem?

2004-04-22 Thread Parsons Technical Services
Uma,

A few things to check.

Does it act the same from other machines?
Does it act the same from other browsers(Modzilla, Netscape, etc)?
Were any updates applied to the machine? Is auto update enabled on windows?

Are the connections via http or https?

Also try one more thing, on the first access do not use the URL of the
login, instead use the URL of the homepage and let it redirect you to the
login.

Doug


- Original Message - 
From: <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, April 22, 2004 9:18 AM
Subject: Re: Is it Tomcat problem or my problem?






Doug,
Thank you for the reply. I dont think there is a problem with the Windows
Explorer as the same application worked great till yesterday. I never
changed the code and today it started not to work. I found the problem. The
problme is not in the Servlet, its in the JSP itself. The object in the
session is getting null.  I have done the following test procedure and
checked it.  My code for betform.jsp is posted below

1. Opened a new browser
2. Entered the Login URL and logged in (Servlet takes care of login
validations and puts the login info into a session)
3. I come to home page of the site.
4. I click on betform.jsp which has an Applet within it. The applet talks
to database for every 3 seconds for some information. I have several links
within the betform.jsp which will again call the same jsp with different
data.
5. I click on some link (any link) in betform.jsp, the session is not valid
and sent to login page.

6. I dont close the browser and login with the same browser and follow the
steps above, now the session works great.

Where am I going wrong? Why is the session not working for the first time
and is working now. I am using Tomcat 5.0.19

Any help would be great.


<%@ page import="java.io.*,java.util.*,java.text.*,ibs.*" %>





<%

try
{

  String stakeKey="";
  String stakeVal="";
  String racename="";
  String racetime="";
  String racedistance="";
  String ddt = "";
  Vector vddt = new Vector();
  String selDa = "";


  Vector details=new Vector();
  String disrace="";
  UserBeanInfo ub=(UserBeanInfo)session.getAttribute("UserDetails");

  if(ub == null)
  {
response.sendRedirect("Login.jsp");
return;
  }



  if(ub != null)
  {


 Vector v=new Vector();
 v.addElement(ub);

 String curbalance
=dbSearch.selectQueryOfType("BALANCE",v).trim();

 double balance =0;
 if(!curbalance.equals("NOT FOUND") && !curbalance.equals("null"))
 balance = Double.parseDouble(curbalance);

 Vector list  =(Vector)session.getAttribute("List");
 if(list != null) session.removeAttribute("List");

 String dateFormat=ub.getDtFormat();
 String dateSep =ub.getDtSep();
 String masterDate=ub.getMasterDate();

 //System.out.println("masterDate  "+masterDate);


 String predate="";
 java.text.SimpleDateFormat df =  new
java.text.SimpleDateFormat(masterDate);
 Date d = new Date();
 predate = df.format(d).toUpperCase();


 String s=request.getParameter("txtDate");
 String preval=request.getParameter("Location");
 if(s!=null) predate=s;

 String go=request.getParameter("GO");
 disrace=request.getParameter("RACE");

System.out.println("raj "+disrace);


%>

HTML CODE

 <%

  if((go != null) && (go.equals("DISPLAY")))
  {


if(session.getAttribute("List") != null ) {
  session.removeAttribute("List");
}

String modDate = s;
String qtype="BET RACE NO";
Vector temp=new Vector();
temp.addElement(modDate);
temp.addElement(preval);

String result=dbSearch.selectQueryOfType(qtype,temp);

if(!result.equals("NOT FOUND"))
{
%>

  Races:
  
  <%
  StringTokenizer st1=new StringTokenizer(result,"%");
  boolean raceStatus = false;

  while(st1.hasMoreTokens())
{
StringTokenizer race = new
StringTokenizer(st1.nextToken(),"ß");

while(race.hasMoreTokens())
{
String raceno=race.nextToken().trim();
String rs = race.nextToken().trim();
int rc = Integer.parseInt(race.nextToken().trim());
int rd = Integer.parseInt(race.nextTok

Re: Is it Tomcat problem or my problem?

2004-04-22 Thread UmamaheswarKalluru




Doug,
Thank you for the reply. I dont think there is a problem with the Windows
Explorer as the same application worked great till yesterday. I never
changed the code and today it started not to work. I found the problem. The
problme is not in the Servlet, its in the JSP itself. The object in the
session is getting null.  I have done the following test procedure and
checked it.  My code for betform.jsp is posted below

1. Opened a new browser
2. Entered the Login URL and logged in (Servlet takes care of login
validations and puts the login info into a session)
3. I come to home page of the site.
4. I click on betform.jsp which has an Applet within it. The applet talks
to database for every 3 seconds for some information. I have several links
within the betform.jsp which will again call the same jsp with different
data.
5. I click on some link (any link) in betform.jsp, the session is not valid
and sent to login page.

6. I dont close the browser and login with the same browser and follow the
steps above, now the session works great.

Where am I going wrong? Why is the session not working for the first time
and is working now. I am using Tomcat 5.0.19

Any help would be great.


<%@ page import="java.io.*,java.util.*,java.text.*,ibs.*" %>





<%

try
{

  String stakeKey="";
  String stakeVal="";
  String racename="";
  String racetime="";
  String racedistance="";
  String ddt = "";
  Vector vddt = new Vector();
  String selDa = "";


  Vector details=new Vector();
  String disrace="";
  UserBeanInfo ub=(UserBeanInfo)session.getAttribute("UserDetails");

  if(ub == null)
  {
response.sendRedirect("Login.jsp");
return;
  }



  if(ub != null)
  {


 Vector v=new Vector();
 v.addElement(ub);

 String curbalance
=dbSearch.selectQueryOfType("BALANCE",v).trim();

 double balance =0;
 if(!curbalance.equals("NOT FOUND") && !curbalance.equals("null"))
 balance = Double.parseDouble(curbalance);

 Vector list  =(Vector)session.getAttribute("List");
 if(list != null) session.removeAttribute("List");

 String dateFormat=ub.getDtFormat();
 String dateSep =ub.getDtSep();
 String masterDate=ub.getMasterDate();

 //System.out.println("masterDate  "+masterDate);


 String predate="";
 java.text.SimpleDateFormat df =  new
java.text.SimpleDateFormat(masterDate);
 Date d = new Date();
 predate = df.format(d).toUpperCase();


 String s=request.getParameter("txtDate");
 String preval=request.getParameter("Location");
 if(s!=null) predate=s;

 String go=request.getParameter("GO");
 disrace=request.getParameter("RACE");

System.out.println("raj "+disrace);


%>

HTML CODE

 <%

  if((go != null) && (go.equals("DISPLAY")))
  {


if(session.getAttribute("List") != null ) {
  session.removeAttribute("List");
}

String modDate = s;
String qtype="BET RACE NO";
Vector temp=new Vector();
temp.addElement(modDate);
temp.addElement(preval);

String result=dbSearch.selectQueryOfType(qtype,temp);

if(!result.equals("NOT FOUND"))
{
%>

  Races:
  
  <%
  StringTokenizer st1=new StringTokenizer(result,"%");
  boolean raceStatus = false;

  while(st1.hasMoreTokens())
{
StringTokenizer race = new
StringTokenizer(st1.nextToken(),"ß");

while(race.hasMoreTokens())
{
String raceno=race.nextToken().trim();
String rs = race.nextToken().trim();
int rc = Integer.parseInt(race.nextToken().trim());
int rd = Integer.parseInt(race.nextToken().trim());


if(!rs.equals("STOPPED") && rc == 0 & rd==0 &&
disrace == null)
  disrace=raceno;

if(raceno.equals(disrace))
{%>
<%=raceno%>


 <%
 raceStatus = true;

 }

else
{
%>
 <%=raceno%>
 
  <%}
   }
  }

  if(raceStatus)

session.setAttribute("RACENO",disrace);
  else
  {%>


//alert("No opened race found");

  <%}
  %>
  



  <%
  temp

Re: Is it Tomcat problem or my problem?

2004-04-22 Thread Parsons Technical Services
Uma,

Only cause you asked nicely.

Not sure on this one. It may be that you have two problems or  one causing
both issues.

Lets look at the IO error first. I am going to assume a windows environment
from the E:\ prompt.
You need to check the disk and the path to see if they are still valid. Do
this from a prompt. Don't use explorer for this. See if you can find the
same path. If yes then go into Windows Explorer and check the permissions on
this folder. Check to ensure the parent propagation is unchecked for the
Tomcat directory. Otherwise if someone makes a change to E:\ it will
propagate down through all the directories. If it is there and you have
proper permissions then your problem may be in Tomcat. Check your Windows
logs. See if there are any errors. You could have a bad or full disk. If
quotas are turned on you may have hit the limit. Worst case write a small
java app that reads from a file and writes to a file in the directory and
run it from the command prompt. If it fails then your problem is not Tomcat,
at least for the file IO.

For the null pointer issue. What is line 54 in the servlet trying to do?
This is your first clue. Are you trying to read in from a file by chance?
Need some more details in order to help further. A code snip here would
help, or at least a description of what the servlet is trying to do just
before and on line 54.

Doug

- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 22, 2004 7:27 AM
Subject: Is it Tomcat problem or my problem?


>
>
>
>
> Hello,
> I am working on a web application using JSP and servlets. Till date my
> application worked great but today I am having some critical problem. When
> I come to a JSP, the session object is dead. I no longer can access the
> session in my servlet.
>
> I stopped the tomcat immediately to see if there is any error. And this is
> my log file The NullPointerException is caused due to the object in
session
> being null.
>
> Any help would be great.
>
> * BEFORE SHUTTING DOWN **
> In BetFormServlet :java.lang.NullPointerException
> java.lang.NullPointerException
>   at BetFormServlet.doPost(BetFormServlet.java:54)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>   at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:284)
>   at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:204)
>   at
>
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:750)
>   at
>
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDis
patcher.java:510)
>   at
>
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
er.java:445)
>   at
>
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
.java:359)
>   at ControllerServlet.doPost(ControllerServlet.java:59)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>   at
>
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java
:466)
>   at
>
org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:216)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>   at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:284)
>   at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:204)
>   at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:257)
>   at
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:151)
>   at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
>   at
>
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContext
Valve.java:245)
>   at
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:199)
>   at
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:151)
>   at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
>   at
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:184
)
>   at
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:151)
>   at
>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164
)
>   at
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:149)
>   at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
>   at
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve