Database connection problm

Results 1 to 4 of 4
  1. #1
    Enthusiast XenoPHP is offline
    MemberRank
    Apr 2012 Join Date
    36Posts

    Database connection problm

    I am pretty sure that I compiled EVERYTHING right way! I still get this error, any help? Use password could cause this? btw, I am sure that I used the right pass into ServerConstants before compile!

    PHP Code:
    Could not create a SQL Connection objectPlease make sure you've correctly conf
    igured the database properties inside constants/ServerConstants.java. MAKE SURE
    YOU COMPILED!
    Exception in thread "main" java.lang.NullPointerException
            at tools.DatabaseConnection$ThreadLocalConnection.get(DatabaseConnection
    .java:72)
            at tools.DatabaseConnection$ThreadLocalConnection.get(DatabaseConnection
    .java:44)
            at tools.DatabaseConnection.getConnection(DatabaseConnection.java:36)
            at net.server.Server.run(Server.java:136)
            at net.server.Server.main(Server.java:212)
    Shutting down the server!

    Exception in thread "Thread-0" java.lang.NullPointerException
            at server.TimerManager.stop(TimerManager.java:69)
            at net.server.Server$2.run(Server.java:534)
            at java.lang.Thread.run(Unknown Source)
    Press any key to continue . . . 


  2. #2
    Alpha Member TiredGuy is offline
    MemberRank
    Mar 2012 Join Date
    Behind YouLocation
    1,527Posts

    Re: Database connection problm

    If your positive everything is correct, clean+build then compile.
    Posted via Mobile Device

  3. #3
    Omega sunnyboy is offline
    MemberRank
    Mar 2010 Join Date
    6,109Posts

    Re: Database connection problm

    Quote Originally Posted by TiredGuy View Post
    If your positive everything is correct, clean+build then compile.
    Posted via Mobile Device
    if that doesn't work, remember default is username = root and no pass. Only would be different, if you changed.

  4. #4
    Me > You DaCheat is offline
    LegendRank
    May 2004 Join Date
    Minneapolis, MNLocation
    7,270Posts

    Re: Database connection problm

    Moved.



Advertisement