[android-developers] Re: java.nio.channels.IllegalSelectorException
Any updates on this one? Is it allowed to open a socket channel? Any hints appreciated! Regards, Friedger If you want to see my stack trace: 03-25 23:16:26.279: ERROR/AndroidRuntime(869): Caused by: java.nio.channels.IllegalSelectorException 03-25 23:16:26.279: ERROR/AndroidRuntime(869): at java.nio.channels.spi.AbstractSelectableChannel.register (AbstractSelectableChannel.java:133) 03-25 23:16:26.279: ERROR/AndroidRuntime(869): at java.nio.channels.SelectableChannel.register(SelectableChannel.java: 117) 03-25 23:16:26.279: ERROR/AndroidRuntime(869): at org.xbill.DNS.Client.(Client.java:23) 03-25 23:16:26.279: ERROR/AndroidRuntime(869): at org.xbill.DNS.UDPClient.(UDPClient.java:14) 03-25 23:16:26.279: ERROR/AndroidRuntime(869): at org.xbill.DNS.UDPClient.sendrecv(UDPClient.java:64) 03-25 23:16:26.279: ERROR/AndroidRuntime(869): at org.xbill.DNS.SimpleResolver.send(SimpleResolver.java:256) 03-25 23:16:26.279: ERROR/AndroidRuntime(869): at org.xbill.DNS.ExtendedResolver$Resolution.start(ExtendedResolver.java: 93) 03-25 23:16:26.279: ERROR/AndroidRuntime(869): at org.xbill.DNS.ExtendedResolver.send(ExtendedResolver.java:359) 03-25 23:16:26.279: ERROR/AndroidRuntime(869): at org.xbill.DNS.Lookup.lookup(Lookup.java:450) 03-25 23:16:26.279: ERROR/AndroidRuntime(869): at org.xbill.DNS.Lookup.resolve(Lookup.java:502) 03-25 23:16:26.279: ERROR/AndroidRuntime(869): at org.xbill.DNS.Lookup.run(Lookup.java:516) --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[android-developers] Re: java.nio.channels.IllegalSelectorException
I subitted a new issue http://code.google.com/p/android/issues/detail?id=1932 On Feb 7, 2:13 am, sdehne wrote: > Hi, > > I'm running into an IllegalSelectorException in my application which > can be reproduced with the following code (I put this test code right > after the super() in onCreate() of an Activity): > > try { > SocketChannel channel = SocketChannel.open(); > channel.configureBlocking(false); > Selector selector = Selector.open(); > channel.register(selector, 0); > catch (IOException e) { > Log.e(TAG, "error", e); > > } > > Does anyone have a suggestion how to avoice this exception? > > Thanks --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---