Java http server instability

I have a custom server that sends several files to a client via http. Sometimes the server becomes unresponsive and prints out "errornull". i'm not sure why this is but i'm not the best at Java.. so here is source code: (note I am using an API from Bukkit for Minecraft. its really straight forward just not everything is static.)

Re: Java http server instability

Almost nobody knows about it but the Java JRE comes bundled with a complete http server; here's its documentation. I don't know why it is bundled with an ordinary JSE and why Sun/Oracle doesn't mention it, but it's there in all its glory. Give it a try, there's no need to install jar files or anything, it is already on board.

kind regards,

Jos

I have the stamina of a seal; I lie on the beach instead of running on it.