2 Replies Latest reply on Jul 31, 2007 4:26 AM by Gaurav Shah

    VERY URGENT:Cant Invoke the Remote Method by REFLECTIOn

    Gaurav Shah Newbie

      Please Help me in this issue...ITS VERY URGENT.

      I m migrating application from IBM WEBSPHERE to JBOSS 4.0.5.
      I was using PROVIDER_URL as corbaloc:iiop:loaclhost:2809
      Nw for jboss I m using jnp://localhost:1099

      with this i m able to get EJB's HomeObject and RemoteObject(after setting true in call-by-value attribute of ear-deployer.xml file in deault/deploy folder)
      But i cant invoke the remote methods by REFLECTION like
      Object objDp = methodDoProcess.invoke(objRemote,new Object[]{dp1});
      getting error as java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2007-07-29 19:44:56,338 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      2007-07-29 19:44:56,338 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      2007-07-29 19:44:56,338 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:324)
      Caused by: java.io.NotSerializableException: org.apache.log4j.Logger

      Pls help in this...its very urgent.