I recently upgraded to ubuntu 12.04 from 10.10. Since then, I get a NullPointerException in the TimeZone class with openjdk 6.
TimeZone.getTimeZone("GMT-0:00");
There is no exception with openjdk 7, nor do my coworkers get an exception with openjdk6. So it looks like I'm missing some necessary library.
Also, this works just fine: TimeZone.getTimeZone("GMT")
on my machine with openjdk 6
I was able to solve it by complete removing the tzdata-java package and re-installing. Note that also removed a bunch of openjdk6 packages as well. (I had already tried completely removing and reinstalling the openjdk6 packages without luck).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With