I'm trying to create an XMBean from a EJB3 session bean. I've got my sar deploying with my ear and can see the method I wish to expose in the jmx console in JBoss (AS 4.0.4 CR2) but when I invoke the method, I get a handleInvocationExceptions exception with the root cause being a null pointer exception. Can this work? Maybe the session is not being instantiated properly? I'm not sure how to debug this, so any help is appreciated.