0 Replies Latest reply on Aug 14, 2002 9:46 PM by Jonathan Levinson

    EJB entity bean methods work from session bean but not from

    Jonathan Levinson Newbie

      EJB entity bean methods work from session bean but not from local client.

      I am using JBoss 3.0. This problem is new to JBoss 3.0. My code worked with 2.4.3.

      The problem is that while I can invoke a session bean method and have it invoke entity bean methods successfully with no problem, when I call these entity bean methods from my stand-alone JDBC client (the same one that successfully calls session-bean methods) I get the following error:

      Remote Exception:RemoteException occurred in server thread; nested exception is:
      java.rmi.ServerException: removing bean lock and it has tx set!; nested exception is:
      java.lang.IllegalStateException: removing bean lock and it has tx set!
      java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
      java.rmi.ServerException: removing bean lock and it has tx set!; nested exception is:
      java.lang.IllegalStateException: removing bean lock and it has tx set!
      java.rmi.ServerException: removing bean lock and it has tx set!; nested exception is:
      java.lang.IllegalStateException: removing bean lock and it has tx set!
      java.lang.IllegalStateException: removing bean lock and it has tx set!
      at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:240)
      at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:215)
      at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:117)
      at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)
      at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:128)
      at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:108)
      at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:73)
      at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:76)
      at org.jboss.proxy.ejb.EntityInterceptor.invoke(EntityInterceptor.java:116)
      at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
      at $Proxy4.getRegressChild(Unknown Source)
      at Samp.SessTest.RunTest(SessTest.java:77)
      at Samp.TestSessReg_Bean.main(TestSessReg_Bean.java:115)

      Why is entity bean methods callable from within session bean but same methods have problem when called from Java client that invoked session bean?