Bug 92913 - Shipped helloworld.js macro crashes LO
Summary: Shipped helloworld.js macro crashes LO
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
4.4.4.3 release
Hardware: x86-64 (AMD64) All
: high major
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 94000 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-07-24 12:07 UTC by Andreas Säger
Modified: 2016-05-25 16:44 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Säger 2015-07-24 12:07:04 UTC
Open some (new) Writer document.

Navigate to macro 
menu:Tools>Macros>Organize>JavaScript>LibreOfficeMacros>HelloWorld>helloworld.js
Click the [Run] button.

Result:
[jni_uno bridge error] UNO calling Java method getPropertyValue: non-UNO exception occurred: java.lang.RuntimeException: java.lang.NoSuchFieldException: uri
java stack trace:
java.lang.RuntimeException: java.lang.NoSuchFieldException: uri
	at com.sun.star.lib.uno.helper.PropertySet.getPropertyValue(PropertySet.java:845)
	at com.sun.star.lib.uno.helper.PropertySet.getPropertyValue(PropertySet.java:380)
Caused by: java.lang.NoSuchFieldException: uri
	at java.lang.Class.getDeclaredField(Class.java:1953)
	at com.sun.star.lib.uno.helper.PropertySet.getPropertyValue(PropertySet.java:838)
	... 1 more

Closing the error box exits the whole suite.


Further discussion and screenshots:
https://forum.openoffice.org/en/forum/viewtopic.php?f=20&t=78286
Comment 1 tommy27 2015-07-26 06:49:57 UTC
issue confirmed in the OpenOffice forum by other users, on Windows as well as in Linux

status --> NEW 
hardware --> ALL
Comment 2 Julien Nabet 2015-08-02 11:02:37 UTC
On pc Debin x86-64 with master sources updated yesterday, I don't reproduce this.

With LO Debian package 4.4.4.3, I don't even have Javascript entry! I've just got:
- LibreOffice Basic
- Python
Comment 3 Julien Nabet 2015-09-07 19:08:35 UTC
*** Bug 94000 has been marked as a duplicate of this bug. ***
Comment 4 Julien Nabet 2015-09-07 19:19:48 UTC
On pc Debian x86-64 with master sources updated yesterday, I still don't reproduce this.
With LO testing Debian package (5.0.1.2), I found I had to install libreoffice-script-provider-js package to access js macro.
But still, I don't reproduce this.

I wonder if it could be a packaging pb, I'm a bit stucked.
Comment 5 Andreas Säger 2016-02-22 19:01:46 UTC
OK with LO5.1 but not with 4.4.7 on the same Ubuntu x64 machine.
Comment 6 tommy27 2016-02-22 19:22:34 UTC
4.4.x is End-of-Life branch

is issue is fixed in 5.1.x (and hopefully 5.0.x too) we could mark this as RESOLVED WORKSFORME
Comment 7 Caolán McNamara 2016-05-25 16:44:45 UTC
"OK LO5.1 but not with 4.4.7" so close this as fixed in current release