Lieber Hilbig,

interessant! Wenn ich das richtig lese, funktioniert es 19 Mal und ab dem 20. Mal nicht mehr?

Bitte schicken Sie mir ein zip-Archiv mit Ihrem Programm über die Liste mit allen Bestandteilen (also auch allen Dateien) und einem kleinen readme.txt-Datei, in der dokumentiert ist, was damit bewirkt werden soll und wie man es startet.

Zudem würde ich gerne die exakte ooRexx-, Java- und BSF4ooRexx-Versionen von Ihnen kennenlernen, z.B. mit dem Programm:

say .bsf4rexx~display.version
::requires 'BSF.CLS'

oder auf der Kommandozeile:

rexx -e "say .bsf4rexx~display.version; ::requires 'BSF.CLS' "

Mit freundlichem Gruß

Rony G. Flatscher


On 29.01.2020 15:26, Andreas Hilbig wrote:
C:\Users\User\Desktop\click>rexx click_counter.rex
REXXout>Button clicked:  1
REXXout>Button clicked:  2
REXXout>Button clicked:  3
REXXout>Button clicked:  4
REXXout>Button clicked:  5
REXXout>Button clicked:  6
REXXout>Button clicked:  7
REXXout>Button clicked:  8
REXXout>Button clicked:  9
REXXout>Button clicked:  10
REXXout>Button clicked:  11
REXXout>Button clicked:  12
REXXout>Button clicked:  13
REXXout>Button clicked:  14
REXXout>Button clicked:  15
REXXout>Button clicked:  16
REXXout>Button clicked:  17
REXXout>Button clicked:  18
REXXout>Button clicked:  19
REXXout>Button clicked:  20
REXXout>7 15:20:05 15:20:12
REXXout>aktuell im Verzeichnis: C:\Users\User\Desktop\click
REXXout>fn=points.ods SysFileExists(fn)=1
REXXout>uri     : file:///C:/Users/User/Desktop/click/points.ods
REXXout>fullpath: C:\Users\User\Desktop\click\points.ods SysFileExists(fullpath)
: 1

-- Das AOO antwortet nicht -> dann schließen wir das AOO manuell und als nächstes kommt dann folgendes: 

Exception in thread "JavaFX Application Thread" java.lang.RuntimeException: java
x.script.ScriptException: org.rexxla.bsf.engines.rexx.RexxException: BSF4ooRexx/
routine/jniRexxSendMessageToRexxObject(), error 5:
       *-* Compiled routine "BSF".
Error 40 running C:\Program Files (x86)\OpenOffice 4\program\UNO.CLS line 1858:
 Incorrect call to routine.
Error 40.900:  BSF4ooRexx/routine/BSF(), error 3: Java exception occurred: [org.
apache.bsf.BSFException: BSF4ooRexx subfunction "invoke":
        bean:        [class org.oorexx.uno.RgfReflectUNO] --> type: <org.oorexx.
uno.RgfReflectUNO>
        method:      [FINDINTERFACEWITHMEMBER] not found or execution error!
        -> check method name=[FINDINTERFACEWITHMEMBER] (caseless o.k., but corre
ct spelling?)
        -> check supplied arguments (correct number, correct types?):
                arg # 1: Rexx argument=[com.sun.proxy.$Proxy10@1991c7d] --> Java
 value="[Proxy:26811517,5ed0098;msci[0];611d71f0e8c34bb795717e8f12ee9f26..." typ
e=<com.sun.proxy.$Proxy10>
                arg # 2: Rexx argument=[LOADCOMPONENTFROMURL] --> Java value="LO
ADCOMPONENTFROMURL" type=<java.lang.String>
                arg # 3: Rexx argument=[0] --> Java value="0" type=<java.lang.St
ring>
                arg # 4: Rexx argument=[0] --> Java value="0" type=<java.lang.St
ring>
                arg # 5: Rexx argument=[1] --> Java value="1" type=<java.lang.St
ring>
].
        at javafx.fxml.FXMLLoader$ScriptEventHandler.handle(Unknown Source)
        at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unkn
own Source)
        at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknow
n Source)
        at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknow
n Source)
        at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(U
nknown Source)
        at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Sourc
e)
        at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Sou
rce)
        at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Sourc
e)
        at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Sou
rce)
        at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Sourc
e)
        at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Sou
rce)
        at com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
        at com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
        at javafx.event.Event.fireEvent(Unknown Source)
        at javafx.scene.Node.fireEvent(Unknown Source)
        at javafx.scene.control.Button.fire(Unknown Source)
        at com.sun.javafx.scene.control.behavior.ButtonBehavior.mouseReleased(Un
known Source)
        at com.sun.javafx.scene.control.skin.BehaviorSkinBase$1.handle(Unknown S
ource)
        at com.sun.javafx.scene.control.skin.BehaviorSkinBase$1.handle(Unknown S
ource)
        at com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.h
andleBubblingEvent(Unknown Source)
        at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unkn
own Source)
        at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknow
n Source)
        at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknow
n Source)
        at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(U
nknown Source)
        at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Sourc
e)
        at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Sou
rce)
        at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Sourc
e)
        at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Sou
rce)
        at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Sourc
e)
        at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Sou
