Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 4 of 4

This is a discussion on WinServer2008 + Tomcat + MySQL : NullPointerException in the VPS & Dedicated forum
Our jsp pages are being served through tomcat/mysql on dedicated windows server 2008. The problem that has plagued us recently is that we keep getting ...

  1. #1
    JPC Member
    Join Date
    Oct 2009
    Posts
    2

    WinServer2008 + Tomcat + MySQL : NullPointerException

    Our jsp pages are being served through tomcat/mysql on dedicated windows server 2008.

    The problem that has plagued us recently is that we keep getting java.lang.NullPointerException intermittantly as the database connection variable returns null sometimes. (I have attached a JPG)

    We suspected this to be a memory problem, but after observing the task mananger we could not see any spike in the memory, during the span of this outage. We also increased the memory allocation to tomcat and mysql tables - doesnt help either.

    If we restart apache / mysql the problem is resolved for somewhile and then re-appears.

    MySQL services are all running fine, just that mysteriously the connection keeps dropping.

    Dear community members this issue is giving us sleepless nights , please share you ideas on how we can track this issue and what can be a probable cause for this.
    Attached Images Attached Images

  2. #2
    Registered User
    Join Date
    Jul 2008
    Posts
    264
    Hi;

    It would be more appropriate if you can open a ticket in the support department with all the details , so that we shall be able to assist you more efficiently.

  3. #3
    Techinical Support Rep.
    Join Date
    Oct 2008
    Location
    Canada
    Posts
    526
    Hi,

    In my experience with java/jsp this indicates that your code is trying to use a class that hasn't been created yet.

    I'd suggest you check with your developer.
    I do work for JaguarPC. If you do need help please provide your ticket number (this isn't sensitive information).

    If I'm not active on the forum please open a ticket instead of PMing me. If you think the issue requires access to your server please open a ticket.

  4. #4
    the Windlord Gwaihir's Avatar
    Join Date
    Jun 2002
    Posts
    2,562
    Java classes can neither dissapear nor be created at runtime AFAIK.

    Indeed there is no object (instance) there, where you'd expect. The database almost certainly explained that in the exception it threw. Ask your developer what he did with it. (It should be logged, but if he did that, why didn't he actually *handle* it with some grace as well?)

    While you're at it, you can also ask him:
    2. Why are your users looking at that stacktrace instead of a decent error page?
    3. Why is the database accessed like that directly from the jsp?
    Regards,

    Wim Heemskerk
    ---
    Visit MeCCG.net - Cardgaming in J.R.R. Tolkien's Middle-earth
    And Gwaihir.net - The Middle-earth CCG store

Bookmarks

Posting Permissions

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