0 Replies Latest reply on Jan 13, 2004 9:24 AM by Vijay Kandy

    java.lang.IllegalArgumentException: wrong number of argument

    Vijay Kandy Newbie

      Hello All,

      I am trying to pass a simple Java bean (AuthenticateUserCommand) to a stateless EJB's method. And I get this stack trace. Can someone help me understand this? I am trying for a week now and still cant solve this.

      Thanks,
      Vijay

      java.lang.ClassNotFoundException: com.mailcode.pbo.um.model.commands.AuthenticateUserCommand
       at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
       at java.security.AccessController.doPrivileged(Native Method)
       at java.net.URLClassLoader.findClass(URLClassLoader.java:183)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
       at org.jboss.invocation.MarshalledValueInputStream.resolveClass(MarshalledValueInputStream.java:85)
       at java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.java:913)
       at java.io.ObjectInputStream.readObject(ObjectInputStream.java:361)
       at java.io.ObjectInputStream.readObject(ObjectInputStream.java:231)
       at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1181)
       at java.io.ObjectInputStream.readObject(ObjectInputStream.java:381)
       at java.io.ObjectInputStream.inputArray(ObjectInputStream.java:1137)
       at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
       at java.io.ObjectInputStream.readObject(ObjectInputStream.java:231)
       at org.jboss.invocation.MarshalledValue.get(MarshalledValue.java:78)
       at org.jboss.invocation.MarshalledInvocation.getArguments(MarshalledInvocation.java:324)
       at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:629)
       at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
       at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:72)
       at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
       at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:243)
       at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:104)
       at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:117)
       at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
       at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
       at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:322)
       at org.jboss.ejb.Container.invoke(Container.java:674)
       at java.lang.reflect.Method.invoke(Native Method)
       at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
       at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:359)
       at java.lang.reflect.Method.invoke(Native Method)
       at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:236)
       at sun.rmi.transport.Transport$1.run(Transport.java:147)
       at java.security.AccessController.doPrivileged(Native Method)
       at sun.rmi.transport.Transport.serviceCall(Transport.java:143)
       at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
       at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
       at java.lang.Thread.run(Thread.java:479)
       RuntimeException:
      java.lang.IllegalArgumentException: wrong number of arguments
       at java.lang.reflect.Method.invoke(Native Method)
       at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:629)
       at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
       at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:72)
       at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
       at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:243)
       at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:104)
       at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:117)
       at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
       at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
       at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:322)
       at org.jboss.ejb.Container.invoke(Container.java:674)
       at java.lang.reflect.Method.invoke(Native Method)
       at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
       at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:359)
       at java.lang.reflect.Method.invoke(Native Method)
       at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:236)
       at sun.rmi.transport.Transport$1.run(Transport.java:147)
       at java.security.AccessController.doPrivileged(Native Method)
       at sun.rmi.transport.Transport.serviceCall(Transport.java:143)
       at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
       at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
       at java.lang.Thread.run(Thread.java:479)
      

      (I removed the dates in the log)