1 Reply Latest reply on Jul 3, 2008 7:02 AM by Jaikiran Pai

    IllegalArgument Exception while method invocation

    Ashish Garg Newbie


      I am using Jboss 4.2 app server and EJB3.0. A following remote method is exposed from the ejb.

      void mymethod(Myclass obj)

      when I invoke the mymethod() by passing null as the parameter the call goes to the EJB but when i pass a object of Myclass in it, it throws me a IllegalArgumentException. The same code works on Glassfish v2.

      By using reflection on the EJB object proxy I obtained the hashcode of Myclass and the Myclass that I have deployed on the web tier. both the hashcodes were different

      Let me know if I am wrong anywhere.