rgf, 20160623
-------------

Problem: when using REPLY in event handlers, then there is sometimes a Java Nullpointer problem on the bridge!

Examples:

        04-forms-clr-runtime-exception-in-bsf.rex
        09-clock-runtime-exception-in-bsf.rex

compare to:

        04-forms-clr.rxj
        09-clock.rex

debug-say-statements in CLR.CLS need reactivation before and after invoking a method and displaying ppCondition2()
in CLR::unknown at the very end.

---rgf


===========================================================================

F:\tmp\bsf4oorexx\20160530-baginski\v4rgf\samples>rexx 09-clock.rex
Press any key to close this application.
----------------------------------------
line: [ 839] CLR::UNKNOWN(): BEFORE clr.wrap(args[1])=[HH:mm:ss] class=[The String class]
line: [ 550] clr.box(): 1a) typeIndicator=[ST] [The String class] [String] strValue=[HH:mm:ss] [The String class]
line: [ 552] clr.box(): 1b) typeIndicator=[ST] typeIndicator~objectName=[a String] strValue=[HH:mm:ss] [The String class]
line: [ 565] clr.box(): 2) tmpRes=[system.String@e0a9ec] [The BSF_REFERENCE class]
line: [ 576] clr.box(): proxy=[a CLR_Proxy[system.String@e0a9ec->[HH:mm:ss]]] ~class=[The CLR_Proxy class]
line: [ 844] CLR::UNKNOWN(): AFTER  clr.wrap(args[1])=argument=[a CLR_Proxy[system.String@e0a9ec->[HH:mm:ss]]] ~class=[The CLR_Proxy class]
line: [ 845] CLR::UNKNOWN(): AFTER  clr.wrap(args[1])=argument=[a CLR_Proxy[system.String@e0a9ec->[HH:mm:ss]]] ~clr.jObj=[system.String@e0a9
ec] [HH:mm:ss] ~clr.jType=[system.Type@1841320 [System.String]]
line: [ 849] CLR::UNKNOWN(): before assigning arg(1) to typeList[1], typeList~size=[1] clr.jType=[system.Type@1841320]
line: [ 852] CLR::UNKNOWN(): before assigning arg(1) to argsList[1], argsList~size=[1] clr.jObj=[system.String@e0a9ec]
The current time is 10:45:16
line: [ 839] CLR::UNKNOWN(): BEFORE clr.wrap(args[1])=[HH:mm:ss] class=[The String class]
line: [ 550] clr.box(): 1a) typeIndicator=[ST] [The String class] [String] strValue=[HH:mm:ss] [The String class]
line: [ 552] clr.box(): 1b) typeIndicator=[ST] typeIndicator~objectName=[a String] strValue=[HH:mm:ss] [The String class]
line: [ 565] clr.box(): 2) tmpRes=[system.String@8355dd] [The BSF_REFERENCE class]
line: [ 576] clr.box(): proxy=[a CLR_Proxy[system.String@8355dd->[HH:mm:ss]]] ~class=[The CLR_Proxy class]
line: [ 844] CLR::UNKNOWN(): AFTER  clr.wrap(args[1])=argument=[a CLR_Proxy[system.String@8355dd->[HH:mm:ss]]] ~class=[The CLR_Proxy class]
line: [ 845] CLR::UNKNOWN(): AFTER  clr.wrap(args[1])=argument=[a CLR_Proxy[system.String@8355dd->[HH:mm:ss]]] ~clr.jObj=[system.String@8355
dd] [HH:mm:ss] ~clr.jType=[system.Type@10d9fe7 [System.String]]
line: [ 849] CLR::UNKNOWN(): before assigning arg(1) to typeList[1], typeList~size=[1] clr.jType=[system.Type@10d9fe7]
line: [ 852] CLR::UNKNOWN(): before assigning arg(1) to argsList[1], argsList~size=[1] clr.jObj=[system.String@8355dd]
The current time is 10:45:17
line: [ 393] clr.MethodName()   --- clrType=[system.Type@1df23d3] [Environment] [The BSF_REFERENCE class] [System.Environment] | methodName=
[EXIT] [The String class]
<Java> [class Helper4ooRexx4Net] -> getMethodName(): t=[System.Environment] for [EXIT]
Java. seeking ... argName=[EXIT] i=[0] ... getMethodName()=[Int32 get_TickCount()]
Java. seeking ... argName=[EXIT] i=[1] ... getMethodName()=[Void Exit(Int32)]
Java. ... FOUND! argName=[EXIT] ... getMethodName()=mi[1], strName=[Exit] FOUND!

