This question is answered.


Permlink Replies: 1 - Pages: 1 - Last Post: 20 Feb 22, 22:48 Last Post By: davidekholm
ctwist

Posts: 422
Registered: 27-Sep-2003
Background processing error
Posted: 20 Feb 22, 21:30
 
  Click to reply to this thread Reply
Testing in jAlbum 26.2.1 and 26.3b3

If I disable background mode, the album generates successfully.

If I enable background mode, album generation fails with error
se.datadosen.util.ScriptException: java.lang.NullPointerException in init.bsh at line number 9
The statement that fails is
new MgInit(engine);
Logged messages show that MgInit.java was partially processed.

System console does not contain the Java error stack, so I can't identify the statement that failed. The stack shows in other circumstances; it just doesn't appear in this situation.

How can I write the Java error stack to system console?
davidekholm

Posts: 4,102
Registered: 18-Oct-2002
Re: Background processing error
Posted: 20 Feb 22, 22:48   in response to: ctwist in response to: ctwist
Correct
  Click to reply to this thread Reply
Wrap that call in a try { ... } catch (Throwable t) { t.printStackTrace(System.out); }
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums