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

Unable to load native library: java.lang.NullPointerException under Mac OS X #11

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Follow the instructions verbatim to build and run the *.jar file

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

Building the *.jars went fine.

The very first that appears on the screen when calling mdb-sqlite.jar is:

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

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

Version 1.0.2 on Mac OS X 10.6.2 running Java(TM) SE Runtime Environment
(build 1.6.0_17-b04-248-10M3025)

Please provide any additional information below.

Original issue reported on code.google.com by odd...@gmail.com on 28 Dec 2009 at 6:06

GoogleCodeExporter commented 8 years ago
I have the same problem with OSX 1.6.3 and java 1.6

Original comment by a.alo...@gmail.com on 25 May 2010 at 5:54

GoogleCodeExporter commented 8 years ago
same here, linux, java 1.6

Original comment by liska.jakub on 9 Sep 2010 at 12:40

GoogleCodeExporter commented 8 years ago
Same problem on Linux Sun Java 1.6

Original comment by vladi...@gessolutions.com on 1 Oct 2010 at 4:59

GoogleCodeExporter commented 8 years ago
Same problem with ubuntu 10.10 

~/mdb-sqlite-1.0.2$ java -version
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)

Original comment by gugli...@gmail.com on 21 Oct 2010 at 10:52

GoogleCodeExporter commented 8 years ago
Same here,
MacOSX 10.6.4
$ java -version
java version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04-307-10M3261)
Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03-307, mixed mode)

Original comment by pajkycz on 26 Nov 2010 at 6:44

GoogleCodeExporter commented 8 years ago
But it seems, that the converted sqlite file is ok.

Original comment by pajkycz on 26 Nov 2010 at 6:59

GoogleCodeExporter commented 8 years ago
I see the same message but sqlite file seems ok. 

Original comment by gavi.na...@gmail.com on 6 Feb 2011 at 3:31

GoogleCodeExporter commented 8 years ago
June, 2011 - problem still exists. What native library is expected?

Original comment by richfree...@gmail.com on 6 Jun 2011 at 11:55

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Had the same problem on win7 64bit
replaced the sqlitejdbc-v048-nested.jar in the lib directory with the latest 
from here http://www.xerial.org/trac/Xerial/wiki/SQLiteJDBC
then ant clean, ant dist, plus the patch - line 256 add:
                    case FLOAT:
                        prep.setFloat(i + 1, ( (Float) row.get(column.getName())));
                        break;
                    case DOUBLE:
                        prep.setDouble(i + 1, ( (Double) row.get(column.getName())));

after 
switch (column.getType()) {

Original comment by martinsi...@gmail.com on 8 Nov 2011 at 12:27

GoogleCodeExporter commented 8 years ago
The fix purposed by martinsi...@gmail.com works beautifully!

I have a ~ 1GB File, the conversion had no warnings! How confident should I be 
about the conversion? 100%? I'm running SQL commands on both trying to compare 
the DBs and assert this, but it's hard to tell and I'm unable to tell compare 
everything on a DB of this size.

Original comment by leonelga...@gmail.com on 9 Feb 2012 at 7:51

GoogleCodeExporter commented 8 years ago
Thanks. That seemed to work. Just a note from the #10 comment. You should put 
an extra   break;
after the prep.setDouble...

Original comment by robertli...@gmail.com on 15 Feb 2013 at 5:58

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
had the same problem but conversion done successfully...
here after come any problem?

Original comment by s...@estecindia.com on 10 Oct 2014 at 10:15

GoogleCodeExporter commented 8 years ago
I've applied the suggested patch on win7-x64 (obviously including the missing 
break) and replaced sqlitejdbc-v048-nested.jar with sqlite-jdbc-3.8.7.jar from 
Xerial
Works great - thanks!

Original comment by mawi2...@gmail.com on 5 Nov 2014 at 1:14