Are you running this on a Samsung device? Did you by any change use reflection to run createRfcommSocket ?
I'm getting this error consistently on a device running a Samsung rom (Samsung Galaxy Tab) whereas I don't get it when running on a device running Cyanogenmod. It appears to me that android.sec.enterprise.BluetoothUtils is a proprietary class added to Android by Samsung and it appears this class has a bug in it (causing the NullPointerException). Well, or not exactly a bug if you are using a method via reflection as it is never guaranteed to work. Does anyone else have any thoughts on this? On Friday, July 13, 2012 6:05:45 PM UTC, bob wrote: > > Can someone please help me understand this error? > > > 07-13 18:03:52.224: W/System.err(4597): java.lang.NullPointerException > > 07-13 18:03:52.244: W/System.err(4597): at > android.sec.enterprise.BluetoothUtils.isSocketAllowedBySecurityPolicy(BluetoothUtils.java:106) > > 07-13 18:03:52.244: W/System.err(4597): at > android.bluetooth.BluetoothSocket.connect(BluetoothSocket.java:215) > > 07-13 18:03:52.254: W/System.err(4597): at > com.reflect.remote.Blue_Client.attempt_first_connect(Blue_Client.java:133) > > 07-13 18:03:52.254: W/System.err(4597): at > com.reflect.remote.Remote_Control_Activity.onActivityResult(Remote_Control_Activity.java:299) > > 07-13 18:03:52.254: W/System.err(4597): at > android.app.Activity.dispatchActivityResult(Activity.java:4654) > > 07-13 18:03:52.274: W/System.err(4597): at > android.app.ActivityThread.deliverResults(ActivityThread.java:2990) > > 07-13 18:03:52.284: W/System.err(4597): at > android.app.ActivityThread.handleSendResult(ActivityThread.java:3037) > > 07-13 18:03:52.284: W/System.err(4597): at > android.app.ActivityThread.access$1100(ActivityThread.java:128) > > 07-13 18:03:52.284: W/System.err(4597): at > android.app.ActivityThread$H.handleMessage(ActivityThread.java:1191) > > 07-13 18:03:52.284: W/System.err(4597): at > android.os.Handler.dispatchMessage(Handler.java:99) > > 07-13 18:03:52.294: W/System.err(4597): at > android.os.Looper.loop(Looper.java:137) > > 07-13 18:03:52.294: W/System.err(4597): at > android.app.ActivityThread.main(ActivityThread.java:4514) > > 07-13 18:03:52.294: W/System.err(4597): at > java.lang.reflect.Method.invokeNative(Native Method) > > 07-13 18:03:52.294: W/System.err(4597): at > java.lang.reflect.Method.invoke(Method.java:511) > > 07-13 18:03:52.294: W/System.err(4597): at > com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:980) > > 07-13 18:03:52.294: W/System.err(4597): at > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:747) > > 07-13 18:03:52.304: W/System.err(4597): at > dalvik.system.NativeStart.main(Native Method) > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en