Jump to content
  • 0

Faction Error


ganjaradio

Question

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
Link to comment
Share on other sites

15 answers to this question

Recommended Posts

  • 0

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.

Link to comment
Share on other sites

  • 0

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
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...