2 Replies Latest reply on Sep 18, 2001 1:25 PM by Ignacio

    Re: Stuck on entity bean error for 3 days now. Help please!

    Ricardo Coutinho Newbie

      No luck I am afraid. I get the exact same exception as before.

      Judging by your changes, I assume that there were no obvious errors in my code.

      Any ideas?

        • 1. Re: Stuck on entity bean error for 3 days now. Help please!
          Ricardo Coutinho Newbie

          Hi all,

          I am not sure what happened there with my previous post. I was replying to a different thread on a different forum. But below is what I wanted to post to this forum.

          I have had this problem for 3 days now and I have found no solution/reason for the error I am getting.

          I have a BMP entity bean talking to a mySQL database. The entity connects and fetches the data perfectly (I printed to screen the values from the db). The point where I get the error is when the session bean tries to access one of the user-defined methods (ie getPrimKey(),getDescription() etc...). This is the stack trace of the error:


          [Default] java.rmi.NoSuchObjectException: null Embedded Exception null
          [Default] at org.jboss.ejb.plugins.AbstractInstanceCache.get(AbstractInstanceCache.java:211)
          [Default] at org.jboss.ejb.plugins.EntityInstanceCache.get(EntityInstanceCache.java:60)
          [Default] at org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterceptor.java:192)
          [Default] at org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:136)
          [Default] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:133)
          [Default] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:586)
          [Default] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)
          [Default] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:128)
          [Default] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
          [Default] at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:427)
          [Default] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.java:483)
          [Default] at org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.invokeContainer(GenericProxy.java:335)
          [Default] at org.jboss.ejb.plugins.jrmp.interfaces.EntityProxy.invoke(EntityProxy.java:133)
          [Default] at $Proxy22.getPrimKey(Unknown Source)
          [Default] at com.odafs.mailDistribution.server.ejb.session.SessionTestBean.runThis(SessionTestBean.java:110)
          [Default] at java.lang.reflect.Method.invoke(Native Method)
          [Default] at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:543)
          [Default] at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:87)
          [Default] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:133)
          [Default] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:586)
          [Default] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)
          [Default] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:128)
          [Default] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
          [Default] at org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:286)
          [Default] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.java:393)
          [Default] at java.lang.reflect.Method.invoke(Native Method)
          [Default] at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
          [Default] at sun.rmi.transport.Transport$1.run(Unknown Source)
          [Default] at java.security.AccessController.doPrivileged(Native Method)
          [Default] at sun.rmi.transport.Transport.serviceCall(Unknown Source)
          [Default] at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
          [Default] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
          [Default] at java.lang.Thread.run(Unknown Source)


          I then tried with a new bean using CMP and I got the same error. I also tried the same on MSSQL (thinking it was a mySQL problem) and I got the same error.

          I can't continue until I correct this error so any is greatly appreciated.

          Thanks in advance.

          Ricardo

          • 2. Re: Stuck on entity bean error for 3 days now. Help please!
            Ignacio Newbie

            Ricardo, looks as a problem with a Class name or Method name. Review the method names declared in the interface and the bean class, and compare them with those referenced in ejb-jar.xml.

            Review also the log/server.log file, it gives more info than the console. If not enough, post the code of the class and method that you're calling and the ejb-jar and jaws (if applicable :) entry. Include also the interface method names. Try to be concrete, specially if yours is a BMP.