Thank you for your response. I got that problem because I was playing around
with env object and I removed all those statements and I am no longer getting
this problem, however I stepped into another issue. Here is the info....from
server.log. As you see the find, activate, load all worked fine, when I am
calling the get method I get this problem, the code looks like below....in the
servlet...
-----------servlet class--------------------------
login beanRemote;
beanRemote = (login) home.findByUserName("admin");
loginPK pk = (loginPK) beanRemote.getPrimaryKey();
login newLogin = null;
newLogin = home.findByPrimaryKey(pk);
out.println("<p align=\"center\"> Message from Security Entity Bean
is: " + "Hello " + newLogin.getUserName() + "");
---------------server.log-----------------------
[EMAIL PROTECTED], [EMAIL PROTECTED] url=null ,addedOrder=0}
2004-12-22 16:17:19,022 INFO [STDOUT] ejbFindByPrimaryKey(1) called.
2004-12-22 16:17:19,082 INFO [STDOUT] ejbActivate() called.
2004-12-22 16:17:19,092 INFO [STDOUT] ejbLoad() called.
2004-12-22 16:17:19,092 INFO [STDOUT] user information from query: admin
2004-12-22 16:17:19,092 INFO [STDOUT] password information from query: admin
2004-12-22 16:17:19,102 INFO [STDOUT] getuserName() called.
2004-12-22 16:17:19,102 ERROR [org.jboss.ejb.BeanLock] removing bean lock and
it has tx set! [EMAIL PROTECTED], bean=admin/login, id=1, refs=0,
tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=MERCY/3, BranchQual=,
localId=3], synched=null, timeout=5000, queue=[]
2004-12-22 16:17:19,102 ERROR [org.jboss.ejb.plugins.LogInterceptor]
RuntimeException in method: public abstract java.lang.String
admin.access.login.getUserName() throws java.rmi.RemoteException:
java.lang.IllegalStateException: removing bean lock and it has tx set!
at
org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.removeRef(QueuedPessimisticEJBLock.java:461)
at org.jboss.ejb.BeanLockManager.removeLockRef(BeanLockManager.java:116)
at
org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:106)
at
org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterceptor.java:53)
at
org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:105)
at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:316)
at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:149)
at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:128)
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:514)
at org.jboss.ejb.Container.invoke(Container.java:854)
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.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at
org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:155)
at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:104)
at
org.jboss.invocation.MarshallingInvokerInterceptor.invoke(MarshallingInvokerInterceptor.java:55)
at
org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
at
org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55)
at
org.jboss.proxy.ejb.EntityInterceptor.invoke(EntityInterceptor.java:97)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:86)
at $Proxy50.getUserName(Unknown Source)
"redBeard15" wrote : You're going to have to supply a bit more information. It
looks like something is happening at 'loginBean.java:266'
(loginBean.setEntityContext(). What's happening there?
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3859661#3859661
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3859661
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user