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...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock