akatie / mdb-sqlite

Automatically exported from code.google.com/p/mdb-sqlite
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

cannot convert file #9

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
> What steps will reproduce the problem?
1. ant dist
2. java -jar dist/mdb-sqlite.jar members.mdb members.sqlite

> What is the expected output? What do you see instead?

java -jar dist/mdb-sqlite.jar members.mdb members.sqlite
JarClassLoader: Warning: Unable to load native library: 
java.lang.NullPointerException
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.jav
a:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.simontuffs.onejar.Boot.run(Boot.java:306)
    at com.simontuffs.onejar.Boot.main(Boot.java:159)
Caused by: java.nio.BufferUnderflowException
    at java.nio.HeapByteBuffer.get(HeapByteBuffer.java:127)
    at java.nio.ByteBuffer.get(ByteBuffer.java:674)
    at com.healthmarketscience.jackcess.Table.getRowColumn(Table.java:485)
    at com.healthmarketscience.jackcess.Table.getRow(Table.java:426)
    at com.healthmarketscience.jackcess.Table.getRow(Table.java:404)
    at com.healthmarketscience.jackcess.Cursor.getCurrentRow(Cursor.java:850)
    at com.healthmarketscience.jackcess.Cursor$RowIterator.next(Cursor.java:925)
    at com.healthmarketscience.jackcess.Cursor$RowIterator.next(Cursor.java:896)
    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
*** Error code 1

Stop in /Users/jklowden/projects/mdb-sqlite-1.0.2.

> What version of the product are you using? On what operating system?

$ uname -a
Darwin thistle.eg.com 8.11.0 Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 
PDT 2007; 
root:xnu-792.24.17~1/RELEASE_PPC Power Macintosh powerpc

> Please provide any additional information below.

The example database also gives the same first warning, but produces a good 
sqlite database:

$ java -jar dist/mdb-sqlite.jar example/test-database.mdb 
example/test-database.sqlite
JarClassLoader: Warning: Unable to load native library: 
java.lang.NullPointerException

$ sqlite3 example/test-database.sqlite 
SQLite version 3.1.3
Enter ".help" for instructions
sqlite> .tables
closeouts  economics
sqlite> .quit

Original issue reported on code.google.com by james.k....@gmail.com on 3 Dec 2008 at 4:13

GoogleCodeExporter commented 8 years ago
Fixed with 

AccessExporter.java, in the "populateTable" method,

prep.setDouble(i + 1, ( (Float) row.get(column.getName())));

Somebody should add this to trunk

Bug already reported here #5

Original comment by gugli...@gmail.com on 28 Oct 2010 at 9:27