LDAP Authentication exception

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

LDAP Authentication exception

Shiva Shankar
Hi
On XE 1.4/Linux/Tomcat, i get the following exception when i try to post to a blog. Authentication works alright but sometimes, it seems as though it works in the second attempt. I know this is very strange.
Any pointers?
Using IE7 on Windows.
Thanks
Shiva

10:41:46,996 [http://172.21.16.147/xwiki/bin/view/Main/DocumentDoesNotExist] [http-80-1] WARN  LDAP.XWikiLDAPAuthServiceImpl   - LDAP authentication failed.
com.xpn.xwiki.XWikiException: Error number 3201 in 3: Exception while saving document XWiki.shiva_shankar
Wrapped Exception: Error number 3212 in 3: Exception while saving property tags of object XWiki.shiva_shankar
Wrapped Exception: Illegal attempt to associate a collection with two open sessions
        at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:573)
        at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:97)
        at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:91)
        at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1130)
        at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1098)
        at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1092)
        at com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.updateUserFromLDAP(XWikiLDAPAuthServiceImpl.java:725)
        at com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.syncUser(XWikiLDAPAuthServiceImpl.java:417)
        at com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.ldapAuthenticate(XWikiLDAPAuthServiceImpl.java:297)
        at com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.authenticate(XWikiLDAPAuthServiceImpl.java:107)
        at com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.authenticate(MyFormAuthenticator.java:195)
        at com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.processLogin(MyFormAuthenticator.java:96)
        at com.xpn.xwiki.user.impl.xwiki.XWikiAuthServiceImpl.checkAuth(XWikiAuthServiceImpl.java:213)
        at com.xpn.xwiki.XWiki.checkAuth(XWiki.java:3411)
        at com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImpl.checkAccess(XWikiRightServiceImpl.java:167)
        at com.xpn.xwiki.XWiki.checkAccess(XWiki.java:3419)
        at com.xpn.xwiki.XWiki.prepareDocuments(XWiki.java:4381)
        at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:179)
        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(Thread.java:595)
Reply | Threaded
Open this post in threaded view
|

Re: LDAP Authentication exception

Shiva Shankar
Additional wrapped exception error message:
org.hibernate.HibernateException: Illegal attempt to associate a collection with two open sessions
        at org.hibernate.collection.AbstractPersistentCollection.setCurrentSession(AbstractPersistentCollection.java:410)
        at org.hibernate.event.def.OnUpdateVisitor.processCollection(OnUpdateVisitor.java:43)
        at org.hibernate.event.def.AbstractVisitor.processValue(AbstractVisitor.java:101)
        at org.hibernate.event.def.AbstractVisitor.processValue(AbstractVisitor.java:61)
        at org.hibernate.event.def.AbstractVisitor.processEntityPropertyValues(AbstractVisitor.java:55)
        at org.hibernate.event.def.AbstractVisitor.process(AbstractVisitor.java:123)
        at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performUpdate(DefaultSaveOrUpdateEventListener.java:293)
        at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsDetached(DefaultSaveOrUpdateEventListener.java:223)
        at org.hibernate.event.def.DefaultUpdateEventListener.performSaveOrUpdate(DefaultUpdateEventListener.java:33)
        at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
        at org.hibernate.impl.SessionImpl.fireUpdate(SessionImpl.java:564)
        at org.hibernate.impl.SessionImpl.update(SessionImpl.java:552)
        at org.hibernate.impl.SessionImpl.update(SessionImpl.java:544)
        at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiProperty(XWikiHibernateStore.java:1277)
        at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiCollection(XWikiHibernateStore.java:926)
        at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:552)
        at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:97)
        at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:91)
        at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1130)
        at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1098)
        at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1092)
        at com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.updateUserFromLDAP(XWikiLDAPAuthServiceImpl.java:725)
        at com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.syncUser(XWikiLDAPAuthServiceImpl.java:417)
        at com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.ldapAuthenticate(XWikiLDAPAuthServiceImpl.java:297)
        at com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.authenticate(XWikiLDAPAuthServiceImpl.java:107)
        at com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.authenticate(MyFormAuthenticator.java:195)
        at com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.processLogin(MyFormAuthenticator.java:96)
        at com.xpn.xwiki.user.impl.xwiki.XWikiAuthServiceImpl.checkAuth(XWikiAuthServiceImpl.java:213)
        at com.xpn.xwiki.XWiki.checkAuth(XWiki.java:3411)
        at com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImpl.checkAccess(XWikiRightServiceImpl.java:167)
        at com.xpn.xwiki.XWiki.checkAccess(XWiki.java:3419)
        at com.xpn.xwiki.XWiki.prepareDocuments(XWiki.java:4381)
        at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:179)
        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(Thread.java:595)

