0 Replies Latest reply on Mar 7, 2006 8:48 AM by Joost Kraaijeveld

    Why do I get this IllegalStateException from MarshalledInvoc

    Joost Kraaijeveld Newbie

      Hi,

      I am trying to run a Swing/JBoss based J2EE application. If I call a specific SessionBean's method with a XDoclet generated ValueObject as it's only argument, I get a client side IllegalStateException, with "getArguments failed" as the message. The same bean but other methods and other ValueObjects work OK. I looked at the ValueObject but I cannot find anything wrong. I have tried JBoss 4.0.3SP1 and 4.0.4RC1, with and without call by value, on Windows and Linux but nothing worked (all developed with Eclipse and JBoss IDE).

      I have looked into the source (org.jboss.invocation.MarshalledInvocation) but I cannot see why it happens. What are the (possible/most obvious ?) reasons that a IllegalStateException with the message "getArguments failed" is thrown?

      java.lang.IllegalStateException: getArguments failed
      org.jboss.invocation.MarshalledInvocation.getArguments(MarshalledInvocation.java:496)
      org.jboss.ejb.Container.invoke(Container.java:881)
      sun.reflect.GeneratedMethodAccessor87.invoke(Unknown Source)
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      java.lang.reflect.Method.invoke(Method.java:585)
      org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
      org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:819)
      org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:420)
      sun.reflect.GeneratedMethodAccessor89.invoke(Unknown Source)
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      java.lang.reflect.Method.invoke(Method.java:585)
      sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
      sun.rmi.transport.Transport$1.run(Transport.java:153)
      java.security.AccessController.doPrivileged(Native Method)
      sun.rmi.transport.Transport.serviceCall(Transport.java:149)
      sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
      sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
      java.lang.Thread.run(Thread.java:595)
      sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
      sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
      sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
      org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)
      org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:133)
      org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:348)
      org.jboss.invocation.MarshallingInvokerInterceptor.invoke(MarshallingInvokerInterceptor.java:63)
      org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
      org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
      org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:112)
      org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
      $Proxy1.setCustomer(Unknown Source)
      nl.muntpost.client.customermanagement.CustomerDetailsGeneralPanel.storeModelObject(CustomerDetailsGeneralPanel.java:516)
      nl.muntpost.client.customermanagement.CustomerDetailsTabbedPanePanel.handleSaveCustomer(CustomerDetailsTabbedPanePanel.java:927)
      nl.muntpost.client.customermanagement.CustomerDetailsTabbedPanePanel$29.actionPerformed(CustomerDetailsTabbedPanePanel.java:383)

      TIA

      Joost