B4J Question jSerial and Java 9

yo3ggx

Active Member
Licensed User
Hello,

I have a B4J application running perfect with java 1.8.0_162. Trying to run it with jre 9.4, I get an error when I'm trying to initialize.
B4X:
Dim SerPort as Serial
SerPort.Initialize("")
As even in Debug mode I don;t get enough info, looking into the generated text log, I see:
B4X:
Current thread (0x000001bf47a49000):  JavaThread "JavaFX Application Thread" [_thread_in_native, id=10488, stack(0x0000007fd3940000,0x0000007fd3a40000)]

Stack: [0x0000007fd3940000,0x0000007fd3a40000],  sp=0x0000007fd3a3bbe0,  free space=1006k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  0x000000007110b5db
C  0x0000000071112590
C  0x0000000071101595
C  0x000001bf2556919c

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  jssc.SerialNativeInterface.openPort(Ljava/lang/String;Z)J+0
j  jssc.SerialPort.openPort()Z+65
j  anywheresoftware.b4j.serial.Serial.Open(Ljava/lang/String;)V+16
j  ro.yo3ggx.jarec.jareccore._mysrvsock_newconnection(ZLanywheresoftware/b4a/objects/SocketWrapper;)Ljava/lang/String;+147
v  ~StubRoutines::call_stub
j  jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+0 java.base@9.0.4
j  jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+100 java.base@9.0.4
J 2180 c1 jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; java.base@9.0.4 (10 bytes) @ 0x000001bf25f08344 [0x000001bf25f08240+0x0000000000000104]
J 2179 c1 java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; java.base@9.0.4 (65 bytes) @ 0x000001bf25f073a4 [0x000001bf25f06f80+0x0000000000000424]
j  anywheresoftware.b4a.BA.raiseEvent2(Ljava/lang/Object;ZLjava/lang/String;Z[Ljava/lang/Object;)Ljava/lang/Object;+76
j  anywheresoftware.b4a.BA$3.run()V+39
j  com.sun.javafx.application.PlatformImpl.lambda$runLater$9(Ljava/lang/Runnable;)Ljava/lang/Void;+1 javafx.graphics@9.0.4
j  com.sun.javafx.application.PlatformImpl$$Lambda$61.run()Ljava/lang/Object;+4 javafx.graphics@9.0.4
v  ~StubRoutines::call_stub
J 2729  java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object; java.base@9.0.4 (0 bytes) @ 0x000001bf2d14e446 [0x000001bf2d14e3e0+0x0000000000000066]
j  com.sun.javafx.application.PlatformImpl.lambda$runLater$10(Ljava/lang/Runnable;Ljava/security/AccessControlContext;)V+7 javafx.graphics@9.0.4
j  com.sun.javafx.application.PlatformImpl$$Lambda$60.run()V+8 javafx.graphics@9.0.4
J 3145 c1 com.sun.glass.ui.InvokeLaterDispatcher$Future.run()V javafx.graphics@9.0.4 (91 bytes) @ 0x000001bf260da40c [0x000001bf260da300+0x000000000000010c]
v  ~StubRoutines::call_stub
j  com.sun.glass.ui.win.WinApplication._runLoop(Ljava/lang/Runnable;)V+0 javafx.graphics@9.0.4
j  com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(ILjava/lang/Runnable;)V+8 javafx.graphics@9.0.4
j  com.sun.glass.ui.win.WinApplication$$Lambda$49.run()V+12 javafx.graphics@9.0.4
j  java.lang.Thread.run()V+11 java.base@9.0.4
v  ~StubRoutines::call_stub
Any hint?

Thank you.
 

yo3ggx

Active Member
Licensed User
Yes, the latest Window 10 Pro Version 1709 Build 16299.192
Thank you Erel, I will ask the users to stay for the moment with Java 1.8_x
 
Top