shivshan wrote
Hi
On XE 1.4/Linux/Tomcat, i get the following exception when i try to post to a blog. Authentication works alright but sometimes, it seems as though it works in the second attempt. I know this is very strange.
Any pointers?
Using IE7 on Windows.
Thanks
Shiva

10:41:46,996 [http://172.21.16.147/xwiki/bin/view/Main/DocumentDoesNotExist] [http-80-1] WARN  LDAP.XWikiLDAPAuthServiceImpl   - LDAP authentication failed.
com.xpn.xwiki.XWikiException: Error number 3201 in 3: Exception while saving document XWiki.shiva_shankar
Wrapped Exception: Error number 3212 in 3: Exception while saving property tags of object XWiki.shiva_shankar
Wrapped Exception: Illegal attempt to associate a collection with two open sessions
        at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:573)
        at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:97)
        at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:91)
        at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1130)
        at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1098)
        at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1092)
        at com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.updateUserFromLDAP(XWikiLDAPAuthServiceImpl.java:725)
        at com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.syncUser(XWikiLDAPAuthServiceImpl.java:417)
        at com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.ldapAuthenticate(XWikiLDAPAuthServiceImpl.java:297)
        at com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.authenticate(XWikiLDAPAuthServiceImpl.java:107)
        at com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.authenticate(MyFormAuthenticator.java:195)
        at com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.processLogin(MyFormAuthenticator.java:96)
        at com.xpn.xwiki.user.impl.xwiki.XWikiAuthServiceImpl.checkAuth(XWikiAuthServiceImpl.java:213)
        at com.xpn.xwiki.XWiki.checkAuth(XWiki.java:3411)
        at com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImpl.checkAccess(XWikiRightServiceImpl.java:167)
        at com.xpn.xwiki.XWiki.checkAccess(XWiki.java:3419)
        at com.xpn.xwiki.XWiki.prepareDocuments(XWiki.java:4381)
        at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:179)
        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(Thread.java:595)
Reply | Threaded
Open this post in threaded view
|

Re: LDAP Authentication exception

Thomas Mortagne
Administrator
Hi,

Your are not the first to return this hibernate error but I can't find
why you have this. It seems there is something which corrupt users
profiles in some configurations but I can't find what exactly.

Or maybe it's some thread concurrency problem in storage service...

On Tue, Jun 10, 2008 at 10:59 AM, shivshan <[hidden email]> wrote:

