Hmm.. BTW, I just noticed that (even though I'm building this code with 2.0.0.GA) that this was deployed in JBoss 4.0.5.GA which appears to ship with Remoting 1.4. I suspect this is an issue that is probably already fixed in 2.0.0.GA. But if anyone wants to confirm that, let me know :)
I think the line in question is:
String domain = detection.getIdentity().getDomain();
which would still be a problem in 2.x codebase. I'll open a jira issue for it.