Thread Locked This thread is locked - replies are not allowed.


This question is answered.


Permlink Replies: 2 - Pages: 1 - Last Post: 2 Jun 22, 19:54 Last Post By: robbif Threads: [ Previous | Next ]
robbif

Posts: 22
Registered: 15-Oct-2008
Saturn 83 Crash in Make Album
Posted: 2 Jun 22, 16:32
 
Stack trace for jAlbum 28.1.5 using skin Saturn 83:

se.datadosen.util.ScriptException: javax.script.ScriptException: Sourced file: inline evaluation of: ``// Utility functions private String trimToNull(String s) { if(s == null || . . . '' : Command not found: juWarning( java.lang.String ) : at Line: 98 : in file: inline evaluation of: ``// Utility functions private String trimToNull(String s) { if(s == null || . . . '' : juWarning ( "File missing or locked: " + shortFileName )
in init.bsh at line number 98
at se.datadosen.util.ScriptException.of(ScriptException.java:59)
at se.datadosen.jalbum.AlbumBean.processScript(AlbumBean.java:2947)
at se.datadosen.jalbum.AlbumBean.prepareMakeAlbum(AlbumBean.java:3497)
at se.datadosen.jalbum.AlbumBean.makeAlbum(AlbumBean.java:3205)
at se.datadosen.jalbum.AlbumBean.smartMakeAlbum(AlbumBean.java:3154)
at se.datadosen.jalbum.JAlbumFrame$7.run(JAlbumFrame.java:1170)
Caused by: javax.script.ScriptException: Sourced file: inline evaluation of: ``// Utility functions private String trimToNull(String s) { if(s == null || . . . '' : Command not found: juWarning( java.lang.String ) : at Line: 98 : in file: inline evaluation of: ``// Utility functions private String trimToNull(String s) { if(s == null || . . . '' : juWarning ( "File missing or locked: " + shortFileName )
in inline evaluation of: ``// Utility functions private String trimToNull(String s) { if(s == null || . . . '' at line number 98
at bsh.BshScriptEngine.evalSource(BshScriptEngine.java:96)
at bsh.BshScriptEngine.eval(BshScriptEngine.java:57)
at java.scripting/javax.script.AbstractScriptEngine.eval(Unknown Source)
at se.datadosen.jalbum.AlbumBean.doProcessExpression(AlbumBean.java:3004)
at se.datadosen.jalbum.AlbumBean.processExpression(AlbumBean.java:2989)
at se.datadosen.jalbum.AlbumBean.processScript(AlbumBean.java:2944)
... 4 more
JeffTucker

Posts: 8,199
Registered: 31-Jan-2006
Re: Saturn 83 Crash in Make Album
Posted: 2 Jun 22, 17:00   in response to: robbif in response to: robbif
Correct
Attachment init.bsh (32.8 KB)
I do like the easy ones. This is what happens when I steal code from one skin, and use it in another. The juWarning, of course, is defined only in Jupiter, so it bombs out in Saturn. I really need to do some rationalizing on some of my utility code, so this doesn't keep happening. I just went looking, and found a half-dozen additional instances of exactly the same bit of sloppiness.

Open the skin directory - Tools, Open directories, Skin directory - and replace the init.bsh file with the attached version.

Better fix in the next releases of everything. ;)
robbif

Posts: 22
Registered: 15-Oct-2008
Re: Saturn 83 Crash in Make Album
Posted: 2 Jun 22, 19:54   in response to: JeffTucker in response to: JeffTucker
 
Whew!
Thanks!
Legend
Forum admins
Helpful Answer
Correct Answer

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