|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
Exception running javasqlite on kaffe for arm architectureHi,
I'm trying to run sqlite using the java wrapper at http://www.ch-werner.de/javasqlite/ on an arm linux target using kaffe 1.1.7 and jamvm. It appears that I'm having a problem with the JNI layer. I am able to run $sqlite3 from the command line, creating/editing database files with no problems. When I run it as a java app: kaffe -jar sqlite.jar data.db I get an exception: kaffe-bin: exception.c:106: vmExcept_setJNIFrame: Assertion `fp != (JNIFrameAddress)0' failed. Oddly, it fails the first time when it tries to open the database, but the database file is created. the next time it fails when I try to do a select on a table on the database, with the same exception. I followed the instructions to cross compile sqlite and the java wrappers for our arm target, and don't see anything obvious that might be causing this. Just wondering if anyone has come across this issue before. Lastly, the versions I built for the x86 target run fine on the x86 kaffe and jamvm. gcc version is 3.3.1 kernel is Linux version 2.4.20__mvlcee31-omap730_gsm_gprs (mic@mic-desktop) (gcc version 3.3.1 (MontaVista 3.3.1-7.0.2.0401382 2004-10-08)) #1 Thu Nov 29 16:32:50 HKT 2007 kernel headers are Thanks, Charlie Hamilton D2 Technologies chamilton@... _______________________________________________ kaffe mailing list kaffe@... http://kaffe.org/cgi-bin/mailman/listinfo/kaffe |
|
|
Re: Exception running javasqlite on kaffe for arm architectureIn case anyone is interested, I found the answer to my own question. The JNI was being built with the -fPIC -DPIC compiler/linker option, which apparently was the cause of the trouble. Charlie Charlie Hamilton wrote: > Hi, > > I'm trying to run sqlite using the java wrapper at > http://www.ch-werner.de/javasqlite/ on an arm linux target using kaffe > 1.1.7 and jamvm. > > It appears that I'm having a problem with the JNI layer. I am able to > run $sqlite3 from the command line, creating/editing database files with > no problems. When I run it as a java app: > > kaffe -jar sqlite.jar data.db > > I get an exception: > kaffe-bin: exception.c:106: vmExcept_setJNIFrame: Assertion `fp != > (JNIFrameAddress)0' failed. > > Oddly, it fails the first time when it tries to open the database, but > the database file is created. the next time it fails when I try to do a > select on a table on the database, with the same exception. > > I followed the instructions to cross compile sqlite and the java > wrappers for our arm target, and don't see anything obvious that might > be causing this. Just wondering if anyone has come across this issue > before. > > Lastly, the versions I built for the x86 target run fine on the x86 > kaffe and jamvm. > > gcc version is 3.3.1 > kernel is Linux version 2.4.20__mvlcee31-omap730_gsm_gprs > (mic@mic-desktop) (gcc version 3.3.1 (MontaVista 3.3.1-7.0.2.0401382 > 2004-10-08)) #1 Thu Nov 29 16:32:50 HKT 2007 > kernel headers are > > Thanks, > Charlie Hamilton > D2 Technologies > chamilton@... > > _______________________________________________ > kaffe mailing list > kaffe@... > http://kaffe.org/cgi-bin/mailman/listinfo/kaffe > _______________________________________________ kaffe mailing list kaffe@... http://kaffe.org/cgi-bin/mailman/listinfo/kaffe |
|
|
Re: Exception running javasqlite on kaffe for arm architectureCharlie Hamilton wrote:
> > In case anyone is interested, I found the answer to my own question. The > JNI was being built with the -fPIC -DPIC compiler/linker option, which > apparently was the cause of the trouble. Thanks for the update, and I'm glad you were able to track it down. Can you think of an automatic way to detect the problem from within the VM? cheers, dalibor topic _______________________________________________ kaffe mailing list kaffe@... http://kaffe.org/cgi-bin/mailman/listinfo/kaffe |
| Free Forum Powered by Nabble | Forum Help |