line: [ 839] CLR::UNKNOWN(): BEFORE clr.wrap(args[1])=[0] class=[The String class]
line: [ 550] clr.box(): 1a) typeIndicator=[Int32] [The String class] [String] strValue=[0] [The String class]
line: [ 552] clr.box(): 1b) typeIndicator=[Int32] typeIndicator~objectName=[a String] strValue=[0] [The String class]
<Java> [class Helper4ooRexx4Net] -> clr_box(): typeIndicator=[Int32], value=[0]
<Java> [class Helper4ooRexx4Net] -> loadParse_String_Methods_for_Primitives()
Exception in thread "Thread-20" Exception in thread "Thread-20" line: [ 951] CLR::UNKNOWN(): in syntax condition at the very end, RAISE PROP
AGATE ...
line: [ 953] CLR::UNKNOWN(): condition:         [ADDITIONAL] =[an Array (2 items) id#_265348872]
                ["BSF4ooRexx/routine/BSF(), error 3: Java exception occurred: [<Unfortunately, Java was not able to create a string from the
 Throwable, because it threw another exception while attempting to do so! " || "0A"x || "jo=[04FFE7B0]=Throwable, joc=[04FFE7B4] Throwable's
 class, jmidName=[05C8503C] method id for ""toString()"", jobj=[00000000] (string result). :( >" || "0A"x || "<Unfortunately, Java was not a
ble to create a string from the second Throwable, because it threw another exception while attempting to do so! " || "0A"x || "jo2=[04FFE7B8
]=Throwable, joc2=[04FFE7BC] Throwables's class, jmidName2=[05C8503C] method id for ""toString()"", jobj2=[00000000] (string result). :( :(
>]"]
                [system.SystemException@ad39b id#_265348728]
        [CODE]       =[40.900]
        [CONDITION]  =[SYNTAX]
        [DESCRIPTION]=[]
        [ERRORTEXT]  =[Incorrect call to routine]
        [INSTRUCTION]=[SIGNAL]
        [MESSAGE]    =["BSF4ooRexx/routine/BSF(), error 3: Java exception occurred: [<Unfortunately, Java was not able to create a string fr
om the Throwable, because it threw another exception while attempting to do so! " || "0A"x || "jo=[04FFE7B0]=Throwable, joc=[04FFE7B4] Throw
able's class, jmidName=[05C8503C] method id for ""toString()"", jobj=[00000000] (string result). :( >" || "0A"x || "<Unfortunately, Java was
 not able to create a string from the second Throwable, because it threw another exception while attempting to do so! " || "0A"x || "jo2=[04
FFE7B8]=Throwable, joc2=[04FFE7BC] Throwables's class, jmidName2=[05C8503C] method id for ""toString()"", jobj2=[00000000] (string result).
:( :( >]"]
        [PACKAGE]    =[a Package id#_264778663]
        [POSITION]   =[563]
        [PROGRAM]    =[F:\tmp\bsf4oorexx\20160530-baginski\v4rgf\samples\CLR.CLS]
        [PROPAGATED] =[1]
        [RC]         =[40]
        [STACKFRAMES]=[a List (8 items) id#_265348211]
                [       *-* Compiled routine BSF id#_265348282]
                [  1630 *-*   res=BSF( "invoke", "java.lang.Class@3cf2ba", "CLR_BOX" , a.1 , a.2 ) id#_265348317]
                [  1630 *-* interpret code ")"       -- execute this dynamically created Rexx string id#_265348373]
                [   563 *-* tmpRes=.clr.helper4rexx~clr_box(typeIndicator,strValue)  -- box the value id#_265348431]
                [   341 *-*                             return clr.box("Int32",value) id#_265348478]
                [   841 *-*                   argument = clr.wrap(args[i]) id#_265348522]
                [  1075 *-* forward to (clr.clzProxy) continue  -- try class proxy first (assuming a static member access) id#_265347905]
                [    51 *-*         Environment~Exit(0)  -- leave application id#_265347952]
        [TRACEBACK]  =[a List (8 items) id#_265348227]
                [       *-* Compiled routine BSF]
                [  1630 *-*   res=BSF( "invoke", "java.lang.Class@3cf2ba", "CLR_BOX" , a.1 , a.2 )]
                [  1630 *-* interpret code ")"       -- execute this dynamically created Rexx string]
                [   563 *-* tmpRes=.clr.helper4rexx~clr_box(typeIndicator,strValue)  -- box the value]
                [   341 *-*                             return clr.box("Int32",value)]
                [   841 *-*                   argument = clr.wrap(args[i])]
                [  1075 *-* forward to (clr.clzProxy) continue  -- try class proxy first (assuming a static member access)]
                [    51 *-*         Environment~Exit(0)  -- leave application]

line: [ 955] CLR::UNKNOWN(): [system.SystemException@ad39b] [The BSF_REFERENCE class]
Exception in thread "Thread-21" Exception in thread "Thread-21" Exception in thread "Thread-22" Exception in thread "Thread-22"        *-* C
ompiled routine BSF
  1630 *-*   res=BSF( "invoke", "system.Type@1df23d3", "TOSTRING" )
  1630 *-* interpret code ")"       -- execute this dynamically created Rexx string
   990 *-*     RETURN "a" self~class~id || pp(clr.jObj"->" || pp(clr.jObj~toString))  -- show objectname and its toString() value
  3489 *-* return "[" || arg(1)~string || "]"
  1085 *-* say "line:" pp(.line~right(4)) "CLR_CLASS::UNKNOWN::CLASS:\\\" "methName="pp(arg(1)) "FORWARDING to -> clr.proxy="pp(clr.proxy) "
clr.jType~toString="pp(clr.jType~toString) "msgName="pp(arg(1)) "arg(2)~size="pp(arg(2)~size)
    51 *-*         Environment~Exit(0)  -- leave application
Error 40 running F:\tmp\bsf4oorexx\20160530-baginski\v4rgf\samples\09-clock.rex line 51:  Incorrect call to routine
Error 40.900:  BSF4ooRexx/routine/BSF(), error 3: Java exception occurred: [<Unfortunately, Java was not able to create a string from the Th
rowable, because it threw another exception while attempting to do so! ?jo=[04FFE7A0]=Throwable, joc=[04FFE7A4] Throwable's class, jmidName=
[05C8503C] method id for "toString()", jobj=[00000000] (string result). :( >?<Unfortunately, Java was not able to create a string from the s
econd Throwable, because it threw another exception while attempting to do so! ?jo2=[04FFE7A8]=Throwable, joc2=[04FFE7AC] Throwables's class
, jmidName2=[05C8503C] method id for "toString()", jobj2=[00000000] (string result). :( :( >]
<Java> [class Helper4ooRexx4Net] -> getMethodName(): t=[System.DateTime] for [NOW], returning method name: [null]

<Java> [class Helper4ooRexx4Net] -> getPropertyName(): t=[System.DateTime] for [NOW], returning: [Now]

<Java> [class Helper4ooRexx4Net] -> clr_unbox(): o.toString()=[23.06.2016 10:45:19], o.GetType()=[System.DateTime]
<Java> [class Helper4ooRexx4Net] -> getMethodName(): t=[System.DateTime] for [TOSTRING], returning: [ToString]

line: [ 839] CLR::UNKNOWN(): BEFORE clr.wrap(args[1])=[HH:mm:ss] class=[The String class]
line: [ 550] clr.box(): 1a) typeIndicator=[ST] [The String class] [String] strValue=[HH:mm:ss] [The String class]
line: [ 552] clr.box(): 1b) typeIndicator=[ST] typeIndicator~objectName=[a String] strValue=[HH:mm:ss] [The String class]
<Java> [class Helper4ooRexx4Net] -> clr_box(): typeIndicator=[ST], value=[HH:mm:ss]
line: [ 565] clr.box(): 2) tmpRes=[system.String@101b95f] [The BSF_REFERENCE class]
line: [ 576] clr.box(): proxy=[a CLR_Proxy[system.String@101b95f->[HH:mm:ss]]] ~class=[The CLR_Proxy class]
line: [ 844] CLR::UNKNOWN(): AFTER  clr.wrap(args[1])=argument=[a CLR_Proxy[system.String@101b95f->[HH:mm:ss]]] ~class=[The CLR_Proxy class]

line: [ 845] CLR::UNKNOWN(): AFTER  clr.wrap(args[1])=argument=[a CLR_Proxy[system.String@101b95f->[HH:mm:ss]]] ~clr.jObj=[system.String@101
b95f] [HH:mm:ss] ~clr.jType=[system.Type@7f65e [System.String]]
line: [ 849] CLR::UNKNOWN(): before assigning arg(1) to typeList[1], typeList~size=[1] clr.jType=[system.Type@7f65e]
line: [ 852] CLR::UNKNOWN(): before assigning arg(1) to argsList[1], argsList~size=[1] clr.jObj=[system.String@101b95f]
<Java> [class Helper4ooRexx4Net] -> clr_unbox(): o.toString()=[10:45:19], o.GetType()=[System.String]
The current time is 10:45:19
<Java> [class Helper4ooRexx4Net] -> getMethodName(): t=[System.DateTime] for [NOW], returning method name: [null]

<Java> [class Helper4ooRexx4Net] -> getPropertyName(): t=[System.DateTime] for [NOW], returning: [Now]

<Java> [class Helper4ooRexx4Net] -> clr_unbox(): o.toString()=[23.06.2016 10:45:20], o.GetType()=[System.DateTime]
<Java> [class Helper4ooRexx4Net] -> getMethodName(): t=[System.DateTime] for [TOSTRING], returning: [ToString]

line: [ 839] CLR::UNKNOWN(): BEFORE clr.wrap(args[1])=[HH:mm:ss] class=[The String class]
line: [ 550] clr.box(): 1a) typeIndicator=[ST] [The String class] [String] strValue=[HH:mm:ss] [The String class]
line: [ 552] clr.box(): 1b) typeIndicator=[ST] typeIndicator~objectName=[a String] strValue=[HH:mm:ss] [The String class]
<Java> [class Helper4ooRexx4Net] -> clr_box(): typeIndicator=[ST], value=[HH:mm:ss]
line: [ 565] clr.box(): 2) tmpRes=[system.String@8448fa] [The BSF_REFERENCE class]
line: [ 576] clr.box(): proxy=[a CLR_Proxy[system.String@8448fa->[HH:mm:ss]]] ~class=[The CLR_Proxy class]
line: [ 844] CLR::UNKNOWN(): AFTER  clr.wrap(args[1])=argument=[a CLR_Proxy[system.String@8448fa->[HH:mm:ss]]] ~class=[The CLR_Proxy class]
line: [ 845] CLR::UNKNOWN(): AFTER  clr.wrap(args[1])=argument=[a CLR_Proxy[system.String@8448fa->[HH:mm:ss]]] ~clr.jObj=[system.String@8448
fa] [HH:mm:ss] ~clr.jType=[system.Type@1e56eb2 [System.String]]
line: [ 849] CLR::UNKNOWN(): before assigning arg(1) to typeList[1], typeList~size=[1] clr.jType=[system.Type@1e56eb2]
line: [ 852] CLR::UNKNOWN(): before assigning arg(1) to argsList[1], argsList~size=[1] clr.jObj=[system.String@8448fa]
<Java> [class Helper4ooRexx4Net] -> clr_unbox(): o.toString()=[10:45:20], o.GetType()=[System.String]
The current time is 10:45:20

F:\tmp\bsf4oorexx\20160530-baginski\v4rgf\samples>vs exception-20160623.txt

F:\tmp\bsf4oorexx\20160530-baginski\v4rgf\samples>



===================================== run with rexxj, same result:

F:\tmp\bsf4oorexx\20160530-baginski\v4rgf\samples>rexxj 09-clock.rex
Press any key to close this application.
----------------------------------------
line: [ 839] CLR::UNKNOWN(): BEFORE clr.wrap(args[1])=[HH:mm:ss] class=[The String class]
line: [ 550] clr.box(): 1a) typeIndicator=[ST] [The String class] [String] strValue=[HH:mm:ss] [The String class]
line: [ 552] clr.box(): 1b) typeIndicator=[ST] typeIndicator~objectName=[a String] strValue=[HH:mm:ss] [The String class]
line: [ 565] clr.box(): 2) tmpRes=[system.String@110d5b6] [The BSF_REFERENCE class]
line: [ 576] clr.box(): proxy=[a CLR_Proxy[system.String@110d5b6->[HH:mm:ss]]] ~class=[The CLR_Proxy class]
line: [ 844] CLR::UNKNOWN(): AFTER  clr.wrap(args[1])=argument=[a CLR_Proxy[system.String@110d5b6->[HH:mm:ss]]] ~class=[The CLR_Proxy class]

line: [ 845] CLR::UNKNOWN(): AFTER  clr.wrap(args[1])=argument=[a CLR_Proxy[system.String@110d5b6->[HH:mm:ss]]] ~clr.jObj=[system.String@110
d5b6] [HH:mm:ss] ~clr.jType=[system.Type@40be71 [System.String]]
line: [ 849] CLR::UNKNOWN(): before assigning arg(1) to typeList[1], typeList~size=[1] clr.jType=[system.Type@40be71]
line: [ 852] CLR::UNKNOWN(): before assigning arg(1) to argsList[1], argsList~size=[1] clr.jObj=[system.String@110d5b6]
The current time is 10:48:55
line: [ 839] CLR::UNKNOWN(): BEFORE clr.wrap(args[1])=[HH:mm:ss] class=[The String class]
line: [ 550] clr.box(): 1a) typeIndicator=[ST] [The String class] [String] strValue=[HH:mm:ss] [The String class]
line: [ 552] clr.box(): 1b) typeIndicator=[ST] typeIndicator~objectName=[a String] strValue=[HH:mm:ss] [The String class]
line: [ 565] clr.box(): 2) tmpRes=[system.String@112aa7c] [The BSF_REFERENCE class]
line: [ 576] clr.box(): proxy=[a CLR_Proxy[system.String@112aa7c->[HH:mm:ss]]] ~class=[The CLR_Proxy class]
line: [ 844] CLR::UNKNOWN(): AFTER  clr.wrap(args[1])=argument=[a CLR_Proxy[system.String@112aa7c->[HH:mm:ss]]] ~class=[The CLR_Proxy class]

line: [ 845] CLR::UNKNOWN(): AFTER  clr.wrap(args[1])=argument=[a CLR_Proxy[system.String@112aa7c->[HH:mm:ss]]] ~clr.jObj=[system.String@112
aa7c] [HH:mm:ss] ~clr.jType=[system.Type@16f2a7e [System.String]]
line: [ 849] CLR::UNKNOWN(): before assigning arg(1) to typeList[1], typeList~size=[1] clr.jType=[system.Type@16f2a7e]
line: [ 852] CLR::UNKNOWN(): before assigning arg(1) to argsList[1], argsList~size=[1] clr.jObj=[system.String@112aa7c]
The current time is 10:48:56
line: [ 393] clr.MethodName()   --- clrType=[system.Type@1e84203] [Environment] [The BSF_REFERENCE class] [System.Environment] | methodName=
[EXIT] [The String class]
<Java> [class Helper4ooRexx4Net] -> getMethodName(): t=[System.Environment] for [EXIT]
Java. seeking ... argName=[EXIT] i=[0] ... getMethodName()=[Int32 get_TickCount()]
Java. seeking ... argName=[EXIT] i=[1] ... getMethodName()=[Void Exit(Int32)]
Java. ... FOUND! argName=[EXIT] ... getMethodName()=mi[1], strName=[Exit] FOUND!

line: [ 839] CLR::UNKNOWN(): BEFORE clr.wrap(args[1])=[0] class=[The String class]
line: [ 550] clr.box(): 1a) typeIndicator=[Int32] [The String class] [String] strValue=[0] [The String class]
line: [ 552] clr.box(): 1b) typeIndicator=[Int32] typeIndicator~objectName=[a String] strValue=[0] [The String class]
<Java> [class Helper4ooRexx4Net] -> clr_box(): typeIndicator=[Int32], value=[0]
<Java> [class Helper4ooRexx4Net] -> loadParse_String_Methods_for_Primitives()
Exception in thread "Thread-20" Exception in thread "Thread-20" line: [ 951] CLR::UNKNOWN(): in syntax condition at the very end, RAISE PROP
AGATE ...
line: [ 953] CLR::UNKNOWN(): condition:         [ADDITIONAL] =[an Array (2 items) id#_265352509]
                ["BSF4ooRexx/routine/BSF(), error 3: Java exception occurred: [<Unfortunately, Java was not able to create a string from the
 Throwable, because it threw another exception while attempting to do so! " || "0A"x || "jo=[18EF5C18]=Throwable, joc=[18EF5C1C] Throwable's
 class, jmidName=[16409170] method id for ""toString()"", jobj=[00000000] (string result). :( >" || "0A"x || "<Unfortunately, Java was not a
ble to create a string from the second Throwable, because it threw another exception while attempting to do so! " || "0A"x || "jo2=[18EF5C20
]=Throwable, joc2=[18EF5C24] Throwables's class, jmidName2=[16409170] method id for ""toString()"", jobj2=[00000000] (string result). :( :(
>]"]
                [system.SystemException@14a85b3 id#_265331188]
        [CODE]       =[40.900]
        [CONDITION]  =[SYNTAX]
        [DESCRIPTION]=[]
        [ERRORTEXT]  =[Incorrect call to routine]
        [INSTRUCTION]=[SIGNAL]
        [MESSAGE]    =["BSF4ooRexx/routine/BSF(), error 3: Java exception occurred: [<Unfortunately, Java was not able to create a string fr
om the Throwable, because it threw another exception while attempting to do so! " || "0A"x || "jo=[18EF5C18]=Throwable, joc=[18EF5C1C] Throw
able's class, jmidName=[16409170] method id for ""toString()"", jobj=[00000000] (string result). :( >" || "0A"x || "<Unfortunately, Java was
 not able to create a string from the second Throwable, because it threw another exception while attempting to do so! " || "0A"x || "jo2=[18
EF5C20]=Throwable, joc2=[18EF5C24] Throwables's class, jmidName2=[16409170] method id for ""toString()"", jobj2=[00000000] (string result).
:( :( >]"]
        [PACKAGE]    =[a Package id#_264763078]
        [POSITION]   =[563]
        [PROGRAM]    =[F:\tmp\bsf4oorexx\20160530-baginski\v4rgf\samples\CLR.CLS]
        [PROPAGATED] =[1]
        [RC]         =[40]
        [STACKFRAMES]=[a List (8 items) id#_265331401]
                [       *-* Compiled routine BSF id#_265331465]
                [  1630 *-*   res=BSF( "invoke", "java.lang.Class@82ba93", "CLR_BOX" , a.1 , a.2 ) id#_265331500]
                [  1630 *-* interpret code ")"       -- execute this dynamically created Rexx string id#_265331549]
                [   563 *-* tmpRes=.clr.helper4rexx~clr_box(typeIndicator,strValue)  -- box the value id#_265330667]
                [   341 *-*                             return clr.box("Int32",value) id#_265330707]
                [   841 *-*                   argument = clr.wrap(args[i]) id#_265330744]
                [  1075 *-* forward to (clr.clzProxy) continue  -- try class proxy first (assuming a static member access) id#_265330838]
                [    51 *-*         Environment~Exit(0)  -- leave application id#_265330865]
        [TRACEBACK]  =[a List (8 items) id#_265331417]
                [       *-* Compiled routine BSF]
                [  1630 *-*   res=BSF( "invoke", "java.lang.Class@82ba93", "CLR_BOX" , a.1 , a.2 )]
                [  1630 *-* interpret code ")"       -- execute this dynamically created Rexx string]
                [   563 *-* tmpRes=.clr.helper4rexx~clr_box(typeIndicator,strValue)  -- box the value]
                [   341 *-*                             return clr.box("Int32",value)]
                [   841 *-*                   argument = clr.wrap(args[i])]
                [  1075 *-* forward to (clr.clzProxy) continue  -- try class proxy first (assuming a static member access)]
                [    51 *-*         Environment~Exit(0)  -- leave application]

line: [ 955] CLR::UNKNOWN(): [system.SystemException@14a85b3] [The BSF_REFERENCE class]
Exception in thread "Thread-21" Exception in thread "Thread-21" Exception in thread "Thread-22" Exception in thread "Thread-22"        *-* C
ompiled routine BSF
  1630 *-*   res=BSF( "invoke", "system.Type@1e84203", "TOSTRING" )
  1630 *-* interpret code ")"       -- execute this dynamically created Rexx string
   990 *-*     RETURN "a" self~class~id || pp(clr.jObj"->" || pp(clr.jObj~toString))  -- show objectname and its toString() value
  3489 *-* return "[" || arg(1)~string || "]"
  1085 *-* say "line:" pp(.line~right(4)) "CLR_CLASS::UNKNOWN::CLASS:\\\" "methName="pp(arg(1)) "FORWARDING to -> clr.proxy="pp(clr.proxy) "
clr.jType~toString="pp(clr.jType~toString) "msgName="pp(arg(1)) "arg(2)~size="pp(arg(2)~size)
    51 *-*         Environment~Exit(0)  -- leave application
Error 40 running F:\tmp\bsf4oorexx\20160530-baginski\v4rgf\samples\09-clock.rex line 51:  Incorrect call to routine
Error 40.900:  BSF4ooRexx/routine/BSF(), error 3: Java exception occurred: [<Unfortunately, Java was not able to create a string from the Th
rowable, because it threw another exception while attempting to do so! ?jo=[18EF5B60]=Throwable, joc=[18EF5B64] Throwable's class, jmidName=
[16409170] method id for "toString()", jobj=[00000000] (string result). :( >?<Unfortunately, Java was not able to create a string from the s
econd Throwable, because it threw another exception while attempting to do so! ?jo2=[18EF5B68]=Throwable, joc2=[18EF5B6C] Throwables's class
, jmidName2=[16409170] method id for "toString()", jobj2=[00000000] (string result). :( :( >]
<Java> [class Helper4ooRexx4Net] -> getMethodName(): t=[System.DateTime] for [NOW], returning method name: [null]

<Java> [class Helper4ooRexx4Net] -> getPropertyName(): t=[System.DateTime] for [NOW], returning: [Now]

<Java> [class Helper4ooRexx4Net] -> clr_unbox(): o.toString()=[23.06.2016 10:48:57], o.GetType()=[System.DateTime]
<Java> [class Helper4ooRexx4Net] -> getMethodName(): t=[System.DateTime] for [TOSTRING], returning: [ToString]

line: [ 839] CLR::UNKNOWN(): BEFORE clr.wrap(args[1])=[HH:mm:ss] class=[The String class]
line: [ 550] clr.box(): 1a) typeIndicator=[ST] [The String class] [String] strValue=[HH:mm:ss] [The String class]
line: [ 552] clr.box(): 1b) typeIndicator=[ST] typeIndicator~objectName=[a String] strValue=[HH:mm:ss] [The String class]
<Java> [class Helper4ooRexx4Net] -> clr_box(): typeIndicator=[ST], value=[HH:mm:ss]
line: [ 565] clr.box(): 2) tmpRes=[system.String@13fdbce] [The BSF_REFERENCE class]
line: [ 576] clr.box(): proxy=[a CLR_Proxy[system.String@13fdbce->[HH:mm:ss]]] ~class=[The CLR_Proxy class]
line: [ 844] CLR::UNKNOWN(): AFTER  clr.wrap(args[1])=argument=[a CLR_Proxy[system.String@13fdbce->[HH:mm:ss]]] ~class=[The CLR_Proxy class]

line: [ 845] CLR::UNKNOWN(): AFTER  clr.wrap(args[1])=argument=[a CLR_Proxy[system.String@13fdbce->[HH:mm:ss]]] ~clr.jObj=[system.String@13f
dbce] [HH:mm:ss] ~clr.jType=[system.Type@1965d37 [System.String]]
line: [ 849] CLR::UNKNOWN(): before assigning arg(1) to typeList[1], typeList~size=[1] clr.jType=[system.Type@1965d37]
line: [ 852] CLR::UNKNOWN(): before assigning arg(1) to argsList[1], argsList~size=[1] clr.jObj=[system.String@13fdbce]
<Java> [class Helper4ooRexx4Net] -> clr_unbox(): o.toString()=[10:48:57], o.GetType()=[System.String]
The current time is 10:48:57
<Java> [class Helper4ooRexx4Net] -> getMethodName(): t=[System.DateTime] for [NOW], returning method name: [null]

<Java> [class Helper4ooRexx4Net] -> getPropertyName(): t=[System.DateTime] for [NOW], returning: [Now]

<Java> [class Helper4ooRexx4Net] -> clr_unbox(): o.toString()=[23.06.2016 10:48:58], o.GetType()=[System.DateTime]
<Java> [class Helper4ooRexx4Net] -> getMethodName(): t=[System.DateTime] for [TOSTRING], returning: [ToString]

line: [ 839] CLR::UNKNOWN(): BEFORE clr.wrap(args[1])=[HH:mm:ss] class=[The String class]
line: [ 550] clr.box(): 1a) typeIndicator=[ST] [The String class] [String] strValue=[HH:mm:ss] [The String class]
line: [ 552] clr.box(): 1b) typeIndicator=[ST] typeIndicator~objectName=[a String] strValue=[HH:mm:ss] [The String class]
<Java> [class Helper4ooRexx4Net] -> clr_box(): typeIndicator=[ST], value=[HH:mm:ss]
line: [ 565] clr.box(): 2) tmpRes=[system.String@18e8a9d] [The BSF_REFERENCE class]
line: [ 576] clr.box(): proxy=[a CLR_Proxy[system.String@18e8a9d->[HH:mm:ss]]] ~class=[The CLR_Proxy class]
line: [ 844] CLR::UNKNOWN(): AFTER  clr.wrap(args[1])=argument=[a CLR_Proxy[system.String@18e8a9d->[HH:mm:ss]]] ~class=[The CLR_Proxy class]

line: [ 845] CLR::UNKNOWN(): AFTER  clr.wrap(args[1])=argument=[a CLR_Proxy[system.String@18e8a9d->[HH:mm:ss]]] ~clr.jObj=[system.String@18e
8a9d] [HH:mm:ss] ~clr.jType=[system.Type@d83a66 [System.String]]
line: [ 849] CLR::UNKNOWN(): before assigning arg(1) to typeList[1], typeList~size=[1] clr.jType=[system.Type@d83a66]
line: [ 852] CLR::UNKNOWN(): before assigning arg(1) to argsList[1], argsList~size=[1] clr.jObj=[system.String@18e8a9d]
<Java> [class Helper4ooRexx4Net] -> clr_unbox(): o.toString()=[10:48:58], o.GetType()=[System.String]
The current time is 10:48:58
RexxDispatcher.java: Throwable of type 'org.rexxla.bsf.engines.rexx.RexxException' thrown while invoking Rexx:
getLocalizedMessage(): [BSF4ooRexx/routine/jniRexxRunProgram(), error 9:
    18 *-*   CALL SysSleep 1              -- wait 1 second for the time to change
Error 4 running F:\tmp\bsf4oorexx\20160530-baginski\v4rgf\samples\09-clock.rex line 18:  Program interrupted
Error 4.1:  Program interrupted with HALT condition]
Batchvorgang abbrechen (J/N)? j

F:\tmp\bsf4oorexx\20160530-baginski\v4rgf\samples>

====================================================================================================

CLR.CLS, 835...


835             DO i = 1 TO args~items
                  .CLRLogger~trace("Parsing argument" args[i]~class)

        -- if .bShowRgf then
        say "line:" pp(.line~right(4)) "CLR::UNKNOWN(): BEFORE clr.wrap(args"pp(i)")="pp(args[i]) "class="pp(args[i]~class)
840
841               argument = clr.wrap(args[i])

        -- if .bShowRgf then
        say "line:" pp(.line~right(4)) "CLR::UNKNOWN(): AFTER  clr.wrap(args"pp(i)")=argument="pp(argument) "~class="pp(argument~class)
845     say "line:" pp(.line~right(4)) "CLR::UNKNOWN(): AFTER  clr.wrap(args"pp(i)")=argument="pp(argument) "~clr.jObj="pp(argument~clr.jObj) pp(argument~clr.jObj~toString) "~clr.jType="pp(argument~clr.jType pp(argument~clr.jType~toString))
                  -- .CLRLogger~trace("Parsed argument" argument argument~clr.getType argument~clr.getInstance)
                  .CLRLogger~trace("Parsed argument" pp(argument) "clr.jObj="pp(argument~clr.jObj) "clr.jType="pp(argument~clr.jType))

        say "line:" pp(.line~right(4)) "CLR::UNKNOWN(): before assigning arg("i") to typeList"pp(i)", typeList~size="pp(typeList~size) "clr.jType="pp(argument~clr.jType)
850               typeList[i] = argument~clr.jType

        say "line:" pp(.line~right(4)) "CLR::UNKNOWN(): before assigning arg("i") to argsList"pp(i)", argsList~size="pp(argsList~size) "clr.jObj="pp(argument~clr.jObj)
                  argsList[i] = argument~clr.jObj
                END

        if .bShowRgf then say "line:" pp(.line~right(4)) "CLR::UNKNOWN, clr.jObj~toString="pp(clr.jObj~toString) "clr.jType~toString="pp(clr.jType~toString)
        if .bShowRgf then say "line:" pp(.line~right(4)) "              clr.jObj= clr.jType:" pp(clr.jobj= clr.jtype) "(1=class object)"

                   methObj= clr.jType~GetMethod(methodName, typeList)


