restlet/restlet-framework-java — Issue #15: Is it compatible with the Android 2.1?
Author: netuh
Created: 2012-03-05 11:22:14+00:00
State: open

Hi,

I had found the same error as:
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&viewType=browseAll&dsMessageId=2891050#messagefocus

My code is really simple:
ClientResource itemsResource = new ClientResource("http://host:8090/App");
Representation r = itemsResource.get();
System.out.println(r);

I'm sure that the application is on. I tested it on the browser.

The Exception Stack is:

org.restlet(3496): Unexpected error while controlling connector
org.restlet(3496): java.nio.channels.IllegalSelectorException
java.nio.channels.spi.AbstractSelectableChannel.register(AbstractSelectableChannel.java:158)
org.restlet.util.SelectionRegistration.register(SelectionRegistration.java:308)
org.restlet.engine.connector.ConnectionController.registerKeys(ConnectionController.java:246)
org.restlet.engine.connector.ConnectionController.doRun(ConnectionController.java:151)
org.restlet.engine.connector.Controller.run(Controller.java:158)
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
java.util.concurrent.FutureTask.run(FutureTask.java:137)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1068)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561)
org.restlet(3496):	at java.lang.Thread.run(Thread.java:1096)