Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NullPointerException with openjdk 6 on Ubuntu 12.04

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

like image 727
Jeremy McJunkin Avatar asked Sep 13 '12 14:09

Jeremy McJunkin


1 Answers

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).

like image 131
Jeremy McJunkin Avatar answered Oct 06 '22 01:10

Jeremy McJunkin