I have a java (clojure, actually) program which is invoked via a bash script. When the script is invoked from the shell, the java program always runs and succeeds. However, when the script is invoked via a cron job, the java program always runs and crashes with a null pointer exception.
Any thoughts on how to debug the situation?