Discussion:
The connection implementation for btspp cannot be found
Xavier Sarsanedas Trias
2014-10-12 12:00:04 UTC
Permalink
Hi everyone!

I'm developing a project where I'm communicating between an Android mobile
and a computer with ArchLinux ARM Operating System. The objective is having
a serial channel to be able to communicate between this devices.

This project worked me fine. But now, I have had to update the ArchLinux
system and now I have problems with bluetooth communication.

I developed a java program that use BlueCove version 2.1.1-SNAPSHOT.
The problem appears when I try to run the program. The error occurs when
the program executes the bold line code:

LocalDevice bluetoothUMBER = null;
StreamConnectionNotifier connexioNotificador = null;
StreamConnection fluxConnexio = null;

try {
bluetoothUMBER = LocalDevice.getLocalDevice();

bluetoothUMBER.setDiscoverable(DiscoveryAgent.GIAC);
*connexioNotificador = (StreamConnectionNotifier)
Connector.open(URL_SERVEI);*

//THIS IS THE CONTENT OF URL_SERVEI -->
btspp://localhost:0000110100001000800000805f9b34fb;name=RemoteControl

And the error that shows is:

BlueCove version 2.1.1-SNAPSHOT on bluez
[ERROR]: The connection implementation for btspp cannot be found.
javax.microedition.io.ConnectionNotFoundException: The connection
implementation for btspp cannot be found.
at javax.microedition.io.Connector.open(Connector.java:238)
at javax.microedition.io.Connector.open(Connector.java:181)
at javax.microedition.io.Connector.open(Connector.java:162)
at UmberServer.esperarConnexions(UmberServer.java:41)
at UmberServer.run(UmberServer.java:26)
[INFO]: Esperant connexions remotes...
[ERROR]: null
java.lang.NullPointerException
at UmberServer.esperarConnexions(UmberServer.java:70)
at UmberServer.run(UmberServer.java:26)
BlueCove stack shutdown completed


I'm not sure where is the problem. What does it mean this error?

Before update the system I used the bluez 4, and now I see that the bluez
is updated at bluez 5.24

Perhaps Bluecove 2.1.1 isn't compatible with bluez 5.24?
I'm leaving something important to configure?

Thank you!
--
You received this message because you are subscribed to the Google Groups "bluecove-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bluecove-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To post to this group, send email to bluecove-users-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
Visit this group at http://groups.google.com/group/bluecove-users.
For more options, visit https://groups.google.com/d/optout.
Loading...