1 Reply Latest reply on Mar 20, 2009 7:36 PM by jochen.reinhardt

    java.lang.IllegalStateException: Failed to find method for h

    sinergy

      I have a simple java client that is accessing a jboss oracle connection pool that I have setup. I'm running into an exception using java.sql.Blob.

      I'm testing the client within Eclipse and have jbossall-client.jar (from jboss-4.3.2GA/client) in the classpath.


      After grabbing a blob from the database I use the following code:
      is = blob.getBinaryStream();

      blob.getLenght() throws the same exception.

      I'd appreciate some help as I've been battling this for a few hours now and can't figure out the problem...

      ------------------------------------
      java.lang.IllegalStateException: Failed to find method for hash:-4232490789266248516 (goes on for a while)at org.jboss.invocation.MarshalledInvocation.getMethod(MarshalledInvocation.java:407)
      at org.jboss.resource.adapter.jdbc.remote.WrapperDataSourceService.invoke(WrapperDataSourceService.java:190)
      at sun.reflect.GeneratedMethodAccessor85.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:818)
      at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:419)
      at sun.reflect.GeneratedMethodAccessor77.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
      at sun.rmi.transport.Transport$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.rmi.transport.Transport.serviceCall(Unknown Source)
      at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
      at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source)
      at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
      at sun.rmi.server.UnicastRef.invoke(Unknown Source)
      at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)
      at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:133)
      at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:365)
      at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:197)
      at org.jboss.proxy.ClientMethodInterceptor.invoke(ClientMethodInterceptor.java:74)
      at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
      at $Proxy4.getBinaryStream(Unknown Source)
      at com.cgi.cdist.main.Distribute.SFTPSender(Distribute.java:115)
      at com.cgi.cdist.main.Distribute.main(Distribute.java:180)




        • 1. Re: java.lang.IllegalStateException: Failed to find method f

          I don't know very much about your concrete setup.
          Are you using a remote client, using the remote interface via RMI to call some method?

          We experience similar problems, when the client is not exactly the same version as the server. This may mean, the client uses out-dated interfaces to call methods on. These can not be found at the server, as the method hash is different. Our experience with the problem shows, that this may even happen if the method did not change.

          Hope this is of help to you.