Solved Comunication Failure

Discussion in 'Spigot Plugin Development' started by WaffleMast3r, Jun 4, 2017.

Thread Status:
Not open for further replies.
    • Optimistic Optimistic x 1
  1. What... the hell...
     
    • Like Like x 1
  2. Mas

    Mas

    Your error says: Caused by: java.net.UnknownHostException: null: Name or service not known
    Your database couldn't be connected to because of an unknown host. Are you sure the SQL server is running?
     
    • Like Like x 1
  3. Yep is running if u want give me your skype or discord and i will give u the database data to check
     
  4. Mas

    Mas

    I'll take a more detailed look in a second, but just a tip, you should be caching your Connection instance instead of retrieving a new one every time :p
     
    • Like Like x 1
  5. NPE
     
    • Like Like x 1
    • Agree Agree x 1
  6. What does it mean ?
     
  7. Replace (in the config) 'localhost' with '127.0.0.1'
    This will fix your problem.
     
    • Like Like x 1
  8. It won't. I have mine on localhost too and works. His problem is in the host driver.
     
  9. Java might translate 'localhost' to :::1 instead of 127.0.0.1
    (It worked for me.)
     
    • Like Like x 1
  10. Nope still not works

    I write somthing wrong in my main class now it works fine Thanks for all surport
     
    #11 WaffleMast3r, Jun 4, 2017
    Last edited by a moderator: Jun 5, 2017
Thread Status:
Not open for further replies.