Results 1 to 2 of 2
  1. #1
    jithan is offline Member
    Join Date
    Jun 2008
    Posts
    39
    Rep Power
    0

    Default Tomcat5.5 error report

    hello friends,
    I am using a following code. it is working fine in development. but it didnt work. it gives the error report. what will be the problem.... its very urgent........ please help me.....

    code: session = httpRequest.getSession();
    ValidUser user = ( ValidUser )session.getAttribute(sess_id);
    it is working fine in tomcat5.0..... but 5.5 raises this exception.....

    org.apache.catalina.session.StandardSessionFacade@ 1c7980c
    : null
    java.lang.NullPointerException
    at java.util.Hashtable.get(Hashtable.java:334)
    at
    org.apache.catalina.session.StandardSession.getAtt ribute(StandardSession.java:1024)
    at
    org.apache.catalina.session.StandardSessionFacade. getAttribute(StandardSessionFacade.java:110)
    at

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,421
    Rep Power
    25

    Default

    The error message lists several class names and gives source line numbers in those classes where the error occured. Are any of the listed classes yours? If so please locate the listed line numbers and copy and paste those lines of code here.
    Add a println() statement before the topmost/last executed line number in the list that displays the contents of ALL the objects referenced in the line with the error. Be sure to include any objects that my be returned by methods. That should show you which object is null. Then you need to back track to see why that object is null.

Similar Threads

  1. Crystal report with JSP
    By fred in forum JavaServer Pages (JSP) and JSTL
    Replies: 3
    Last Post: 12-17-2008, 08:27 PM
  2. Error With Sql And Jasper Report
    By Heather in forum JDBC
    Replies: 4
    Last Post: 12-03-2008, 11:31 AM
  3. Replies: 2
    Last Post: 12-03-2008, 11:14 AM
  4. Problem with a report
    By sanduta in forum NetBeans
    Replies: 1
    Last Post: 06-26-2008, 02:14 PM
  5. Report manager to Java
    By bbq in forum New To Java
    Replies: 2
    Last Post: 07-04-2007, 07:51 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •