I am trying to use ucanaccess 5.0.0 after a long hiatus. I want to store file CRS32s in an Access db (FileCRCs.accdb) which has two tables: FolderTable with two columns FolderNumber (long int) and Folder Name (String) and FileTable with three colums FolderNumber (long int) and FileName (String) and CRC (long int). The Java connection statement is:
Class.forName("net.ucanaccess.jdbc.UcanaccessDriver"); // Optional, same error occurs with or w/o it
Connection conn; // In data section
conn = DriverManager.getConnection("jdbc:ucanaccess://E:/Databases/FileCRCs.accdb;memory=true","","");
I have put several hours into this, and the error always has the same stack:
java.lang.ExceptionInInitializerError
at com.healthmarketscience.jackcess.impl.GeneralLegacyIndexCodes.getCharHandler(GeneralLegacyIndexCodes.java:291) 15 lines of jackcess.impl calls
at net.ucanaccess.jdbc.DefaultJackcessOpener.open(DefaultJackcessOpener.java:34)
at net.ucanaccess.jdbc.DBReference.<init>(DBReference.java:170)
at net.ucanaccess.jdbc.DBReferenceSingleton.loadReference(DBReferenceSingleton.java:51)
at net.ucanaccess.jdbc.UcanaccessDriver.connect(UcanaccessDriver.java:91)
at java.sql.DriverManager.getConnection(DriverManager.java:664)
at java.sql.DriverManager.getConnection(DriverManager.java:247)
at FilesCRC.init(FilesCRC.java:52)
at FilesCRC.main(FilesCRC.java:66)
Caused by: java.lang.NullPointerException
at com.healthmarketscience.jackcess.impl.DatabaseImpl.getResourceAsStream(DatabaseImpl.java:2175)
at com.healthmarketscience.jackcess.impl.GeneralLegacyIndexCodes.loadCodes(GeneralLegacyIndexCodes.java:318)
at com.healthmarketscience.jackcess.impl.GeneralLegacyIndexCodes$Codes.<clinit>(GeneralLegacyIndexCodes.java:267)
... 24 more</clinit></init>
I am trying to use ucanaccess 5.0.0 after a long hiatus. I want to store file CRS32s in an Access db (FileCRCs.accdb) which has two tables: FolderTable with two columns FolderNumber (long int) and Folder Name (String) and FileTable with three colums FolderNumber (long int) and FileName (String) and CRC (long int). The Java connection statement is:
Class.forName("net.ucanaccess.jdbc.UcanaccessDriver"); // Optional, same error occurs with or w/o it
Connection conn; // In data section
conn = DriverManager.getConnection("jdbc:ucanaccess://E:/Databases/FileCRCs.accdb;memory=true","","");
I have put several hours into this, and the error always has the same stack:
java.lang.ExceptionInInitializerError
at com.healthmarketscience.jackcess.impl.GeneralLegacyIndexCodes.getCharHandler(GeneralLegacyIndexCodes.java:291)
15 lines of jackcess.impl calls
at net.ucanaccess.jdbc.DefaultJackcessOpener.open(DefaultJackcessOpener.java:34)
at net.ucanaccess.jdbc.DBReference.<init>(DBReference.java:170)
at net.ucanaccess.jdbc.DBReferenceSingleton.loadReference(DBReferenceSingleton.java:51)
at net.ucanaccess.jdbc.UcanaccessDriver.connect(UcanaccessDriver.java:91)
at java.sql.DriverManager.getConnection(DriverManager.java:664)
at java.sql.DriverManager.getConnection(DriverManager.java:247)
at FilesCRC.init(FilesCRC.java:52)
at FilesCRC.main(FilesCRC.java:66)
Caused by: java.lang.NullPointerException
at com.healthmarketscience.jackcess.impl.DatabaseImpl.getResourceAsStream(DatabaseImpl.java:2175)
at com.healthmarketscience.jackcess.impl.GeneralLegacyIndexCodes.loadCodes(GeneralLegacyIndexCodes.java:318)
at com.healthmarketscience.jackcess.impl.GeneralLegacyIndexCodes$Codes.<clinit>(GeneralLegacyIndexCodes.java:267)
... 24 more</clinit></init>
Can you please tell me where the error is?