Hi,

I am getting this error when ejbPostCreate is called and is trying to setParent.

I have a Bean RuleSet which has a self relationship. I am getting this error when i 
create the subset which belongs to a RuleSet.

I will be attaching my full bean code and the xml generated by xdoclet.

Any help is appreciated:.

TIA

Vasu

   /**
    * @ejbgen:cmr-field
    * @ejbgen:local-method
    *
    * @ejb.interface-method
    *    view-type="local"
    *
    * @ejb.value-object
    *   compose="com.stalworth.dqrules.vobj.RuleSetValue"
    *   compose-name="SubSet"
    *   members="com.stalworth.dqrules.cmp.RuleSetLocal"
    *   members-name="RuleSet"
    *   relation="external"
    *   type="java.util.Set"
    *
    * @ejb.relation
    *   name="RuleSet-RuleSet"
    *   role-name="RuleSetHasSubsets"
    *   target-ejb="RuleSet"
        *   target-role-name = "SubsetIsAPartOfRuleSet"
        *
        * @jboss.target-relation
        *      fk-column = "PARENT_ID"
    *      related-pk-field = "id"
    *      sql-type="VARCHAR2"
    *      jdbc-type="VARCHAR"
    *
    */
    abstract public Set getSubSets();
   /**
    * @ejbgen:local-method
    *
    * @ejb.interface-method
    *    view-type="local"
    */
    abstract public void setSubSets(Set val);

   /**
    * @ejbgen:cmr-field
    * @ejbgen:local-method
    *
    *
    * @ejb.interface-method
    *    view-type="local"
    *
    * @ejb.value-object
    *   compose="com.stalworth.dqrules.vobj.RuleSetValue"
    *   compose-name="Parent"
    *   members="com.stalworth.dqrules.cmp.RuleSetLocal"
    *   members-name="RuleSet"
    *   relation="external"
    *
    *
    * @ejb.relation
    *   name="RuleSet-RuleSet"
    *   role-name="SubsetIsAPartOfRuleSet"
    *   cascade-delete="yes"
    *
    *
    * @jboss.relation
        *   related-pk-field="id"
    *   fk-column="PARENT_ID"
    *   sql-type="VARCHAR2"
    *   jdbc-type="VARCHAR"
    *
    */
    abstract public RuleSetLocal getParent();
   /**
    * @ejbgen:local-method
    *
    * @ejb.interface-method
    *    view-type="local"
    *
    */
    abstract public void setParent(RuleSetLocal val);


The stacktrace is follows:

avax.ejb.EJBException: Method is not a known CMP field accessor, CMR field accessor, 
or ejbSelect method: methodName=setParent
        at 
org.jboss.ejb.plugins.cmp.bridge.EntityBridgeInvocationHandler.invoke(EntityBridgeInvocationHandler.java:106)
        at org.jboss.proxy.compiler.Runtime.invoke(Runtime.java:59)
        at com.stalworth.dqrules.cmp.RuleSetCMP$Proxy.setParent()
        at com.stalworth.dqrules.cmp.RuleSetEJB.ejbPostCreate(RuleSetEJB.java:1122)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at 
org.jboss.ejb.plugins.CMPPersistenceManager.postCreateEntity(CMPPersistenceManager.java:240)
        at 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.postCreateEntity(CachedConnectionInterceptor.java:277)
        at org.jboss.ejb.EntityContainer.postCreateLocalHome(EntityContainer.java:595)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at 
org.jboss.ejb.EntityContainer$ContainerInterceptor.invoke(EntityContainer.java:1084)
        at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCRelationInterceptor.invoke(JDBCRelationInterceptor.java:72)
        at 
org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntitySynchronizationInterceptor.java:282)
        at 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185)
        at 
org.jboss.ejb.plugins.EntityReentranceInterceptor.invoke(EntityReentranceInterceptor.java:114)
        at 
org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterceptor.java:163)
        at 
org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:89)
        at 
org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreationInterceptor.java:44)
        at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:88)
        at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:297)
        at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:98)
        at 
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:92)
        at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:120)
        at 
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93)
        at org.jboss.ejb.EntityContainer.internalInvokeHome(EntityContainer.java:483)
        at org.jboss.ejb.Container.invoke(Container.java:720)
        at 
org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invokeHome(BaseLocalProxyFactory.java:293)
        at org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:110)
        at $Proxy32.create(Unknown Source)
        at 
com.stalworth.dqrules.session.RuleSetSessionEJB.saveRuleSet(RuleSetSessionEJB.java:120)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at 
org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:683)
        at 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185)
        at 
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:72)
        at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
        at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:267)
        at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:128)
        at 
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:118)
        at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
        at 
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
        at 
org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:331)
        at org.jboss.ejb.Container.invoke(Container.java:700)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
        at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:367)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
        at sun.rmi.transport.Transport$1.run(Transport.java:148)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
        at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
        at 
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
        at java.lang.Thread.run(Thread.java:536)

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3838581#3838581

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3838581


-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the
one installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to