Skip to main content

Bluecove error on pMEA: "The requested protocol does not exist" ?

1 reply [Last post]
xkrys
Offline
Joined: 2010-05-27
Points: 0

Hello all,

I'm trying to connect to some bluetooth devices from a device using bluecove on bluez stack.

I'm using the Personal Profile 1.1 and the problem I've got is that for all BT protocols (btspp, btgoep, etc..),
I've got this error when I try to open a connection using the microedition Connector.open() function :

javax.microedition.io.ConnectionNotFoundException: The requested protocol does not exist //001C8830274B:1;authenticate=false;encrypt=false;master=false

After some tests I figured out that the classes in my bluecove jar in javax.microedition package don't
override those from phoneME's lib folder. That's why these protocols are not recognized.

From here does anyone could tell me how can I use the classes in the javax.microedition package from bluecove and not those from phoneME?

Thanks,

Krys

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
xkrys
Offline
Joined: 2010-05-27
Points: 0

I finally managed to make it work thanks those two threads :

- http://forums.java.net/jive/thread.jspa?threadID=61313&tstart=64
- http://forums.sun.com/thread.jspa?threadID=5373634

So the solution was : use the -Xbootclasspath/a argument to tell the VM to use bluecove classes by giving both of the bluecove jars paths.
Actually I had already try this solution before but I was only giving the bluecove.jar path not bluecove-gpl.jar.

Here it is : [i]cvm -Xbootclasspath/a:BLUECOVE_JAR_PATH:BLUECOVE_GPL_JAR_PATH -cp........[/i]

Hope it will help ;)

Krys