Hi Benjamin, I have the similar problem with logging off AD users. I haven't solution yet, but I found workaround - I am not sure if it help you but you can try it. Problem with logging of starts when user switch to advance editing mode - in user home page. After switch to advance mode is created XWiki.TagClass in user object. When you edit this object and remove XWiki.TagClass logging off stopped. Try this and let me know if it helped. Frantisek Benjamin Leung-2 wrote:
Hi Thomas,
I do not get randomly logged off when I login in using xwiki's account like Admin/admin, it only happens when I logon using an LDAP (Active Directory) account. I'm not saying that it's the LDAP authenticator's problem, but it surely smell a lot like it.
Thank you for your attention,
Ben
On Mon, Apr 7, 2008 at 4:46 AM, Thomas Mortagne <[email protected]> wrote:
Hi,
This looks like OSCache problem. As I can see in the code you can have this error when OSCache failed to create a new cache and then all that try to acces this cache fail, here the XWiki group service. I'm not an OSCache expert so I have no idea of what could cause this.
Maybe someone has an idea...
On Fri, Apr 4, 2008 at 4:08 PM, Benjamin Leung <[email protected]> wrote:
Hi,
I'm getting randomly logged off when using the LDAP authenticator in v1.3.1. I'm wondering if anyone else is experiencing this.
At the end are the thread dumps I captured in two individual cases and a snippet of my LDAP configuration.
Thanks, Benjamin
xwiki.authentication.ldap.UID_attr=sAMAccountName
xwiki.authentication.ldap.fields_mapping=name=sAMAccountName,last_name=sn,first_name=givenName,fullname=displayName,mail=mail,ldap_dn=dn
xwiki.authentication.ldap.update_user=0 xwiki.authentication.ldap.group_mapping=XWiki.XWikiAdminGroup=CN=Wiki Admins (omitted the rest) xwiki.authentication.ldap.mode_group_sync=always
-----------------Thread Dump #1-----------------------
09:43:53,819 [ http://bl.local:8080/xwiki/xwiki/bin/view/Main/DocumentDoesNotExist] [http-8080-22] ERROR base.Cache - internal error: expected to get a state from key [xwiki:XWiki.bleung] 09:43:56,334 [ http://bl.local:8080/xwiki/xwiki/bin/view/Main/DocumentDoesNotExist] [http-8080-14] WARN LDAP.XWikiLDAPAuthServiceImpl - LDAP authentication failed. java.lang.IllegalStateException: Cannot cancel cache update - current state (1) is not UPDATE_IN_PROGRESS at
com.opensymphony.oscache.base.EntryUpdateState.cancelUpdate(EntryUpdateState.java:91)
at com.opensymphony.oscache.base.Cache.cancelUpdate(Cache.java:416) at
com.opensymphony.oscache.general.GeneralCacheAdministrator.cancelUpdate(GeneralCacheAdministrator.java:184)
at
com.xpn.xwiki.cache.impl.OSCacheCache.cancelUpdate(OSCacheCache.java:126)
at
com.xpn.xwiki.user.impl.xwiki.XWikiGroupServiceImpl.listGroupsForUser(XWikiGroupServiceImpl.java:163)
at
com.xpn.xwiki.user.impl.xwiki.XWikiGroupServiceImpl.getAllGroupsNamesForMember(XWikiGroupServiceImpl.java:683)
at
com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.syncGroupsMembership(XWikiLDAPAuthServiceImpl.java:484)
at
com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.syncGroupsMembership(XWikiLDAPAuthServiceImpl.java:450)
at
com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.ldapAuthenticate(XWikiLDAPAuthServiceImpl.java:310)
at
com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.authenticate(XWikiLDAPAuthServiceImpl.java:107)
at
com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.authenticate(MyFormAuthenticator.java:194)
at
com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.processLogin(MyFormAuthenticator.java:95)
at
com.xpn.xwiki.user.impl.xwiki.XWikiAuthServiceImpl.checkAuth(XWikiAuthServiceImpl.java:214)
at com.xpn.xwiki.XWiki.checkAuth(XWiki.java:3297) at
com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImpl.checkAccess(XWikiRightServiceImpl.java:166)
at com.xpn.xwiki.XWiki.checkAccess(XWiki.java:3305) at com.xpn.xwiki.XWiki.prepareDocuments(XWiki.java:4249) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:173) at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654)
at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:447)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:292)
at
org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:424)
at
org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:343)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:144)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Unknown Source) 09:43:56,443 [ http://bl.local:8080/xwiki/xwiki/bin/view/Main/DocumentDoesNotExist] [http-8080-14] ERROR base.Cache - internal error: expected to get a state from key [xwiki:XWiki.XWikiGuest]
------------------Thread Dump #2------------------------
09:51:50,003 [ http://bl.local:8080/xwiki/xwiki/bin/view/Main/DocumentDoesNotExist] [http-8080-8] WARN LDAP.XWikiLDAPAuthServiceImpl - LDAP authentication failed. java.lang.NullPointerException at
com.xpn.xwiki.user.impl.xwiki.XWikiGroupServiceImpl.listGroupsForUser(XWikiGroupServiceImpl.java:182)
at
com.xpn.xwiki.user.impl.xwiki.XWikiGroupServiceImpl.getAllGroupsNamesForMember(XWikiGroupServiceImpl.java:683)
at
com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.syncGroupsMembership(XWikiLDAPAuthServiceImpl.java:484)
at
com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.syncGroupsMembership(XWikiLDAPAuthServiceImpl.java:450)
at
com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.ldapAuthenticate(XWikiLDAPAuthServiceImpl.java:310)
at
com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.authenticate(XWikiLDAPAuthServiceImpl.java:107)
at
com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.authenticate(MyFormAuthenticator.java:194)
at
com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.processLogin(MyFormAuthenticator.java:95)
at
com.xpn.xwiki.user.impl.xwiki.XWikiAuthServiceImpl.checkAuth(XWikiAuthServiceImpl.java:214)
at com.xpn.xwiki.XWiki.checkAuth(XWiki.java:3297) at
com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImpl.checkAccess(XWikiRightServiceImpl.java:166)
at com.xpn.xwiki.XWiki.checkAccess(XWiki.java:3305) at com.xpn.xwiki.XWiki.prepareDocuments(XWiki.java:4249) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:173) at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654)
at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:447)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:292)
at
org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:424)
at
org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:343)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:144)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Unknown Source) _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- View this message in context: http://www.nabble.com/Random-logoff-when-using-LDAP-authenticator-tp16497492... Sent from the XWiki- Users mailing list archive at Nabble.com.