API Changes in Bluez 4.x Break Bluecove-GPL

9 views
Skip to first unread message

Michael Chang

unread,
Nov 2, 2008, 11:12:59 PM11/2/08
to bluecove-users
I'm getting the following error when using bluecove 2.0.3 with Ubuntu
Linux 8.10. This version of Ubuntu ships with the 4.x series of Bluez,
which is known to contain API breakage.

Native Library bluecove not available
javax.bluetooth.BluetoothStateException: BlueCove library bluecove not
available
at
com.intel.bluetooth.BlueCoveImpl.loadNativeLibraries(BlueCoveImpl.java:
384)
at com.intel.bluetooth.BlueCoveImpl.detectStack(BlueCoveImpl.java:
432)
at com.intel.bluetooth.BlueCoveImpl.access$500(BlueCoveImpl.java:69)
at com.intel.bluetooth.BlueCoveImpl$1.run(BlueCoveImpl.java:1025)
at java.security.AccessController.doPrivileged(Native Method)
at
com.intel.bluetooth.BlueCoveImpl.detectStackPrivileged(BlueCoveImpl.java:
1023)
at
com.intel.bluetooth.BlueCoveImpl.getBluetoothStack(BlueCoveImpl.java:
1016)
at
javax.bluetooth.LocalDevice.getLocalDeviceInstance(LocalDevice.java:
77)
at javax.bluetooth.LocalDevice.getLocalDevice(LocalDevice.java:97)

Vlad Skarzhevskyy

unread,
Nov 3, 2008, 12:21:18 AM11/3/08
to bluecov...@googlegroups.com
Yes Bluez 4 have only D-Bbus API. For this we created bluecove-bluez.....

--
Vlad

Michael Chang

unread,
Nov 3, 2008, 3:52:24 PM11/3/08
to bluecov...@googlegroups.com
Hmm... it appears that they've also modified the dbus API in this version. Are there any new patches to bluecove-bluez for these changes to the latest version that are not in git?

15:35:47.144 Java 1.4+ detected: 1.6.0_10; Java HotSpot(TM) Client VM; Sun Microsystems Inc.
      com.intel.bluetooth.UtilsJavaSE.getLocation(UtilsJavaSE.java:124)
15:35:47.226 Use stack ClassLoader
      com.intel.bluetooth.NativeLibLoader.loadAsSystemResource(NativeLibLoader.java:274)
15:35:47.250 Library loaded from /tmp/bluecove_michael_0/libbluecove.so
      com.intel.bluetooth.NativeLibLoader.loadAsSystemResource(NativeLibLoader.java:314)
15:35:47.251 Use stack ClassLoader
      com.intel.bluetooth.NativeLibLoader.loadAsSystemResource(NativeLibLoader.java:274)
15:35:47.254 error Native Library libunix-java.so is not a Resource !
      com.intel.bluetooth.NativeLibLoader.loadAsSystemResource(NativeLibLoader.java:291)
15:35:47.265 Library loaded unix-java
      com.intel.bluetooth.NativeLibLoader.tryload(NativeLibLoader.java:221)
15:35:47.266 getStackID()
      com.intel.bluetooth.BluetoothStackBlueZ.getStackID(BluetoothStackBlueZ.java:134)
15:35:47.266 for breakpoint
      com.intel.bluetooth.BluetoothStackBlueZ.getLibraryVersion(BluetoothStackBlueZ.java:161)
15:35:47.267 BluetoothStack selected bluez
      com.intel.bluetooth.BlueCoveImpl.detectStack(BlueCoveImpl.java:485)
15:35:47.267 getStackID()
      com.intel.bluetooth.BluetoothStackBlueZ.getStackID(BluetoothStackBlueZ.java:134)
15:35:47.268 for breakpoint
      com.intel.bluetooth.BluetoothStackBlueZ.getLibraryVersion(BluetoothStackBlueZ.java:161)
15:35:47.268 nativeDebugCallback ON
      common.c:52
15:35:47.268 initialize()
      com.intel.bluetooth.BluetoothStackBlueZ.initialize(BluetoothStackBlueZ.java:257)
Could not connect to default remote... performing search.
Unable to initialize bluetooth stack.
java.lang.IllegalStateException: Bluetooth failed to initialize. There is probably a problem with your local Bluetooth stack or API.
    at wiiremotej.WiiRemoteJ.<clinit>(WiiRemoteJ.java:73)
    at ca.azuresky.wiiremote.rotationdemo.Mesh3DDisplayDemo.<init>(Mesh3DDisplayDemo.java:49)
    at ca.azuresky.wiiremote.rotationdemo.Mesh3DDisplayDemo.main(Mesh3DDisplayDemo.java:83)
Caused by: org.freedesktop.DBus$Error$UnknownMethod: Method "InterfaceVersion" with signature "" on interface "org.bluez.Manager" doesn't exist
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at org.freedesktop.dbus.Error.getException(Error.java:108)
    at org.freedesktop.dbus.Error.throwException(Error.java:138)
    at org.freedesktop.dbus.RemoteInvocationHandler.executeRemoteMethod(RemoteInvocationHandler.java:137)
    at org.freedesktop.dbus.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:189)
    at $Proxy1.InterfaceVersion(Unknown Source)
    at com.intel.bluetooth.BluetoothStackBlueZ.initialize(BluetoothStackBlueZ.java:270)
    at com.intel.bluetooth.BlueCoveImpl.setBluetoothStack(BlueCoveImpl.java:956)
    at com.intel.bluetooth.BlueCoveImpl.detectStack(BlueCoveImpl.java:488)
    at com.intel.bluetooth.BlueCoveImpl.access$500(BlueCoveImpl.java:72)
    at com.intel.bluetooth.BlueCoveImpl$1.run(BlueCoveImpl.java:1028)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.intel.bluetooth.BlueCoveImpl.detectStackPrivileged(BlueCoveImpl.java:1026)
    at com.intel.bluetooth.BlueCoveImpl.getBluetoothStack(BlueCoveImpl.java:1019)

    at javax.bluetooth.LocalDevice.getLocalDeviceInstance(LocalDevice.java:77)
    at javax.bluetooth.LocalDevice.getLocalDevice(LocalDevice.java:97)
    at wiiremotej.WiiRemoteJ.<clinit>(WiiRemoteJ.java:66)
    ... 2 more
--
Best Regards,

Michael Chang

Please note that not all formatting may be preserved in Office/Word/Powerpoint documents sent to me. Please use OpenDocument (not Open XML), HTML, and RTF where possible. See http://www.gnu.org/philosophy/no-word-attachments.html
Note that only OpenDocument format preserves margin widths.
Thank you.

Vlad Skarzhevskyy

unread,
Nov 3, 2008, 4:45:29 PM11/3/08
to bluecov...@googlegroups.com
No, there are no patches.
The new classes should be created base on new API!

Any help is appreciated.

Vlad

--
Vlad

Reply all
Reply to author
Forward
0 new messages