>
> Additional wrapped exception error message:
> org.hibernate.HibernateException: Illegal attempt to associate a collection
> with two open sessions
>        at
> org.hibernate.collection.AbstractPersistentCollection.setCurrentSession(AbstractPersistentCollection.java:410)
>        at
> org.hibernate.event.def.OnUpdateVisitor.processCollection(OnUpdateVisitor.java:43)
>        at
> org.hibernate.event.def.AbstractVisitor.processValue(AbstractVisitor.java:101)
>        at
> org.hibernate.event.def.AbstractVisitor.processValue(AbstractVisitor.java:61)
>        at
> org.hibernate.event.def.AbstractVisitor.processEntityPropertyValues(AbstractVisitor.java:55)
>        at
> org.hibernate.event.def.AbstractVisitor.process(AbstractVisitor.java:123)
>        at
> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performUpdate(DefaultSaveOrUpdateEventListener.java:293)
>        at
> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsDetached(DefaultSaveOrUpdateEventListener.java:223)
>        at
> org.hibernate.event.def.DefaultUpdateEventListener.performSaveOrUpdate(DefaultUpdateEventListener.java:33)
>        at
> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
>        at org.hibernate.impl.SessionImpl.fireUpdate(SessionImpl.java:564)
>        at org.hibernate.impl.SessionImpl.update(SessionImpl.java:552)
>        at org.hibernate.impl.SessionImpl.update(SessionImpl.java:544)
>        at
> com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiProperty(XWikiHibernateStore.java:1277)
>        at
> com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiCollection(XWikiHibernateStore.java:926)
>        at
> com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:552)
>        at
> com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:97)
>        at
> com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:91)
>        at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1130)
>        at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1098)
>        at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1092)
>        at
> com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.updateUserFromLDAP(XWikiLDAPAuthServiceImpl.java:725)
>        at
> com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.syncUser(XWikiLDAPAuthServiceImpl.java:417)
>        at
> com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.ldapAuthenticate(XWikiLDAPAuthServiceImpl.java:297)
>        at
> com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.authenticate(XWikiLDAPAuthServiceImpl.java:107)
>        at
> com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.authenticate(MyFormAuthenticator.java:195)
>        at
> com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.processLogin(MyFormAuthenticator.java:96)
>        at
> com.xpn.xwiki.user.impl.xwiki.XWikiAuthServiceImpl.checkAuth(XWikiAuthServiceImpl.java:213)
>        at com.xpn.xwiki.XWiki.checkAuth(XWiki.java:3411)
>        at
> com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImpl.checkAccess(XWikiRightServiceImpl.java:167)
>        at com.xpn.xwiki.XWiki.checkAccess(XWiki.java:3419)
>        at com.xpn.xwiki.XWiki.prepareDocuments(XWiki.java:4381)
>        at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:179)
>        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(Thread.java:595)
>
>
> shivshan wrote:
>>
>> Hi
>> On XE 1.4/Linux/Tomcat, i get the following exception when i try to post
>> to a blog. Authentication works alright but sometimes, it seems as though
>> it works in the second attempt. I know this is very strange.
>> Any pointers?
>> Using IE7 on Windows.
>> Thanks
>> Shiva
>>
>> 10:41:46,996
>> [http://172.21.16.147/xwiki/bin/view/Main/DocumentDoesNotExist]
>> [http-80-1] WARN  LDAP.XWikiLDAPAuthServiceImpl   - LDAP authentication
>> failed.
>> com.xpn.xwiki.XWikiException: Error number 3201 in 3: Exception while
>> saving document XWiki.shiva_shankar
>> Wrapped Exception: Error number 3212 in 3: Exception while saving property
>> tags of object XWiki.shiva_shankar
>> Wrapped Exception: Illegal attempt to associate a collection with two open
>> sessions
>>         at
>> com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:573)
>>         at
>> com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:97)
>>         at
>> com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:91)
>>         at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1130)
>>         at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1098)
>>         at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1092)
>>         at
>> com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.updateUserFromLDAP(XWikiLDAPAuthServiceImpl.java:725)
>>         at
>> com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.syncUser(XWikiLDAPAuthServiceImpl.java:417)
>>         at
>> com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.ldapAuthenticate(XWikiLDAPAuthServiceImpl.java:297)
>>         at
>> com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.authenticate(XWikiLDAPAuthServiceImpl.java:107)
>>         at
>> com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.authenticate(MyFormAuthenticator.java:195)
>>         at
>> com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.processLogin(MyFormAuthenticator.java:96)
>>         at
>> com.xpn.xwiki.user.impl.xwiki.XWikiAuthServiceImpl.checkAuth(XWikiAuthServiceImpl.java:213)
>>         at com.xpn.xwiki.XWiki.checkAuth(XWiki.java:3411)
>>         at
>> com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImpl.checkAccess(XWikiRightServiceImpl.java:167)
>>         at com.xpn.xwiki.XWiki.checkAccess(XWiki.java:3419)
>>         at com.xpn.xwiki.XWiki.prepareDocuments(XWiki.java:4381)
>>         at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:179)
>>         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(Thread.java:595)
>>
>>
>
> --
> View this message in context: http://www.nabble.com/LDAP-Authentication-exception-tp17750754p17750788.html
> Sent from the XWiki- Dev mailing list archive at Nabble.com.
>
> _______________________________________________
> devs mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/devs
>



--
Thomas Mortagne
_______________________________________________
devs mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/devs
Reply | Threaded
Open this post in threaded view
|

Re: LDAP Authentication exception

Shiva Shankar
In reply to this post by Shiva Shankar
Hi
I deleted the user and recreated. Voila it works fine (atleast for now).
Only "special" thing that i did for this user was initially granting admin rights and later removing them.
Also i tried to change (unsuccessfully) the avatar for this user.
Shiva

shivshan wrote
Hi
On XE 1.4/Linux/Tomcat, i get the following exception when i try to post to a blog. Authentication works alright but sometimes, it seems as though it works in the second attempt. I know this is very strange.
Any pointers?
Using IE7 on Windows.
Thanks
Shiva

