I copied the code from a book, and the problem is with: ctx.getParameters()[0] When the invoked func has no param, the code fails. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4166810#4166810 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4166810