Hallo,
ich habe ein Problem mit der Apache POI. Jedes mal wenn ich das Workbook "XSSFWorkbook" erstellen will, tritt dieser Fehler.
Die entsprechende Codezeile ist einfach nur " Workbook workbook = new XSSFWorkbook(); ". Weiterhin ist dieser Code auch in nem try/catch. Danke schonmal für die hilfe.
Code
E/AndroidRuntime: FATAL EXCEPTION: main
Process: de.t3chcd3r.qr_zaehler_liste, PID: 14666
java.lang.BootstrapMethodError: Exception from call site #349 bootstrap method
at org.apache.poi.openxml4j.opc.PackagePartCollection.<init>(PackagePartCollection.java:47)
at org.apache.poi.openxml4j.opc.ZipPackage.getPartsImpl(ZipPackage.java:245)
at org.apache.poi.openxml4j.opc.OPCPackage.getParts(OPCPackage.java:726)
at org.apache.poi.openxml4j.opc.OPCPackage.getPart(OPCPackage.java:604)
at org.apache.poi.openxml4j.opc.OPCPackage.containPart(OPCPackage.java:1109)
at org.apache.poi.openxml4j.opc.PackageRelationshipCollection.<init>(PackageRelationshipCollection.java:161)
at org.apache.poi.openxml4j.opc.PackageRelationshipCollection.<init>(PackageRelationshipCollection.java:133)
at org.apache.poi.openxml4j.opc.PackagePart.loadRelationships(PackagePart.java:570)
at org.apache.poi.openxml4j.opc.PackagePart.<init>(PackagePart.java:110)
at org.apache.poi.openxml4j.opc.PackagePart.<init>(PackagePart.java:81)
at org.apache.poi.openxml4j.opc.PackagePart.<init>(PackagePart.java:129)
at org.apache.poi.openxml4j.opc.internal.PackagePropertiesPart.<init>(PackagePropertiesPart.java:86)
at org.apache.poi.openxml4j.opc.OPCPackage.configurePackage(OPCPackage.java:391)
at org.apache.poi.openxml4j.opc.OPCPackage.create(OPCPackage.java:372)
at org.apache.poi.xssf.usermodel.XSSFWorkbook.newPackage(XSSFWorkbook.java:491)
at org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(XSSFWorkbook.java:257)
at org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(XSSFWorkbook.java:253)
at org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(XSSFWorkbook.java:241)
at de.t3chcd3r.qr_zaehler_liste.ExcelWriter.createFile(ExcelWriter.java:31)
at de.t3chcd3r.qr_zaehler_liste.MainActivity$4.onClick(MainActivity.java:152)
at android.view.View.performClick(View.java:6663)
at android.view.View.performClickInternal(View.java:6635)
at android.view.View.access$3100(View.java:794)
at android.view.View$PerformClick.run(View.java:26199)
at android.os.Handler.handleCallback(Handler.java:907)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:216)
at android.app.ActivityThread.main(ActivityThread.java:7625)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:987)
Caused by: java.lang.ClassCastException: Bootstrap method returned null
at org.apache.poi.openxml4j.opc.PackagePartCollection.<init>(PackagePartCollection.java:47)
at org.apache.poi.openxml4j.opc.ZipPackage.getPartsImpl(ZipPackage.java:245)
at org.apache.poi.openxml4j.opc.OPCPackage.getParts(OPCPackage.java:726)
at org.apache.poi.openxml4j.opc.OPCPackage.getPart(OPCPackage.java:604)
at org.apache.poi.openxml4j.opc.OPCPackage.containPart(OPCPackage.java:1109)
at org.apache.poi.openxml4j.opc.PackageRelationshipCollection.<init>(PackageRelationshipCollection.java:161)
at org.apache.poi.openxml4j.opc.PackageRelationshipCollection.<init>(PackageRelationshipCollection.java:133)
at org.apache.poi.openxml4j.opc.PackagePart.loadRelationships(PackagePart.java:570)
at org.apache.poi.openxml4j.opc.PackagePart.<init>(PackagePart.java:110)
at org.apache.poi.openxml4j.opc.PackagePart.<init>(PackagePart.java:81)
at org.apache.poi.openxml4j.opc.PackagePart.<init>(PackagePart.java:129)
at org.apache.poi.openxml4j.opc.internal.PackagePropertiesPart.<init>(PackagePropertiesPart.java:86)
at org.apache.poi.openxml4j.opc.OPCPackage.configurePackage(OPCPackage.java:391)
at org.apache.poi.openxml4j.opc.OPCPackage.create(OPCPackage.java:372)
at org.apache.poi.xssf.usermodel.XSSFWorkbook.newPackage(XSSFWorkbook.java:491)
at org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(XSSFWorkbook.java:257)
at org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(XSSFWorkbook.java:253)
at org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(XSSFWorkbook.java:241)
at de.t3chcd3r.qr_zaehler_liste.ExcelWriter.createFile(ExcelWriter.java:31)
at de.t3chcd3r.qr_zaehler_liste.MainActivity$4.onClick(MainActivity.java:152)
at android.view.View.performClick(View.java:6663)
at android.view.View.performClickInternal(View.java:6635)
at android.view.View.access$3100(View.java:794)
at android.view.View$PerformClick.run(View.java:26199)
at android.os.Handler.handleCallback(Handler.java:907)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:216)
at android.app.ActivityThread.main(ActivityThread.java:7625)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:987)
Alles anzeigen