RFC: Better Netx error message

Omair Majid omajid at redhat.com
Mon May 25 07:20:46 PDT 2009


Hi,

Netx's error messages tend to be cryptic. For example, running javaws on 
a jnlp with missing 'title' and 'home' elements:
$ javaws Broken.jnlp
netx: null
That doesnt make it clear if javaws did anything. Perhaps it ran to 
completion? The attached patch makes the error a lot more explicit:
$ java net.sourceforge.jnlp.runtime.Boot Broken.jnlp
netx: Unexpected java.lang.NullPointerException at 
java.lang.Thread.init(Thread.java:366)

ChangeLog:
2009-05-25  Omair Majid  <omajid at redhat.com>
     * rt/net/sourceforge/jnlp/resources/Messages.properties: Add
     RUnexpected to show generic information
     * rt/net/sourceforge/jnlp/runtime/Boot.java (run): Show more
     information about the fatal exception.


Any comments?

Cheers,
Omair
-------------- next part --------------
A non-text attachment was scrubbed...
Name: netx-better-error-messages.patch
Type: text/x-patch
Size: 1190 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20090525/1ec1ae38/netx-better-error-messages.patch 


More information about the distro-pkg-dev mailing list