Segmentation fault when calling dbus from java. Need help

Andrejus Chaliapinas a.chaliapinas at infosana.com
Thu Apr 17 11:04:46 PDT 2008


Hi Matt,

Where could I find unix.jar, debug-disable.jar, hexdump.jar supposed to be
in /usr/share/java by Makefile? Do you have binary dbus-java v2.4
distribution in form of jars already for JDK 5/6?

I hope I could try that pure Java version, but thought maybe someone could
quickly tell me why Java-JNI-Dbus way doesn't work looking at my provided
stack.

Thank you,
Andrejus

> -----Original Message-----
> From: Matthew Johnson [mailto:dbus at matthew.ath.cx]
> Sent: Thursday, April 17, 2008 8:38 PM
> To: Andrejus Chaliapinas
> Cc: dbus at lists.freedesktop.org
> Subject: Re: Segmentation fault when calling dbus from java. Need help
> 
> On Thu Apr 17 19:47, Andrejus Chaliapinas wrote:
> > Hi,
> >
> > I'm playing with Dbus v1.1.2-9.fc8 on FedoraCore8 and when calling some
> C
> > code via JNI with JDK jdk_1_5_0_15-linux-i586 I get segmentation fault
> with
> > top of calling stack like this:
> 
> If you are using Java I _highly_ recommend using the Java implementation
> of D-Bus, which doesn't use any JNI other than to write to Unix sockets.
> 
> The Java implementation and documentation can be found on the D-Bus
> website:
> 
> http://www.freedesktop.org/wiki/Software/DBusBindings
> http://dbus.freedesktop.org/doc/dbus-java/
> 
> Having written an older version which did use JNI, you really really
> want to avoid it. Also, D-Bus Java provides a lot of features and I'm
> always happy to discuss adding missing ones.
> 
> Matt
> --
> www.matthew.ath.cx
> D-Bus Java



More information about the dbus mailing list