B4J Question [ABMaterial] MakeJKS issue in B4J 9.80

John Naylor

Active Member
Licensed User
Longtime User
Hey all!

I've been trialing this ABMaterial template in B4J 9.50 but I'm getting an error when I upgrade to B4J 9.80.

I'm getting an error saying StartMessageLoop was not called which is being fired by the line

B4X:
Result = JKS.GenerateJKS(domains, File.DirApp, JKSName, JKSStorePassword, JKSManagerPassword, False, File.DirApp, False)

in the MakeJKS Sub

Literally starting from a fresh test application. I've reinstalled B4J (having totally removed all files in the original folder) and I'm using Java 11


Waiting for debugger to connect...
Program started.
AsdQwe1
H5
mydomain.com
80
443
green
namewebapp
1
haslo
465
first@one.com
1
localhost
AsdQwe1
1
keyssl
2021-06-24
1
mail.one.com
Welcome to ABMaterial !
start
OK init page
Start B4J Analyse!
When an error occurs, check the B4JAnalyse.log file in the Objects folder to see the last B4J line it was working on.
Collecting data from B4J source files... (1/2)
hashpass.bas
ABMShared.bas
DBM.bas
HttpsFilter.bas
ABMCacheControl.bas
ABMCacheScavenger.bas
ABMErrorHandler.bas
ABMRootFilter.bas
ABMUploadHandler.bas
get.bas
ABMApplication.bas
home.bas
Settings.bas
abTest.b4j
Analysing data from B4J source files... (2/2)
Number of icons needed: 53
loading C:\Users\eddym\OneDrive\Desktop\B4XPRO~1\abTest\B4J\Objects: copymewithjar.needs...
Using cache system: 3.0
Current App version: 1657726026322
Needs material/awesome icons
OK loadpage
OK add handler
Starting HTTPS
Run make LetsCrypt
SSL load domain: mydomain.com
My IP Server: 192.168.1.221
Not yet needed to renew the certificate...
Expires: 2032-07-10 16:09:32
java.lang.NoClassDefFoundError: org/eclipse/jetty/util/log/StdErrLog
at com.ab.abkeystoressl.ABKeystoreSSL.GenerateJKS(ABKeystoreSSL.java:307)
at com.ab.template.main._makejks(main.java:258)
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 com.ab.template.main.main(main.java:29)
Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.util.log.StdErrLog
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)
... 17 more
java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/eclipse/jetty/util/log/StdErrLog
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:140)
at anywheresoftware.b4a.shell.ShellBA.raiseEvent2(ShellBA.java:100)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:98)
at com.ab.template.main.main(main.java:29)
Caused by: java.lang.NoClassDefFoundError: org/eclipse/jetty/util/log/StdErrLog
at com.ab.abkeystoressl.ABKeystoreSSL.GenerateJKS(ABKeystoreSSL.java:307)
at com.ab.template.main._makejks(main.java:258)
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)
... 3 more
Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.util.log.StdErrLog
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)
... 17 more
Program terminated (StartMessageLoop was not called).

Any ideas?
 
Solution
Try it with the one attached here. As B4J now uses jServer 4 (Jetty 11), this lib did also use the StdErrLog which has been removen in jServer 4. I have deleted the lines depending on this StdErrLog for the ABKeystoreSSL lib.

alwaysbusy

Expert
Licensed User
Longtime User
Try it with the one attached here. As B4J now uses jServer 4 (Jetty 11), this lib did also use the StdErrLog which has been removen in jServer 4. I have deleted the lines depending on this StdErrLog for the ABKeystoreSSL lib.
 

Attachments

  • ABKeystoreSSL.zip
    17.1 KB · Views: 15
Upvote 1
Solution
Top