This content has been marked as final. Show 2 replies
Hi, I think I can't help you, because I can't even compile the method you have posted. The problem is at the line, where it is written:
And it tells that the readLine() method is undefined (which is in fact true). By the way, by just looking at the code I do not understand why are you catching a NullPointerException and what causes it to be thrown (maybe the unknown readLine() method). Still there are more information required to solve your problem.
line = readLine().trim();
Is your problem solved ? Which server are you using ?
Please change the "Sun JVM memory allocation pool parameters" in the script which is used to run the server. (For eg, run.bat file in JBoss)
This will increase the memory space for running your application and OutOfMemoryException won't come.