rce)
        at com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
        at com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
        at javafx.event.Event.fireEvent(Unknown Source)
        at javafx.scene.Scene$MouseHandler.process(Unknown Source)
        at javafx.scene.Scene$MouseHandler.access$1500(Unknown Source)
        at javafx.scene.Scene.impl_processMouseEvent(Unknown Source)
        at javafx.scene.Scene$ScenePeerListener.mouseEvent(Unknown Source)
        at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotificatio
n.run(Unknown Source)
        at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotificatio
n.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEve
nt$354(Unknown Source)
        at com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(Unknown
 Source)
        at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(Unkn
own Source)
        at com.sun.glass.ui.View.handleMouseEvent(Unknown Source)
        at com.sun.glass.ui.View.notifyMouse(Unknown Source)
        at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
        at com.sun.glass.ui.win.WinApplication.lambda$null$148(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Caused by: javax.script.ScriptException: org.rexxla.bsf.engines.rexx.RexxExcepti
on: BSF4ooRexx/routine/jniRexxSendMessageToRexxObject(), error 5:
       *-* Compiled routine "BSF".
Error 40 running C:\Program Files (x86)\OpenOffice 4\program\UNO.CLS line 1858:
 Incorrect call to routine.
Error 40.900:  BSF4ooRexx/routine/BSF(), error 3: Java exception occurred: [org.
apache.bsf.BSFException: BSF4ooRexx subfunction "invoke":
        bean:        [class org.oorexx.uno.RgfReflectUNO] --> type: <org.oorexx.
uno.RgfReflectUNO>
        method:      [FINDINTERFACEWITHMEMBER] not found or execution error!
        -> check method name=[FINDINTERFACEWITHMEMBER] (caseless o.k., but corre
ct spelling?)
        -> check supplied arguments (correct number, correct types?):
                arg # 1: Rexx argument=[com.sun.proxy.$Proxy10@1991c7d] --> Java
 value="[Proxy:26811517,5ed0098;msci[0];611d71f0e8c34bb795717e8f12ee9f26..." typ
e=<com.sun.proxy.$Proxy10>
                arg # 2: Rexx argument=[LOADCOMPONENTFROMURL] --> Java value="LO
ADCOMPONENTFROMURL" type=<java.lang.String>
                arg # 3: Rexx argument=[0] --> Java value="0" type=<java.lang.St
ring>
                arg # 4: Rexx argument=[0] --> Java value="0" type=<java.lang.St
ring>
                arg # 5: Rexx argument=[1] --> Java value="1" type=<java.lang.St
ring>
].
        at org.rexxla.bsf.engines.rexx.jsr223.RexxCompiledScript.createScriptExc
eption(RexxCompiledScript.java:579)
        at org.rexxla.bsf.engines.rexx.jsr223.RexxCompiledScript.eval(RexxCompil
edScript.java:308)
        at org.rexxla.bsf.engines.rexx.jsr223.RexxScriptEngine.eval(RexxScriptEn
gine.java:835)
        at javax.script.AbstractScriptEngine.eval(Unknown Source)
        ... 48 more
Caused by: org.rexxla.bsf.engines.rexx.RexxException: BSF4ooRexx/routine/jniRexx
SendMessageToRexxObject(), error 5:
       *-* Compiled routine "BSF".
Error 40 running C:\Program Files (x86)\OpenOffice 4\program\UNO.CLS line 1858:
 Incorrect call to routine.
Error 40.900:  BSF4ooRexx/routine/BSF(), error 3: Java exception occurred: [org.
apache.bsf.BSFException: BSF4ooRexx subfunction "invoke":
        bean:        [class org.oorexx.uno.RgfReflectUNO] --> type: <org.oorexx.
uno.RgfReflectUNO>
        method:      [FINDINTERFACEWITHMEMBER] not found or execution error!
        -> check method name=[FINDINTERFACEWITHMEMBER] (caseless o.k., but corre
ct spelling?)
        -> check supplied arguments (correct number, correct types?):
                arg # 1: Rexx argument=[com.sun.proxy.$Proxy10@1991c7d] --> Java
 value="[Proxy:26811517,5ed0098;msci[0];611d71f0e8c34bb795717e8f12ee9f26..." typ
e=<com.sun.proxy.$Proxy10>
                arg # 2: Rexx argument=[LOADCOMPONENTFROMURL] --> Java value="LO
ADCOMPONENTFROMURL" type=<java.lang.String>
                arg # 3: Rexx argument=[0] --> Java value="0" type=<java.lang.St
ring>
                arg # 4: Rexx argument=[0] --> Java value="0" type=<java.lang.St
ring>
                arg # 5: Rexx argument=[1] --> Java value="1" type=<java.lang.St
ring>
].
        at org.rexxla.bsf.engines.rexx.RexxAndJava.jniRexxSendMessageToRexxObjec
t(Native Method)
        at org.rexxla.bsf.engines.rexx.RexxEngine.call(RexxEngine.java:598)
        at org.rexxla.bsf.engines.rexx.RexxProxy.sendMessage(RexxProxy.java:345)
        at org.rexxla.bsf.engines.rexx.jsr223.RexxCompiledScript.eval(RexxCompil
edScript.java:299)
        ... 50 more

-- 
--
__________________________________________________________________________________

Prof. Dr. Rony G. Flatscher
Department Informationsverarbeitung und Prozessmanagement
Institut für Wirtschaftsinformatik und Gesellschaft
D2c 2.086
WU Wien
Welthandelsplatz 1
A-1020  Wien/Vienna, Austria/Europe

http://www.wu.ac.at
__________________________________________________________________________________