Skip to content

Faction Error

Featured Replies

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

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.

  • Author

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.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.