Could someone decipher this java log? My project works fine in debug mode, but when I put into release mode and package it up as an exe file with B4JPackager11 and click my 'Export data to Excel' button, it blows up.
If this log isn't definitive enough, I'll build a simple project that highlights the error. It appears I'm just missing a library in the packager, but if I try adding the jPOI library module I get warnings saying it's not being used, and it still blows up...
Thanks!
If this log isn't definitive enough, I'll build a simple project that highlights the error. It appears I'm just missing a library in the packager, but if I try adding the jPOI library module I get warnings saying it's not being used, and it still blows up...
Thanks!
B4X:
Clicked RegType
Diagnostic XML Bean debug log file created: C:\Users\Jim\AppData\Local\Temp\xmlbeandebug10191676254534018280.log
impexp._exportexcel (java line: -1)
java.lang.ExceptionInInitializerError
at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized0(Native Method)
at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized(Unknown Source)
at java.base/jdk.internal.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(Unknown Source)
at java.base/jdk.internal.reflect.ReflectionFactory.newFieldAccessor(Unknown Source)
at java.base/java.lang.reflect.Field.acquireFieldAccessor(Unknown Source)
at java.base/java.lang.reflect.Field.getFieldAccessor(Unknown Source)
at java.base/java.lang.reflect.Field.get(Unknown Source)
at b4j/org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(Unknown Source)
at b4j/org.openxmlformats.schemas.spreadsheetml.x2006.main.CTWorkbook.<clinit>(Unknown Source)
at b4j/org.openxmlformats.schemas.spreadsheetml.x2006.main.CTWorkbook$Factory.newInstance(Unknown Source)
at b4j/org.apache.poi.xssf.usermodel.XSSFWorkbook.onWorkbookCreate(Unknown Source)
at b4j/org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(Unknown Source)
at b4j/org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(Unknown Source)
at b4j/org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(Unknown Source)
at b4j/org.apache.poi.xssf.streaming.SXSSFWorkbook.<init>(Unknown Source)
at b4j/org.apache.poi.xssf.streaming.SXSSFWorkbook.<init>(Unknown Source)
at b4j/org.apache.poi.xssf.streaming.SXSSFWorkbook.<init>(Unknown Source)
at b4j/org.apache.poi.xssf.streaming.SXSSFWorkbook.<init>(Unknown Source)
at b4j/org.apache.poi.xssf.streaming.SXSSFWorkbook.<init>(Unknown Source)
at b4j/anywheresoftware.b4j.objects.PoiWorkbookWrapper.InitializeNew(Unknown Source)
at b4j/b4j.example.impexp._exportexcel(Unknown Source)
at b4j/b4j.example.impexp._btnexport_click(Unknown Source)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at b4j/anywheresoftware.b4a.BA.raiseEvent2(Unknown Source)
at b4j/anywheresoftware.b4a.BA$1.run(Unknown Source)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(Unknown Source)
at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unknown Source)
at javafx.graphics/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at javafx.graphics/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.RuntimeException: Could not instantiate SchemaTypeSystemImpl (java.lang.reflect.InvocationTargetException): is the version of xbean.jar correct?
at b4j/schemaorg_apache_xmlbeans.system.sD023D6490046BA0250A839A9AD24C443.TypeSystemHolder.loadTypeSystem(Unknown Source)
at b4j/schemaorg_apache_xmlbeans.system.sD023D6490046BA0250A839A9AD24C443.TypeSystemHolder.<clinit>(Unknown Source)
... 35 more
Caused by: java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.base/java.lang.reflect.Constructor.newInstance(Unknown Source)
... 37 more
Caused by: org.apache.xmlbeans.SchemaTypeLoaderException: XML-BEANS compiled schema: Could not locate compiled schema resource schemaorg_apache_xmlbeans/system/sD023D6490046BA0250A839A9AD24C443/index.xsb (schemaorg_apache_xmlbeans.system.sD023D6490046BA0250A839A9AD24C443.index) - code 0
at b4j/org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl$XsbReader.<init>(Unknown Source)
at b4j/org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.initFromHeader(Unknown Source)
at b4j/org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.<init>(Unknown Source)
... 41 more