openoffice-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Larry Evans <cppljev...@suddenlink.net>
Subject Re: calc BeanShell script save gives "error saving script" window.
Date Mon, 04 Mar 2013 15:15:30 GMT
On 03/04/13 08:31, Ariel Constenla-Haile wrote:
> On Mon, Mar 04, 2013 at 07:59:57AM -0600, Larry Evans wrote:
>> On 03/03/13 17:50, Ariel Constenla-Haile wrote:
>>> Hi,
>>>
>>> On Sun, Mar 03, 2013 at 12:09:25PM -0600, Larry Evans wrote:
>>>> // Debug: Invoking method (after massaging values): public static
>>>> java.lang.Object
>>>> com.sun.star.uno.UnoRuntime.queryInterface(java.lang.Class,java.lang.Object)
>>>> with tmpArgs:
>>>> // Debug: tmpArgs[0] = interface com.sun.star.frame.XModel type = class
>>>> java.lang.Class
>>>> java.lang.NullPointerException
>>>>     at bsh.Reflect.invokeOnMethod(Unknown Source)
>>>>     at bsh.Reflect.invokeStaticMethod(Unknown Source)
>>>>     at bsh.Name.invokeMethod(Unknown Source)
>>>>     at bsh.BSHMethodInvocation.eval(Unknown Source)
>>>>     at bsh.BSHPrimaryExpression.eval(Unknown Source)
>>>>     at bsh.BSHPrimaryExpression.eval(Unknown Source)
>>>>     at bsh.BSHAssignment.eval(Unknown Source)
>>>>     at bsh.Interpreter.eval(Unknown Source)
>>>>     at bsh.Interpreter.eval(Unknown Source)
>>>>     at bsh.Interpreter.eval(Unknown Source)
>>>>     at
>>>> com.sun.star.script.framework.provider.beanshell.ScriptImpl.invoke(Unknown
>>>> Source)
>>> "Unknown Source" means sources were compiled without -g, hard to guess
>>> what's happening there. Try these jars compiled with -g:
>>> http://people.apache.org/~arielch/api/scriptingfwkdebug.tar.gz
>>> The JARs in the folder classes should be placed in
>>> openoffice.org/basis3.5/program/classes/
>> I can see no basis3.5:
>> Instead, I just see basis3.4.  What should I do?
> I should have used placeholders ;) Put the jars in
> openoffice.org/basis<major.minor>/program/classes/
>
> basis3.4 in your case.
[snip]

After replacing the existing jars with the debug ones, did:

~/download/OpenOffice/r1372282/Apache_OpenOffice_incubating_3.4.1_Linux_x86-64_install-arc_en-US/openoffice.org3/program
$ ./scalc BeanShell.ods &
[sh] 5533

And after enabling macros, got window entitled "OpenOffice.org error"
with body
contains yellow triangle with ! in middle and text:

  A Scripting Framework error occurred while running the BeanShell
  script Library1.Macro1.bsh

  Message: The scripting language BeanShell is not supported.

What should I do now?

Again, thanks for the help, Ariel.

-regards,
Larry

 



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@openoffice.apache.org
For additional commands, e-mail: users-help@openoffice.apache.org


Mime
View raw message