L
Luke
My application was throwing an OutOfMemoryError. While looking for the
problem I was surprised to find that I could not catch the error and
print the stack trace. My catch statement seemed to be ignored and I
would only see a "java.lang.OutOfMemoryError" logged to the System.out
stream.
I was allocating large chunks of memory, so when the error happened I
assumed that there would be enough memory left for my application to
handle the error. I'm still curious about the failure to catch the
error.
problem I was surprised to find that I could not catch the error and
print the stack trace. My catch statement seemed to be ignored and I
would only see a "java.lang.OutOfMemoryError" logged to the System.out
stream.
I was allocating large chunks of memory, so when the error happened I
assumed that there would be enough memory left for my application to
handle the error. I'm still curious about the failure to catch the
error.