B4J Question error imageslider on raspberry

nadhiras

Member
Licensed User
Longtime User
hello everyone .. I am currently having problems regarding my small project which is targeted at Raspberry pi 3 b+.
My idea is simple to make a digital photo album that will be placed in the family room, I created this project using the code from EREL:
https://www.b4x.com/android/forum/threads/b4x-xui-imageslider.87128/

My first attempt failed using openjdk-11 (https://github.com/bell-sw/Liberica...t-jdk11.0.1-linux-arm32-vfp-hflt-lite.tar. gz)
an error appears like this:
Module javafx.swing not found:
java.lang.module.FindException: Module javafx.swing not found

then I updated openjdk on raspberry using openjdk-13 (https://download.bell-sw.com/java/13.0.1/bellsoft-jdk13.0.1-linux-arm32-vfp-hflt.tar.gz)

an error appears like this:
error on openjdk-13:
java.lang.RuntimeException: java.lang.RuntimeException: java.lang.IllegalArgumentException: src cannot be null
    at anywheresoftware.b4a.keywords.Common.CallSub4(Common.java:496)
    at anywheresoftware.b4a.keywords.Common.CallSubNew2(Common.java:442)
    at b4j.example.imageslider$ResumableSub_GetImage.resume(imageslider.java:315)
    at b4j.example.imageslider._getimage(imageslider.java:223)
    at b4j.example.imageslider$ResumableSub_NextImage.resume(imageslider.java:440)
    at b4j.example.imageslider._nextimage(imageslider.java:412)
    at b4j.example.main._btnnext_click(main.java:68)
    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:567)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:91)
    at anywheresoftware.b4a.BA$1.run(BA.java:216)
    at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:428)
    at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
    at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:427)
    at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
    at javafx.graphics/com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
    at javafx.graphics/com.sun.glass.ui.gtk.GtkApplication.lambda$runLoop$11(GtkApplication.java:277)
    at java.base/java.lang.Thread.run(Thread.java:830)
Caused by: java.lang.RuntimeException: java.lang.IllegalArgumentException: src cannot be null
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:120)
    at anywheresoftware.b4a.keywords.Common.CallSub4(Common.java:487)
    ... 19 more
Caused by: java.lang.IllegalArgumentException: src cannot be null
    at org.imgscalr.Scalr.resize(Scalr.java:1583)
    at org.imgscalr.Scalr.resize(Scalr.java:1502)
    at anywheresoftware.b4a.objects.B4XViewWrapper$B4XBitmapWrapper.Resize(B4XViewWrapper.java:794)
    at anywheresoftware.b4a.objects.B4XViewWrapper$XUI.LoadBitmapResize(B4XViewWrapper.java:884)
    at b4j.example.main$ResumableSub_ImageSlider1_GetImage.resume(main.java:117)
    at b4j.example.main._imageslider1_getimage(main.java:93)
    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:567)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:91)
    ... 20 more

can anyone help me ??
 
Top