M
Markus Dehmann
I just wasted hours and hours finding the source of a
NullPointerException I was getting.
It turns out the "java -server" switch causes such a NullPointerException.
My application reads in 40,000 text lines and processes them. The
tricky thing is that the NullPointerException occurs every time on a
different input line.
I nearly got insane. But now I know it's "java -server"'s fault.
I tested it with java 1.4.2_01 and 1.5.0_03-b07 on Redhat Linux. And
everytime I use -server I get the exception.
Is this a known bug?
Another thing that made me insane is that the exception *never* occured
on my Mac, with java 1.4.2-54, no matter if I used -server or not.
BTW, I read the input from a FileInputStream. Should I better use
something Buffered...?
Thanks!
Markus
NullPointerException I was getting.
It turns out the "java -server" switch causes such a NullPointerException.
My application reads in 40,000 text lines and processes them. The
tricky thing is that the NullPointerException occurs every time on a
different input line.
I nearly got insane. But now I know it's "java -server"'s fault.
I tested it with java 1.4.2_01 and 1.5.0_03-b07 on Redhat Linux. And
everytime I use -server I get the exception.
Is this a known bug?
Another thing that made me insane is that the exception *never* occured
on my Mac, with java 1.4.2-54, no matter if I used -server or not.
BTW, I read the input from a FileInputStream. Should I better use
something Buffered...?
Thanks!
Markus