On Thursday 11 February 2010 15:40:09 Walt Rarus wrote: > 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?
Same resolution as every other time cron errors come up: cron does NOT run in a shell with an environment. It does not use /etc/profile. You must set up your own environment in your script run from cron. For example, you are likely missing JAVA_HOME and friends. -- alan dot mckinnon at gmail dot com

