calc BeanShell script, save failure

asked 2019-07-22 11:21:26 +0200

cbg.jahn gravatar image

[symptom] failure of <save> BeanShell script (only 1 extra blank line)

Dear LO/AOO experts:

This symptom is found in 4 test environments. I wonder if this symptom could be reproduced in other platforms. I appreciate your guidance on where my mistake is.

The procedure to replicate the symptom is given below.

Thanks.
Ray

[error dialog]

BeanShell Debug Window: /1/Scripts/beanshell/lib01/test+01.bsh/ucb/.
LO → Error saving script: Unable to create Content for "vnd.sun.star.tdoc:/1/Scripts/beanshell/lib01/test+01.bsh".
AOO → Error saving script: com.sun.star.ucb.ContentCreationException: Unable to create Content.

The number <1> in /1/Scripts/... may vary.

[test procedure]

01.0 (fresh LO launch)
01.1 Close LO, if any.
01.2 Launch LO.

02.0 (fresh BeanShell)
02.1 main menu, File, New Spreadsheet.
02.2 main menu, Tools, Macros, Organize Macros, BeanShell.
02.3 dialog appears for BeanShell Macros.
02.4 Select "Untitled 1", Create, enter "Lib01" → OK
02.5 Select "Lib01", Create, enter "test 01" → OK
02.6 Select "test 01.bsh", Edit
02.7 dialog appears
BeanShell Debug Window: /5/Scripts/beanshell/lib01/test+01.bsh/ucb/
The script content pane (low right) contains 2 blank lines.

03.0 (induce symptoms of BeanShell)
03.1 left click "Save". → OK, no error.
03.2 left click the script content pane (lower right).
03.3 add 1 empty line by pressing "enter".
03.4 left click "Save". → Failure.
03.5 An error dialog appears. See [error dialog] for details.

04.0 (induce more symptoms)
04.1 left click "Clear".
04.2 The script content pane (lower right) is restored to 2 blank lines.
04.3 left click "Save". → Failure.
04.4 The same error dialog appears. See [error dialog] for details.

[test environment]

4 platforms, all with the same error.

01.
MS Windows XP SP3, x32
AOO 4.1.6 x32.
BeanShell = intrinsic
JRE = Oracle JRE 1.8.0.152 (last version installable on XP).
JVM = hotspot

02.
MS Windows XP SP3, x32.
LO 5.4.7.2 x32 (last version installable on XP).
BeanShell = intrinsic.
JRE = Oracle JRE 1.8.0.152 (last version installable on XP).
JVM = hotspot.

03.
MS Windows 8.1, x64.
LO 6.2.4.2 x64.
JRE = AdoptOpenJDK JRE 1.8.0.212.
JVM = OpenJ9

04.
MS Windows 10, x64.
LO 6.2.5.2 x64.
JRE = AdoptOpenJDK JRE 1.8.0.212.
JVM = OpenJ9

[installation paths]

LO = c:/programs/office/loo (LibreOffice)
AOO = c:/programs/office/aoo (Apache OO)
BeanShell = c:/programs/office/loo/program/classes/bsh.jar
JRE = c:/programs/java/jre/bin/java.exe


edit retag flag offensive close merge delete