1 Reply Latest reply on Nov 19, 2002 12:36 PM by Laurent Broudoux

    Problems with extended classes and Entity Beans

    Robson Newbie

      Hi...
      I'm using xdoclet to generate the bean classes for me (CMP), but when I try to access the generated bulk acessor (getData()), I'm getting
      javax.ejb.EJBException: Method is not a known CMP field accessor, CMR field accessor, or ejbSelect method: methodName=getData
      at org.jboss.ejb.plugins.cmp.bridge.EntityBridgeInvocationHandler.invoke(Ljava.lang.Object;Ljava.lang.reflect.Method;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
      at org.jboss.proxy.compiler.Runtime.invoke(Lorg.jboss.proxy.compiler.InvocationHandler;I[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
      at mpdft.sisproweb.ejb.OrgaoCMP$Proxy.getData()Lmpdft.sisproweb.data.OrgaoData;(Unknown Source)
      at COM.jrockit.reflect.NativeMethodInvoker.invoke0(ILjava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
      at COM.jrockit.reflect.NativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)

      I'm using jrockit vm, Redhat 7.3, JBoss 3.0.2.
      My getData() is declared in my bean code as

      /**
      * Bulk data acessor
      *
      * @ejb.interface-method
      */
      public abstract OrgaoData getData();

      There is some hint to this problem?

      Thanks,
      Robson

        • 1. Re: Problems with extended classes and Entity Beans
          Laurent Broudoux Newbie

          Hello,
          I've got the same problem ... I use Xdoclet 1.1.2 to generate the bean classes
          but when JBoss try to load the entity, I'm getting the following exception :

          javax.ejb.EJBException: Method is not a known CMP field accessor, CMR field accessor, or ejbSelect method: methodName=setEntityContext
          at org.jboss.ejb.plugins.cmp.bridge.EntityBridgeInvocationHandler.invoke(Ljava.lang.Object;Ljava.lang.reflect.Method;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
          at org.jboss.proxy.compiler.Runtime.invoke(Lorg.jboss.proxy.compiler.InvocationHandler;I[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
          at mma.it.repos.ejb.DocumentTypeCMP$Proxy.setEntityContext(Ljavax.ejb.EntityContext;)V(Unknown Source)
          ...

          I'm using JRockit 7.0-1.4.0 vm on Win2k and JBoss-3.0.4.
          I'm not using EntityContext in my beans so the method is
          the one generated by Xdoclet in the CMP class :
          public void setEntityContext(javax.ejb.EntityContext ctx)
          {
          }

          Has someone an idea on how to solve this problem ?
          Thanks a lot ...

          --
          Laurent