Results 1 to 4 of 4
Like Tree1Likes
  • 1 Post By Tolls

Thread: Not able to debug the error

  1. #1
    Join Date
    Aug 2013
    Posts
    3
    Rep Power
    0

    Arrow Not able to debug the error

    Java Eclipse Kepler
    MySQL 5.0 server

    A simple program which accesses the db and validates the username and password.If the Entered un and pwd in login.jsp is valid it will redirect to success page else error page.

    While trying to access the database im getting the below error.
    web.xml configured properly.
    connector jar is added.


    java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
    Log In failed: An Exception has occurred! java.lang.NullPointerException



    Help required!!!!
    Thanks in advance
    !!!

  2. #2
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    3,703
    Rep Power
    5

    Default Re: Not able to debug the error

    Try this: copy paste java.lang.ClassNotFoundException: com.mysql.jdbc.Driver into google and see what you get.

    Note: you're doing web development when you didn't even learn enough about Java yet to be able to identify and fix classpath problems. You're in for a very tough time if you don't take a few steps back and properly learn Core Java.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  3. #3
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,817
    Rep Power
    19

    Default Re: Not able to debug the error

    ...and, in your catch blocks, you should be using the printStackTrace method on the exception (or logging it using a proper logging framework) in order to not lose important exception information, such as exactly where in your code this occurred. In this case (once you've googled the error) it's pretty obvious what the problem is.
    com.deepaksingh likes this.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  4. #4
    Join Date
    Aug 2013
    Posts
    3
    Rep Power
    0

    Default Re: Not able to debug the error

    Quote Originally Posted by gimbal2 View Post
    Try this: copy paste java.lang.ClassNotFoundException: com.mysql.jdbc.Driver into google and see what you get.

    Note: you're doing web development when you didn't even learn enough about Java yet to be able to identify and fix classpath problems. You're in for a very tough time if you don't take a few steps back and properly learn Core Java.
    Ohh thanks! And i know how to google.(wat u gave was a great solution)
    Everything was fine i was not able to fix it actually i dono wer the prob is.. okie.
    I dont approach forum just simply.
    Atleast someone can help,maybe they might have came across something like this..

    And thanks alot!!! :P

Similar Threads

  1. Unable to debug due to error
    By Astralogic in forum Eclipse
    Replies: 8
    Last Post: 07-09-2012, 10:37 AM
  2. [Netbeans] - Error Debug
    By yuir in forum NetBeans
    Replies: 3
    Last Post: 01-03-2011, 07:01 PM
  3. Help to debug a common error please!
    By TaxpayersMoney in forum New To Java
    Replies: 4
    Last Post: 05-08-2010, 03:31 PM
  4. error debug
    By stid in forum Eclipse
    Replies: 2
    Last Post: 10-16-2009, 07:44 PM
  5. Error logged from JDT Debug UI Window
    By tsc in forum Eclipse
    Replies: 1
    Last Post: 07-10-2008, 08:37 AM

Tags for this Thread

Posting Permissions

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