10:41:46,996 [http://172.21.16.147/xwiki/bin/view/Main/DocumentDoesNotExist] [http-80-1] WARN  LDAP.XWikiLDAPAuthServiceImpl   - LDAP authentication failed.
com.xpn.xwiki.XWikiException: Error number 3201 in 3: Exception while saving document XWiki.shiva_shankar
Wrapped Exception: Error number 3212 in 3: Exception while saving property tags of object XWiki.shiva_shankar
Wrapped Exception: Illegal attempt to associate a collection with two open sessions
        at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:573)
        at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:97)
        at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:91)
        at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1130)
        at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1098)
        at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1092)
        at com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.updateUserFromLDAP(XWikiLDAPAuthServiceImpl.java:725)
        at com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.syncUser(XWikiLDAPAuthServiceImpl.java:417)
        at com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.ldapAuthenticate(XWikiLDAPAuthServiceImpl.java:297)
        at com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.authenticate(XWikiLDAPAuthServiceImpl.java:107)
        at com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.authenticate(MyFormAuthenticator.java:195)
        at com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.processLogin(MyFormAuthenticator.java:96)
        at com.xpn.xwiki.user.impl.xwiki.XWikiAuthServiceImpl.checkAuth(XWikiAuthServiceImpl.java:213)
        at com.xpn.xwiki.XWiki.checkAuth(XWiki.java:3411)
        at com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImpl.checkAccess(XWikiRightServiceImpl.java:167)
        at com.xpn.xwiki.XWiki.checkAccess(XWiki.java:3419)
        at com.xpn.xwiki.XWiki.prepareDocuments(XWiki.java:4381)
        at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:179)
        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(Thread.java:595)
Reply | Threaded
Open this post in threaded view
|

Re: LDAP Authentication exception

Thomas Mortagne
Administrator
On Tue, Jun 10, 2008 at 12:48 PM, shivshan <[hidden email]> wrote:
>
> Hi
> I deleted the user and recreated. Voila it works fine (atleast for now).
> Only "special" thing that i did for this user was initially granting admin
> rights and later removing them.
> Also i tried to change (unsuccessfully) the avatar for this user.
> Shiva

OK thanks I will try theses to see if I can break user profile.

>
>
> shivshan wrote:
>>
>> Hi
>> On XE 1.4/Linux/Tomcat, i get the following exception when i try to post
>> to a blog. Authentication works alright but sometimes, it seems as though
>> it works in the second attempt. I know this is very strange.
>> Any pointers?
>> Using IE7 on Windows.
>> Thanks
>> Shiva
>>
>> 10:41:46,996
>> [http://172.21.16.147/xwiki/bin/view/Main/DocumentDoesNotExist]
>> [http-80-1] WARN  LDAP.XWikiLDAPAuthServiceImpl   - LDAP authentication
>> failed.
>> com.xpn.xwiki.XWikiException: Error number 3201 in 3: Exception while
>> saving document XWiki.shiva_shankar
>> Wrapped Exception: Error number 3212 in 3: Exception while saving property
>> tags of object XWiki.shiva_shankar
>> Wrapped Exception: Illegal attempt to associate a collection with two open
>> sessions
>>         at
>> com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:573)
>>         at
>> com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:97)
>>         at
>> com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:91)
>>         at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1130)
>>         at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1098)
>>         at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1092)
>>         at
>> com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.updateUserFromLDAP(XWikiLDAPAuthServiceImpl.java:725)
>>         at
>> com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.syncUser(XWikiLDAPAuthServiceImpl.java:417)
>>         at
>> com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.ldapAuthenticate(XWikiLDAPAuthServiceImpl.java:297)
>>         at
>> com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.authenticate(XWikiLDAPAuthServiceImpl.java:107)
>>         at
>> com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.authenticate(MyFormAuthenticator.java:195)
>>         at
>> com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.processLogin(MyFormAuthenticator.java:96)
>>         at
>> com.xpn.xwiki.user.impl.xwiki.XWikiAuthServiceImpl.checkAuth(XWikiAuthServiceImpl.java:213)
>>         at com.xpn.xwiki.XWiki.checkAuth(XWiki.java:3411)
>>         at
>> com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImpl.checkAccess(XWikiRightServiceImpl.java:167)
>>         at com.xpn.xwiki.XWiki.checkAccess(XWiki.java:3419)
>>         at com.xpn.xwiki.XWiki.prepareDocuments(XWiki.java:4381)
>>         at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:179)
>>         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(Thread.java:595)
>>
>>
>
> --
> View this message in context: http://www.nabble.com/LDAP-Authentication-exception-tp17750754p17752527.html
> Sent from the XWiki- Dev mailing list archive at Nabble.com.
>
> _______________________________________________
> devs mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/devs
>



--
Thomas Mortagne
_______________________________________________
devs mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/devs