Jump to content

Question

Posted (edited)

Ive added the faction system from AccessDenied in the pack StormDC, but im getting this error: http://imgur.com/a/abKoc

the faction.java file: https://pastebin.com/PYzwCB9i

the sql file: https://pastebin.com/tgezJzgR

the error wont let the server load more.

thx in advance

Edited by ganjaradio

15 answers to this question

Recommended Posts

  • 0
Posted

What is BasicDataSource line 45 ?

 

You probably initialized the faction system before the connection pooler. Or there is no connections available and your pack got no loop waiting for a connection to free.

  • 0
Posted (edited)

line 45:     while(result.next())

 while(result.next())
           {
               int id = result.getInt("factionId");
              String name = result.getString("factionName");
               String[] pos = result.getString("factionPos").split(";");
               Location loc = new Location(Integer.parseInt(pos[0]), Integer.parseInt(pos[1]), Integer.parseInt(pos[2]));
               String color = result.getString("factionColor");
              
               factions.put(id, new FactionHolder(id, name, loc, color));
           }
Edited by ganjaradio
Guest
This topic is now closed to further replies.


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..