I am using Seam 2.0Beta1 + Acegi + Spring + Hibernate.
When I try to logout, and I used:
| Session.instance().invalidate()
| ;
| HttpSession session =
(HttpSession)FacesContext.getCurrentInstance().getExternalContext().getSession(false);
| session.removeAttribute("ACEGI_SECURITY_CONTEXT");
| session.removeAttribute("ACEGI_SECURITY_LAST_USERNAME");
|
Everything goes berserk, and my EntityManager is killed:
| 16:37:32,369 ERROR [ExceptionFilter] handling uncaught exception
| java.lang.IllegalStateException: EntityManager is closed
| at
org.hibernate.ejb.EntityManagerImpl.getSession(EntityManagerImpl.java:42)
| at
org.hibernate.ejb.AbstractEntityManagerImpl.createQuery(AbstractEntityManagerImpl.java:92)
| at
org.hibernate.search.jpa.impl.FullTextEntityManagerImpl.createQuery(FullTextEntityManagerImpl.java:130)
| at
org.jboss.seam.persistence.EntityManagerProxy.createQuery(EntityManagerProxy.java:79)
| at
com.bcsinfo.security.view.web.user.UserList.findUserByUsername(UserList.java:48)
| 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:589)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
| at org.jboss.se
|
Please Help.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090398#4090398
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090398
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user