Hi all,
I can Initialize B4XBytesBuilder in UI apps, but here for some strange reasons the inizializer line return an error on NONUI (Server) app:
the log show an IllegalArgumentException, wrong number of arguments.
Can someone help me to know because this happen ?
Thanks
Log:
I can Initialize B4XBytesBuilder in UI apps, but here for some strange reasons the inizializer line return an error on NONUI (Server) app:
B4X:
Dim bBuilder As B4XBytesBuilder
bBuilder.Initialize ' <-- ERROR HERE
bBuilder.Clear
Can someone help me to know because this happen ?
Thanks
Log:
Waiting for debugger to connect...
Program started.
b4j.example.b4xbytesbuilder:_initialize, [[mbuffer=null, mlength=0, b4xcollections=null
], anywheresoftware.b4a.shell.ShellBA@3532ec19]
Error occurred on line: 6 (B4XBytesBuilder)
java.lang.IllegalArgumentException: wrong number of arguments
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:629)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:234)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:167)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:111)
at anywheresoftware.b4a.shell.ShellBA.raiseEvent2(ShellBA.java:100)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:98)
at b4j.example.main.main(main.java:30)