at java.lang.NumberFormat.Exception.forInputString?

Hey i keep getting these messages about this problem and its annoying. The name of the post explains the problem that keeps appearing. Please tell which part of the codes I'm going to show it the problem and how to fix.

public server() {
// the current way of controlling the server at runtime and a great debugging/testing tool
//jserv js = new jserv(this);
//js.start();

}

// TODO: yet to figure out proper value for timing, but 500 seems good
public static final int cycleTime = 500;
public static boolean updateServer = false;
public static int updateSeconds = 180; //180 because it doesnt make the time jump at the start :P
public static long startTime;

public static void main(java.lang.String args[]) {
clientHandler = new server();
(new Thread(clientHandler)).start(); // launch server listener
playerHandler = new PlayerHandler();
npcHandler = new NPCHandler();
itemHandler = new ItemHandler();
shopHandler = new ShopHandler();
antilag = new antilag();
itemspawnpoints = new itemspawnpoints();
GraphicsHandler = new GraphicsHandler();
int waitFails = 0;
long lastTicks = System.currentTimeMillis();
long totalTimeSpentProcessing = 0;
int cycle = 0;
while(!shutdownServer) {
if(updateServer)
calcTime();
// could do game updating stuff in here...
// maybe do all the major stuff here in a big loop and just do the packet
// sending/receiving in the client subthreads. The actual packet forming code
// will reside within here and all created packets are then relayed by the subthreads.
// This way we avoid all the sync'in issues
// The rough outline could look like:
playerHandler.process(); // updates all player related stuff
npcHandler.process();
itemHandler.process();
shopHandler.process();
antilag.process();
itemspawnpoints.process();
System.gc();
// doNpcs() // all npc related stuff
// doObjects()
// doWhatever()

public static server clientHandler = null; // handles all the clients
public static java.net.ServerSocket clientListener = null;
public static boolean shutdownServer = false; // set this to true in order to shut down and kill the server
public static boolean shutdownClientHandler; // signals ClientHandler to shut down
public static int serverlistenerPort = 43594; //43594=default

Hey i keep getting these messages about this problem and its annoying. The name of the post explains the problem that keeps appearing. Please tell which part of the codes I'm going to show it the problem and how to fix.

The error messages already tell you which line is causing the error, and you should focus on that (those) line(s). You seem to be trying to parse a non-numeric String to a number on those lines.

Other suggestions that will help you get help:
1) Find the problem (again, the error message will tell you where) and post less code as I don't think any of the volunteers here will have time to go through the volumes of code posted here. How much is enough? hard to tell, but it's certainly less than this.
2) Check out how to use the forum code tags so that your posted code retains its formatting and is readable. The first link in my signature links will show you how.

Here is the error part:
"at ItemHandler.loadItemList(ItemHandler.java:312)"
I found that "...ItemHandler.loadItemList" Part its...

loadItemList("312");
//loadDrops("drops.cfg");

but where do i put or do with the "(ItemHandler.java:312)" error part with that code above?

I'm not sure whether to laugh or cry, but what the error message is telling you is that there's an error in the ItemHandler class. So despite your posting a chit-load of code, you didn't post the code from the class causing the error.

what im trying to say is what do i replace to fix it. I found out its telling the places but what do i replace in those places or whatever.

You look at the code on the line indicated by the error and based on the error message itself and the code you see, you figure out why it's causing an error and then you fix it. I'm not sure how to help you any more than that seeing as how you have not even shown us the code that's causing the error yet.

at java.lang.NumberFormatException.forInputString(Num berFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:449)
at java.lang.Integer.parseInt(Integer.java:499)
at ItemHandler.loadItemList(ItemHandler.java:312)
at ItemHandler.(init)(ItemHandler.java:39)
at server.main(server.java:27)

btw the "...(NumberFormatException...", in the Number part there isnt a space, its together.

at java.lang.NumberFormatException.forInputString(Num berFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:449)
at java.lang.Integer.parseInt(Integer.java:499)
at ItemHandler.loadItemList(ItemHandler.java:312)
at ItemHandler.(init)(ItemHandler.java:39)
at server.main(server.java:27)

btw the "...(NumberFormatException...", in the Number part there isnt a space, its together.

Once again...
The error is telling you that you are trying to parse a non-numeric String into a number on line 312 of your ItemHandler class, a class which as yet you have not yet shown us (as I have already mentioned above).

I ask because ItemHandler, ObjectHandler, ShopHandler are part of runescape. If you didn't actually write the code you are going to have a hard time fixing it. (as will the people here). And there are fora devoted to this thing (whatever it is.)

So this suggests that at some time during the program's run token3[(6 + i)] does not hold a valid String representation of an int, and the parse is failing. To debug this, you could put in a println statement to see what this variable holds just prior to the parse.