The connection implementation for btspp cannot be found

123 views
Skip to first unread message

Xavier Sarsanedas Trias

unread,
Oct 12, 2014, 8:00:05 AM10/12/14
to bluecov...@googlegroups.com
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!
Reply all
Reply to author
Forward
0 new messages