B4J Question [BANanoServer] StartServerHTTP2 Issue

LJG

Member
Thanks for your help. Here is the break down of my ongoing BANanoServer StartServerHTTP2 issue:

1) I created a keystore.jks self-cert file using the jdk-11.0.1 keytool.

2) I put the "keystore.jks" file in the Objects folder of the demo.

3) I added an SSLPort number to the server.ini.

4) I added the keystore.jks information to the code:
If Server.PortSSL <> 0 Then
Server.StartServerHTTP2("keystore.jks", "password123456", "password123456")
(I also tried putting a path using File.DirApp in the first value of StartServerHTTP2 ("keystore.jks") - but that doesn't work either.)
Else
Server.StartServer
End If

But I get the following error:

Full Log:
Waiting for debugger to connect...
Program started.
May 11, 2021 8:36:07 PM com.mchange.v2.log.MLog
INFO: MLog clients using java 1.4+ standard logging.
May 11, 2021 8:36:08 PM com.mchange.v2.c3p0.C3P0Registry
INFO: Initializing c3p0-0.9.5.2 [built 08-December-2015 22:06:04 -0800; debug? true; trace: 10]
Port: 17178
SSL Port: 17179
jRDC is running (version = 2.22)
Reading B4J INI in C:\Users\DT911\AppData\Roaming\Anywhere Software\B4J to find Additional Libraries folder...
Found Additional Libraries folder: C:\Program Files (x86)\Anywhere Software\B4J\AdditionalLibraries
Starting to transpile...
[WARNING]: ServiceWorkers are disabled if EnableLiveCodeSwapping = true
Loading layout layout1...
Loading layout mainlayout...
Loading layout mainlayoutnav...
Loading layout modalabout...
Loading layout modaldate1...
Loading layout modallogin...
Loading layout reportsview...
Loading layout sidemenulayout...
Processing b4xlib: bananoskeleton
Processing b4xlib: jdateutils
Processing b4xlib: jrandomaccessfile
Processing b4xlib: jsql
Adding Layout mainlayout used by browserhome
Adding Layout layout1 used by browserhome
Adding Layout layout1 used by browserhome
Adding Layout layout1 used by browserhome
Adding Layout reportsview used by browserhome
---------------------- OPTIMISATION METHODS -----------------------
OPTIMISATION: The METHOD getelement in (MODULE: SKBreadcrumbs) appears to be unused
OPTIMISATION: The METHOD getid in (MODULE: SKBreadcrumbs) appears to be unused
OPTIMISATION: The METHOD addtoparent in (MODULE: SKBreadcrumbs) appears to be unused
OPTIMISATION: The METHOD remove in (MODULE: SKBreadcrumbs) appears to be unused
OPTIMISATION: The METHOD trigger in (MODULE: SKBreadcrumbs) appears to be unused
OPTIMISATION: The METHOD setclasses in (MODULE: SKBreadcrumbs) appears to be unused
OPTIMISATION: The METHOD getclasses in (MODULE: SKBreadcrumbs) appears to be unused
OPTIMISATION: The METHOD setstyle in (MODULE: SKBreadcrumbs) appears to be unused
OPTIMISATION: The METHOD getstyle in (MODULE: SKBreadcrumbs) appears to be unused
OPTIMISATION: The METHOD getvisible in (MODULE: SKBreadcrumbs) appears to be unused
OPTIMISATION: The METHOD getenabled in (MODULE: SKBreadcrumbs) appears to be unused
OPTIMISATION: The METHOD popcrumbsto in (MODULE: SKBreadcrumbs) appears to be unused
OPTIMISATION: The METHOD getelement in (MODULE: SKButton) appears to be unused
OPTIMISATION: The METHOD getid in (MODULE: SKButton) appears to be unused
OPTIMISATION: The METHOD addtoparent in (MODULE: SKButton) appears to be unused
OPTIMISATION: The METHOD remove in (MODULE: SKButton) appears to be unused
OPTIMISATION: The METHOD trigger in (MODULE: SKButton) appears to be unused
OPTIMISATION: The METHOD setclasses in (MODULE: SKButton) appears to be unused
OPTIMISATION: The METHOD getclasses in (MODULE: SKButton) appears to be unused
OPTIMISATION: 531 more methods appear to be unused
---------------------- OPTIMISATION CLASSES -----------------------
OPTIMISATION: The CLASS: SKBreadcrumbs appears to be unused
OPTIMISATION: The CLASS: SKCanvas appears to be unused
OPTIMISATION: The CLASS: SKCanvasObject appears to be unused
OPTIMISATION: The CLASS: SKCheckbox appears to be unused
OPTIMISATION: The CLASS: SKChip appears to be unused
OPTIMISATION: The CLASS: SKCode appears to be unused
OPTIMISATION: The CLASS: SKColorPicker appears to be unused
OPTIMISATION: The CLASS: SKCombo appears to be unused
OPTIMISATION: The CLASS: SKDropButton appears to be unused
OPTIMISATION: The CLASS: SKEditor appears to be unused
OPTIMISATION: The CLASS: SKList appears to be unused
OPTIMISATION: The CLASS: SKMenu appears to be unused
OPTIMISATION: The CLASS: SKModal appears to be unused
OPTIMISATION: The CLASS: SKNavigationBar appears to be unused
OPTIMISATION: The CLASS: SKQRCode appears to be unused
OPTIMISATION: The CLASS: SKRadio appears to be unused
OPTIMISATION: The CLASS: SKRange appears to be unused
OPTIMISATION: The CLASS: SKSidebar appears to be unused
OPTIMISATION: The CLASS: SKSignaturePad appears to be unused
OPTIMISATION: 22 more classes appear to be unused
Building C:\Users\DT911\DOCUME~1\B4J PROJECTS\DW911_ServerClient_5\Objects\DW911\scripts\browserhome.js
Copying CSS files to WebApp assets...
Copying Javascript files to WebApp assets...
Done! Live Code Swapping is active...
2021-05-11 20:36:14.346:INFO::main: Logging initialized @8125ms to org.eclipse.jetty.util.log.StdErrLog
Error occurred on line: 735 (BANanoServer)
java.lang.ClassNotFoundException: b4j.example.true
    at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
    at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
    at java.base/java.lang.Class.forName0(Native Method)
    at java.base/java.lang.Class.forName(Class.java:315)
    at anywheresoftware.b4j.object.ServerWrapper.Start(ServerWrapper.java:181)
    at b4j.example.bananoserver._startserverhttp2(bananoserver.java:673)
    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:632)
    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:91)
    at anywheresoftware.b4a.shell.ShellBA.raiseEvent2(ShellBA.java:98)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:78)
    at b4j.example.main.main(main.java:29)
 
Top