1.5.0_16 is broken. There are known issues with it throwing incorrect MalformedURLExceptions in code:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6746185
Unfortunately, since PPC and 32-bit Intel platforms won't ever get an upgrade path to JRE 1.6, your only option as an end user...