How to troubleshoot
Debug either using a debugger or print statements.
Try to isolate and identify the error’s source.
Sometimes -not very often- it is not your fault and you bumped into a genuine Java bug.
In this case, it is quite likely that other people have already found a workaround. Search the Usenet and specially :
- comp.lang.java.programmer
- comp.lang.java.api
- comp.lang.java.tech
- comp.lang.java.security
- comp.lang.java.setup
- comp.lang.java.misc