hi ...
i'm developed the entity bean and i'm calling it from stateless session bean ...
but this is the strange exception i'm getting ...the stack trace is :-
| 2004-04-23 19:19:24,883 ERROR [org.jboss.ejb.plugins.LogInterceptor]
TransactionRolledbackLocalException in method: public abstract java.lang.String
com.le.nms.persistence.security.GroupsLocal.getGroupName(), causedBy:
| javax.ejb.EJBException: Method is not a known CMP field accessor, CMR field
accessor, or ejbSelect method: methodName=ejbLoad
| at
org.jboss.ejb.plugins.cmp.bridge.EntityBridgeInvocationHandler.invoke(EntityBridgeInvocationHandler.java:106)
| at org.jboss.proxy.compiler.Runtime.invoke(Runtime.java:59)
| at com.le.nms.persistence.security.GroupsBean$Proxy.ejbLoad(<generated>)
| at
org.jboss.ejb.plugins.CMPPersistenceManager.invokeLoad(CMPPersistenceManager.java:501)
| at
org.jboss.ejb.plugins.CMPPersistenceManager.loadEntity(CMPPersistenceManager.java:384)
| at
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.loadEntity(CachedConnectionInterceptor.java:352)
| at
org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntitySynchronizationInterceptor.java:229)
| at
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185)
| at
org.jboss.ejb.plugins.EntityReentranceInterceptor.invoke(EntityReentranceInterceptor.java:71)
| at
org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterceptor.java:174)
| at
org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:89)
| at
org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterceptor.java:53)
| 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.EntityContainer.internalInvoke(EntityContainer.java:490)
| at org.jboss.ejb.Container.invoke(Container.java:700)
| at
org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:375)
| at org.jboss.ejb.plugins.local.EntityProxy.invoke(EntityProxy.java:38)
| at $Proxy153.getGroupName(Unknown Source)
| at
com.le.nms.domain.security.SessionDataBean.getAuthentication(SessionDataBean.java:418)
| 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
org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:375)
| at
org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:83)
| at $Proxy160.getAuthentication(Unknown Source)
| at
com.le.nms.service.security.LoginFacadeBean.getAuthentication(LoginFacadeBean.java:128)
| 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:362)
| 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:534)
|
the code of stateless session bean is :-
| try{
| initial = new InitialContext ();
| logger.debug("before lookup");
| groupsHome = (GroupsLocalHome) initial.lookup
("java:/comp/env/ejb/GroupEJB");
| logger.debug("After lookup");
| logger.debug("group id = " +userLocal.getGroupID());
| GroupsLocal gLocal =
groupsHome.findByPrimaryKey(userLocal.getGroupID());
| logger.debug("After find " );
| logger.debug("the class name = " + gLocal);
|
| String str = gLocal.getGroupName();
|
here in this code when i try execute last line (glocal.getGroupName())
then the exception occurs ... even i ahd checked my deployment descriptor also
...everything is alright and the bean which i'm calling is also having the proper
getter and setter meathod in its EJB and Local classes ...
but then also i'm not able to find that why it is throwing this error ....
why it is not getting the CMP feilds ....
deployment descriptors are :-
|
| ejb-jar
| <ejb-name>GroupEJB</ejb-name>
|
<local-home>com.le.nms.persistence.security.GroupsLocalHome</local-home>
| <local>com.le.nms.persistence.security.GroupsLocal</local>
|
<ejb-class>com.le.nms.persistence.security.GroupsBean</ejb-class>
| <persistence-type>Container</persistence-type>
| <prim-key-class>java.lang.Integer</prim-key-class>
| <reentrant>True</reentrant>
| <cmp-version>2.x</cmp-version>
| <abstract-schema-name>Groups</abstract-schema-name>
| <cmp-field>
| <field-name>groupID</field-name>
| </cmp-field>
| <cmp-field>
| <field-name>groupName</field-name>
| </cmp-field>
|
| jbosscmp-jdbc----------
|
| <ejb-name>GroupEJB</ejb-name>
| <table-name>groups</table-name>
| <cmp-field>
| <field-name>groupID</field-name>
| <column-name>GroupID</column-name>
| <auto-increment/>
| </cmp-field>
| <entity-command name="mysql-get-generated-keys"/>
| <cmp-field>
| <field-name>groupName</field-name>
| <column-name>GroupName</column-name>
| </cmp-field>
|
|
pls tell me where i'm going wrong ....and why it is throwing Transaction Rollback
exception .....
In my code only here the problem is comming and rest all is working fine ... do u have
any IDEA..
Regards
Raj.....
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3832113#3832113
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3832113
-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user