What steps will reproduce the problem?
1. java -jar dist/mdb-sqlite.jar ~/Desktop/20110310_m.mdb
~/Desktop/20110310_m.sqlite
What is the expected output? What do you see instead?
convert successfully
What version of the product are you using? On what operating system?
Tried on mac, winxp and win7 with jre 1.6.0_24
When the command is executed, following stack trace printed:
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.simontuffs.onejar.Boot.run(Boot.java:340)
at com.simontuffs.onejar.Boot.main(Boot.java:166)
Caused by: java.lang.IllegalAccessError: tried to access method
java.lang.StringBuilder.append(Ljava/lang/StringBuilder;)Ljava/lang/StringBuilde
r; from class com.plausiblelabs.mdb.AccessExporter
at com.plausiblelabs.mdb.AccessExporter.populateTable(Unknown Source)
at com.plausiblelabs.mdb.AccessExporter.populateTables(Unknown Source)
at com.plausiblelabs.mdb.AccessExporter.export(Unknown Source)
at com.plausiblelabs.mdb.Main.main(Unknown Source)
... 6 more
After surfing the web and modified AccessExporter class "populateTable" function
from
stmtBuilder.append(") VALUES ");
stmtBuilder.append(valueStmtBuilder);
stmtBuilder.append(")");
to
stmtBuilder.append(") VALUES ");
stmtBuilder.append(valueStmtBuilder.toString());
stmtBuilder.append(")");
it run with no error
Thanks a lot for creating this project! Wish this help
Original issue reported on code.google.com by chiu0...@gmail.com on 20 Mar 2011 at 8:54
Original issue reported on code.google.com by
chiu0...@gmail.com
on 20 Mar 2011 at 8:54