I installed those bluez libraries through the snaptic manager.
When I run my bluetooth application, i get the error below. However,
everything worked well with opensuse 10.3.
------------------------------------------------------------------------------------------------------------------------------
Can't initialize bluetooth:
javax.bluetooth.BluetoothStateException: BlueCove
com.intel.bluetooth.BluetoothStackBlueZ not available
at com.intel.bluetooth.BlueCoveImpl.loadStackClass(BlueCoveImpl.java:
342)
at com.intel.bluetooth.BlueCoveImpl.detectStack(BlueCoveImpl.java:
427)
at com.intel.bluetooth.BlueCoveImpl.access$500(BlueCoveImpl.java:65)
at com.intel.bluetooth.BlueCoveImpl$1.run(BlueCoveImpl.java:1020)
at java.security.AccessController.doPrivileged(Native Method)
at
com.intel.bluetooth.BlueCoveImpl.detectStackPrivileged(BlueCoveImpl.java:
1018)
at
com.intel.bluetooth.BlueCoveImpl.getBluetoothStack(BlueCoveImpl.java:
1011)
at
javax.bluetooth.LocalDevice.getLocalDeviceInstance(LocalDevice.java:
75)
at javax.bluetooth.LocalDevice.getLocalDevice(LocalDevice.java:95)
at
org.fcitmuk.communication.bluetooth.BluetoothServer.run(BluetoothServer.java:
98)
at java.lang.Thread.run(Thread.java:619)
-----------------------------------------------------------------------------------------------------------------------
How can I solve this?
Regards,
Simon.
--
You received this message because you are subscribed to the Google Groups "bluecove-users" group.
To post to this group, send email to bluecov...@googlegroups.com.
To unsubscribe from this group, send email to bluecove-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bluecove-users?hl=en.
libbluetooth-dev is installed. Its version is 4.32-Oubuntu4.1 . Could
it be compatibility issues?
Regards,
Simon.
On Mar 3, 8:54 pm, Mina Shokry <minasho...@gmail.com> wrote:
> On ubuntu, make sure the library libbluetooth-dev is installed
> refer tohttp://code.google.com/p/bluecove/wiki/stacks
> > bluecove-user...@googlegroups.com<bluecove-users%2Bunsu...@googlegroups.com>
On 4 Mar, 10:48, Simon <smuwa...@gmail.com> wrote:
> Thank you.
>
> libbluetooth-dev is installed. Its version is 4.32-Oubuntu4.1 . Could
> it be compatibility issues?
>
> Regards,
> Simon.
>
> On Mar 3, 8:54 pm, Mina Shokry <minasho...@gmail.com> wrote:
>
>
>
> > On ubuntu, make sure the library libbluetooth-dev is installed
> > refer tohttp://code.google.com/p/bluecove/wiki/stacks
>
> > On Wed, Mar 3, 2010 at 11:05 AM, Simon <smuwa...@gmail.com> wrote:
> > > Hi,
> > > Am using ubuntu 9.04.
> > > I have bluez 4.32
>
> > > I installed those bluez libraries through the snaptic manager.
> > > When I run my bluetooth application, i get the error below. However,
> > > everything worked well with opensuse 10.3.
>
> > > ------------------------------------------------------------------------------------------------------------------------------
>
> > > Can't initialize bluetooth:
> > > javax.bluetooth.BluetoothStateException: BlueCove
> > > com.intel.bluetooth.BluetoothStackBlueZ not available
> > > at
> > > com.intel.bluetooth.BlueCoveImpl.loadStackClass(BlueCoveImpl.java:
> > > 342)
> > > at com.intel.bluetooth.BlueCoveImpl.detectStack(BlueCoveImpl.java:
> > > 427)
> > > at com.intel.bluetooth.BlueCoveImpl.access$500(BlueCoveImpl.java:65)
> > > at com.intel.bluetooth.BlueCoveImpl$1.run(BlueCoveImpl.java:1020)
> > > at java.security.AccessController.doPrivileged(Native Method)
> > > at
> > > com.intel.bluetooth.BlueCoveImpl.detectStackPrivileged(BlueCoveImpl.java:
> > > 1018)
> > > at
> > > com.intel.bluetooth.BlueCoveImpl.getBluetoothStack(BlueCoveImpl.java:
> > > 1011)
> > > at
> > > javax.bluetooth.LocalDevice.getLocalDeviceInstance(LocalDevice.java:
> > > 75)
> > > at javax.bluetooth.LocalDevice.getLocalDevice(LocalDevice.java:95)
> > > at
>
> > > org.fcitmuk.communication.bluetooth.BluetoothServer.run(BluetoothServer.java:
> > > 98)
> > > at java.lang.Thread.run(Thread.java:619)
>
> > > -----------------------------------------------------------------------------------------------------------------------
>
> > > How can I solve this?
>
> > > Regards,
> > > Simon.
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "bluecove-users" group.
> > > To post to this group, send email to bluecov...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > bluecove-user...@googlegroups.com<bluecove-users%2Bunsubscribe@googlegroups.com>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/bluecove-users?hl=en.- Nascondi testo citato
>
> - Mostra testo citato -
---------------------------------
smuwanga@linux-simon:/usr/lib$ sudo ln ./libbluetooth.so.3 ./
libbluetooth.so
ln: creating hard link `./libbluetooth.so': File exists
---------------------------------
What else can we do to get it fixed?
BTW, I went ahead to put the bluecove libraries(bluecove-2.1.0.jar &
bluecove-gpl-2.1.0.jar) into the buildpath for my project. Am using
eclipse for development.
Here is the new error.
----------
BlueCove version 2.1.0 on bluez
ERROR - FormsBluetoothServer.errorOccured(83) |2010-03-15
16:43:14,445| Can't initialize bluetooth:
java.lang.RuntimeException: Unable to retrieve the local discovery
mode.
at
com.intel.bluetooth.BluetoothStackBlueZ.nativeGetLocalDeviceDiscoverable(Native
Method)
at
com.intel.bluetooth.BluetoothStackBlueZ.getLocalDeviceDiscoverable(BluetoothStackBlueZ.java:
273)
at
com.intel.bluetooth.BluetoothStackBlueZ.setLocalDeviceDiscoverable(BluetoothStackBlueZ.java:
287)
at javax.bluetooth.LocalDevice.setDiscoverable(LocalDevice.java:206)
at
org.fcitmuk.communication.bluetooth.BluetoothServer.run(BluetoothServer.java:
101)
at java.lang.Thread.run(Thread.java:619)
----------
Cheers,
Simon.
> > > >http://groups.google.com/group/bluecove-users?hl=en.-Nascondi testo citato
To unsubscribe from this group, send email to bluecove-user...@googlegroups.com.
On Mar 15, 10:06 pm, Mina Shokry <minasho...@gmail.com> wrote:
> your problem isn't with the library. the library exists and it is loaded
> correctly.
>
> from stacktrace, I see you are changing discovery mode. To do this on bluez,
> you need root permissions. try running your code with root privileges.
I decided to launch eclipse(my development environment) and launched
the application, the errror still persists. Anything am doing wrong
here?
>
> If the problem persists, try using the latest snapshot of bluecove (not the
> latest released version).
I'll also look up a newer version as advised.
Simon.
> > > > > > bluecove-user...@googlegroups.com<bluecove-users%2Bunsu...@googlegroups.com>
> > <bluecove-users%2Bunsubscribe@googlegroups.com>
> > > > > > .
> > > > > > For more options, visit this group at
> > > > > >http://groups.google.com/group/bluecove-users?hl=en.-Nasconditesto
> > citato
>
> > > > - Mostra testo citato -
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "bluecove-users" group.
> > To post to this group, send email to bluecov...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > bluecove-user...@googlegroups.com<bluecove-users%2Bunsu...@googlegroups.com>
Thanks Mina.
I decided to launch eclipse(my development environment) and launched
On Mar 15, 10:06 pm, Mina Shokry <minasho...@gmail.com> wrote:
> your problem isn't with the library. the library exists and it is loaded
> correctly.
>
> from stacktrace, I see you are changing discovery mode. To do this on bluez,
> you need root permissions. try running your code with root privileges.
the application, the errror still persists. Anything am doing wrong
here?
I'll also look up a newer version as advised.
>
> If the problem persists, try using the latest snapshot of bluecove (not the
> latest released version).
To unsubscribe from this group, send email to bluecove-user...@googlegroups.com.
The error for the "java.lang.RuntimeException: Unable to retrieve the
local discovery
mode. " clears, and another one comes up. This occurs when am running
the application as root, and also the code as root.
Here is the new error.
---------------------------------
ERROR - FormsBluetoothServer.errorOccured(83) |2010-03-17
12:03:47,351| Can't initialize bluetooth:
javax.bluetooth.BluetoothStateException: BlueCove
com.intel.bluetooth.BluetoothStackBlueZ not available
at com.intel.bluetooth.BlueCoveImpl.loadStackClass(BlueCoveImpl.java:
342)
at com.intel.bluetooth.BlueCoveImpl.detectStack(BlueCoveImpl.java:
427)
at com.intel.bluetooth.BlueCoveImpl.access$500(BlueCoveImpl.java:65)
at com.intel.bluetooth.BlueCoveImpl$1.run(BlueCoveImpl.java:1020)
at java.security.AccessController.doPrivileged(Native Method)
at
com.intel.bluetooth.BlueCoveImpl.detectStackPrivileged(BlueCoveImpl.java:
1018)
at
com.intel.bluetooth.BlueCoveImpl.getBluetoothStack(BlueCoveImpl.java:
1011)
at
javax.bluetooth.LocalDevice.getLocalDeviceInstance(LocalDevice.java:
75)
at javax.bluetooth.LocalDevice.getLocalDevice(LocalDevice.java:95)
at
org.fcitmuk.communication.bluetooth.BluetoothServer.run(BluetoothServer.java:
98)
at java.lang.Thread.run(Thread.java:619)
---------------------------------
Cheers,
Simon.
On Mar 17, 1:47 am, Mina Shokry <minasho...@gmail.com> wrote:
> Hello Simon,
> See my answers below.
>
> > <bluecove-users%2Bunsu...@googlegroups.com<bluecove-users%252Buns...@googlegroups.com>
>
> > > > <bluecove-users%2Bunsubscribe@googlegroups.com>
> > > > > > > > .
> > > > > > > > For more options, visit this group at
>
> >http://groups.google.com/group/bluecove-users?hl=en.-Nasconditesto
> > > > citato
>
> > > > > > - Mostra testo citato -
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "bluecove-users" group.
> > > > To post to this group, send email to bluecov...@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > bluecove-user...@googlegroups.com<bluecove-users%2Bunsu...@googlegroups.com>
> > <bluecove-users%2Bunsu...@googlegroups.com<bluecove-users%252Buns...@googlegroups.com>
To unsubscribe from this group, send email to bluecove-user...@googlegroups.com.
Regards,
Simon.
On Mar 17, 11:12 pm, Mina Shokry <minasho...@gmail.com> wrote:
> Are you sure bluecove-gpl.jar is in your classpath?
>
> > > > <bluecove-users%2Bunsu...@googlegroups.com<bluecove-users%252Buns...@googlegroups.com>
> > <bluecove-users%252Buns...@googlegroups.com<bluecove-users%25252Bun...@googlegroups.com>
>
> > > > > > <bluecove-users%2Bunsubscribe@googlegroups.com>
> > > > > > > > > > .
> > > > > > > > > > For more options, visit this group at
>
> > > >http://groups.google.com/group/bluecove-users?hl=en.-Nasconditesto
> > > > > > citato
>
> > > > > > > > - Mostra testo citato -
>
> > > > > > --
> > > > > > You received this message because you are subscribed to the Google
> > > > Groups
> > > > > > "bluecove-users" group.
> > > > > > To post to this group, send email to
> > bluecov...@googlegroups.com.
> > > > > > To unsubscribe from this group, send email to
> > > > > > bluecove-user...@googlegroups.com<bluecove-users%2Bunsu...@googlegroups.com>
> > <bluecove-users%2Bunsu...@googlegroups.com<bluecove-users%252Buns...@googlegroups.com>
>
> > > > <bluecove-users%2Bunsu...@googlegroups.com<bluecove-users%252Buns...@googlegroups.com>
> > <bluecove-users%252Buns...@googlegroups.com<bluecove-users%25252Bun...@googlegroups.com>
>
> > > > > > .
> > > > > > For more options, visit this group at
> > > > > >http://groups.google.com/group/bluecove-users?hl=en.
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "bluecove-users" group.
> > > > To post to this group, send email to bluecov...@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > bluecove-user...@googlegroups.com<bluecove-users%2Bunsu...@googlegroups.com>
>
> ...
>
> read more »
How can I get the right bluecove version?
Any idea on how I can solve this mismatch problem?
Thanking you,
Simon.
> ...
>
> read more »
To unsubscribe from this group, send email to bluecove-user...@googlegroups.com.
Thanking you,
Simon.
On Apr 9, 2:28 pm, Mina Shokry <minasho...@gmail.com> wrote:
> > > > > > > <bluecove-users%2Bunsu...@googlegroups.com<bluecove-users%252Buns...@googlegroups.com>
> > <bluecove-users%252Buns...@googlegroups.com<bluecove-users%25252Bun...@googlegroups.com>
>
> > > > > <bluecove-users%252Buns...@googlegroups.com<bluecove-users%25252Bun...@googlegroups.com>
> > <bluecove-users%25252Bun...@googlegroups.com<bluecove-users%2525252Bu...@googlegroups.com>
>
> > > > > > > > > <bluecove-users%2Bunsubscribe@googlegroups.com>
> > > > > > > > > > > > > .
> > > > > > > > > > > > > For more options, visit this group at
>
> >http://groups.google.com/group/bluecove-users?hl=en.-Nasconditesto
> > > > > > > > > citato
>
> > > > > > > > > > > - Mostra testo citato -
>
> > > > > > > > > --
> > > > > > > > > You received this message because you are subscribed to the
> > Google
> > > > > > > Groups
> > > > > > > > > "bluecove-users" group.
> > > > > > > > > To post to this group, send email to
> > > > > bluecov...@googlegroups.com.
> > > > > > > > > To unsubscribe from this group, send email to
> > > > > > > > > bluecove-user...@googlegroups.com<bluecove-users%2Bunsu...@googlegroups.com>
> > <bluecove-users%2Bunsu...@googlegroups.com<bluecove-users%252Buns...@googlegroups.com>
>
> > > > > <bluecove-users%2Bunsu...@googlegroups.com<bluecove-users%252Buns...@googlegroups.com>
> > <bluecove-users%252Buns...@googlegroups.com<bluecove-users%25252Bun...@googlegroups.com>
>
> > > > > > > <bluecove-users%2Bunsu...@googlegroups.com<bluecove-users%252Buns...@googlegroups.com>
> > <bluecove-users%252Buns...@googlegroups.com<bluecove-users%25252Bun...@googlegroups.com>
>
> > > > > <bluecove-users%252Buns...@googlegroups.com<bluecove-users%25252Bun...@googlegroups.com>
> > <bluecove-users%25252Bun...@googlegroups.com<bluecove-users%2525252Bu...@googlegroups.com>
>
> > > > > > > > > .
> > > > > > > > > For more options,
>
> > > ...
>
> > > read more »
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "bluecove-users" group.
> > To post to this group, send email to bluecov...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > bluecove-user...@googlegroups.com<bluecove-users%2Bunsu...@googlegroups.com>
these should be sufficient
--------------------------------------------------------
Sent from Android Dev Phone 1
On Apr 12, 2010 9:37 AM, "Simon" <smuw...@gmail.com> wrote:
Oh thanks Mina.
I downloaded and compiled the code for bluecove from
http://bluecove.googlecode.com/svn/trunk/bluecove . I also did the
same bluecove-gpl which I pulled from http://bluecove.googlecode.com/svn/trunk/bluecove-gpl
. Could there be another link am meant to have used?
Thanking you,
Simon.
On Apr 9, 2:28 pm, Mina Shokry <minasho...@gmail.com> wrote:
> be sure you downloaded and compiled code of both bluecove and bluecove-gpl.On Fri, Apr 9, 2010 at ...
> > <bluecove-users%25252Bun...@googlegroups.com<bluecove-users%2525252Bu...@googlegroups.com>
>
> > <bluecove-users%25252Bun...@googlegroups.com<bluecove-users%2525252Bu...@googlegroups.com>
> > > > > > > > > <bluecove-users%2Bunsubscribe@googlegroups.com>
> > > > > > > > > > > > > .
> >...
>
> > > > > > > > > .
> > > > > > > > > For more options,
>
> > > ...
>
> > > read more »
>
> > --
>...
> > bluecove-user...@googlegroups.com<bluecove-users%2Bunsu...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/bluecove-users?hl=...
--
You received this message because you are subscribed to the Google Groups "bluecove-users" group.
To...
I have seen a libbluecove.so that is found in src/main/java/
resources . Is that the default lib that am meant to use?
Am I supposed to generate a new libbluecove.so for my OS'
architecture? Just seen the bluecove-gpl/build.xml' target(compile-
native-lib) . Is there anything that needs adjustment?
Here is my OS' architecture as a result of #uname -a
Linux linux-simon 2.6.28-17-generic #58-Ubuntu SMP Tue Dec 1 18:57:07
UTC 2009 i686 GNU/Linux
Whats the buecove-blueZ project for? Should I compile and install it
to replace the one I have on my system so as to clear the mismatch in
native libraries?
Thank you once more,
Simon.
On Apr 12, 10:52 am, Mina Shokry <minasho...@gmail.com> wrote:
> these should be sufficient
>
> --------------------------------------------------------
> Sent from Android Dev Phone 1
>
> On Apr 12, 2010 9:37 AM, "Simon" <smuwa...@gmail.com> wrote:
>
> Oh thanks Mina.
> I downloaded and compiled the code for bluecove fromhttp://bluecove.googlecode.com/svn/trunk/bluecove. I also did the
> same bluecove-gpl which I pulled fromhttp://bluecove.googlecode.com/svn/trunk/bluecove-gpl
> . Could there be another link am meant to have used?
>
> Thanking you,
> Simon.
>
> On Apr 9, 2:28 pm, Mina Shokry <minasho...@gmail.com> wrote:
>
> > be sure you downloaded and compiled code of both bluecove and
>
> bluecove-gpl.On Fri, Apr 9, 2010 at ...> > <bluecove-users%25252Bun...@googlegroups.com<bluecove-users%2525252Bu...@googlegroups.com>
>
> <bluecove-users%2525252Bu...@googlegroups.com<bluecove-users%252525252B...@googlegroups.com>
>
>
>
> > > > > > > > > > <bluecove-users%2Bunsubscribe@googlegroups.com>
> > > > > > > > > > > > > > .
> > >...
> > > <bluecove-users%25252Bun...@googlegroups.com<bluecove-users%2525252Bu...@googlegroups.com>
>
> <bluecove-users%2525252Bu...@googlegroups.com<bluecove-users%252525252B...@googlegroups.com>
>
>
>
> > > > > > > > > > .
> > > > > > > > > > For more options,
>
> > > > ...
>
> > > > read more »
>
> > > --
> >...
> > > bluecove-user...@googlegroups.com<bluecove-users%2Bunsu...@googlegroups.com>
>
> <bluecove-users%2Bunsu...@googlegroups.com<bluecove-users%252Buns...@googlegroups.com>
To post to this group, send email to bluecov...@googlegroups.com.
To unsubscribe from this group, send email to bluecove-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bluecove-users?hl=en.
Thank you again,
Simon
On Apr 13, 11:57 am, Mina Shokry <minasho...@gmail.com> wrote:
> It seems you are doing something wrong but I can not exactly figure it out.
> Resulted libbluecove.so won't exist in this path. and the build script will
> automatically generate native library for your os and architecture.
>
> If you are on linux and using bluecove-gpl, you should only use the native
> library on bluecove-gpl.
>
> bluecove-gpl and bluecove-bluez are two alternative modules that can replace
> each other. No need to use them both together. Each module has its pros and
> cons but now, bluecove-gpl is more stable as bluecove-bluez was excluded
> from last release as it isn't yet updated to support bluez 4.x. which runs
> on most modern linux releases.
>
> If you just want to use the latest code, you may download an already built
> snapshot. see them herehttp://snapshot.bluecove.org/distribution/download/2.1.1-SNAPSHOT/
> > > <bluecove-users%2525252Bu...@googlegroups.com<bluecove-users%252525252B...@googlegroups.com>
> > <bluecove-users%252525252B...@googlegroups.com<bluecove-users%25252525252...@googlegroups.com>
>
> > > > > > > > > > > > <bluecove-users%2Bunsubscribe@googlegroups.com>
> > > > > > > > > > > > > > > > .
> > > > >...
> > > > > <bluecove-users%25252Bun...@googlegroups.com<bluecove-users%2525252Bu...@googlegroups.com>
> > <bluecove-users%2525252Bu...@googlegroups.com<bluecove-users%252525252B...@googlegroups.com>
>
> > > <bluecove-users%2525252Bu...@googlegroups.com<bluecove-users%252525252B...@googlegroups.com>
> > <bluecove-users%252525252B...@googlegroups.com<bluecove-users%25252525252...@googlegroups.com>
>
> > > > > > > > > > > > .
> > > > > > > > > > > > For more options,
>
> > > > > > ...
>
> > > > > > read more »
>
> > > > > --
> > > >...
> > > > > bluecove-user...@googlegroups.com<bluecove-users%2Bunsu...@googlegroups.com>
> > <bluecove-users%2Bunsu...@googlegroups.com<bluecove-users%252Buns...@googlegroups.com>
>
> > > <bluecove-users%2Bunsu...@googlegroups.com<bluecove-users%252Buns...@googlegroups.com>
> > <bluecove-users%252Buns...@googlegroups.com<bluecove-users%25252Bun...@googlegroups.com>
>
> > > > > .
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/bluecove-users?hl=...
>
> > > --
>
> > > You received this message because you are subscribed to the Google Groups
> > > "bluecove-users" group.
> > > To...
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "bluecove-users" group.
> > To post to this group, send email to bluecov...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > bluecove-user...@googlegroups.com<bluecove-users%2Bunsu...@googlegroups.com>
> > .
> > For more options, visit this group at