I all.
I am trying to make a program that connects 2 mobile phones, and send a string to the server mobile, and then sends the thread back.
I have tested it in netbeans, and it looks like it discoveres the device. but then I get an error:
Address: 0123456789AF
Name: WirelessToolkit
Starting device inquiry...
Device Inquiry Completed.
Bluetooth Devices:
1. 0000000DECAF (WirelessToolkit)
Searching for service...
java.lang.NullPointerException
at com.sun.kvem.jsr082.bluetooth.DataL2CAPReaderWriter.<init>(DataL2CAPReaderWriter.java:50)
at com.sun.kvem.jsr082.bluetooth.SDPClient$SDPTransport.start(SDPClient.java:283)
at com.sun.kvem.jsr082.bluetooth.SDPClient.openTransport(SDPClient.java:102)
at com.sun.kvem.jsr082.bluetooth.SDPClient.open(SDPClient.java:183)
at com.sun.kvem.jsr082.bluetooth.SDPClient.<init>(SDPClient.java:68)
at com.sun.kvem.jsr082.bluetooth.ServiceSearcher.start(ServiceSearcher.java:76)
at com.sun.kvem.jsr082.bluetooth.DiscoveryAgentImpl.searchServices(DiscoveryAgentImpl.java:225)
at javax.bluetooth.DiscoveryAgent.searchServices(DiscoveryAgent.java:259)
at SampleSPPClient.main(SampleSPPClient.java:96)
at SPP_midlet.listAction(SPP_midlet.java:147)
at SPP_midlet.commandAction(SPP_midlet.java:95)
at javax.microedition.lcdui.List.callKeyPressed(List.java:818)
at javax.microedition.lcdui.Display$DisplayAccessor.keyEvent(Display.java:2209)
at javax.microedition.lcdui.Display$DisplayManagerImpl.keyEvent(Display.java:2952)
at com.sun.midp.lcdui.DefaultEventHandler.keyEvent(DefaultEventHandler.java:249)
at com.sun.midp.lcdui.AutomatedEventHandler.keyEvent(AutomatedEventHandler.java:620)
at com.sun.midp.lcdui.DefaultEventHandler$QueuedEventHandler.handleVmEvent(DefaultEventHandler.java:699)
at com.sun.midp.lcdui.DefaultEventHandler$QueuedEventHandler.run(DefaultEventHandler.java:608)
Does anyone know what this means. I can post the code if needed.
Hope someone can help me.
kind regards Michael.