[opencms-dev] Error when deleting a user
Audrey Lehoux
a.lehoux at eurelis.com
Wed Dec 9 16:50:36 CET 2009
Hi Mario,
I could not delete a new created user even with the administrator I created him.
But I solved my issue since that post. In fact, the default jsp delete_users.jsp has been modified to call a custom class. In that custom class, the method "getResourcesForPrincipal" from OpenCms was called. And between the version 7.0.3 and 7.0.5 of OpenCms, the return type of the method "getResourcesForPrincipal" has been changed from "List" to "Set". That was my mistake!
Thanks for your answer anyway.
Regards,
Audrey.
Audrey Lehoux
Chef de projets
Tél : 01 49 97 20 22
EURELIS
AGITATEUR DE TECHNOLOGIES
Tél : 01 49 97 20 20
Fax : 01 47 68 20 19
-----Message d'origine-----
De : opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] De la part de Mario Jäger
Envoyé : mercredi 9 décembre 2009 16:43
À : The OpenCms mailing list
Objet : Re: [opencms-dev] Error when deleting a user
Hi Audrey,
You write that you create users without problems. Can you delete a new created user?
Can you delete the problem user(s) with the default OpenCms admin user "Admin"?
Which OpenCms version do you use?
--
Kind Regards,
Mario.
-------------------
Mario Jäger
Alkacon Software GmbH - The OpenCms Experts
http://www.alkacon.com - http://www.opencms.org
Audrey Lehoux schrieb:
>
> Hi list,
>
> I have the following error when I want to delete a user using the
> OpenCms "User Management" functionalities:
>
> javax.servlet.ServletException: org.opencms.file.CmsObject.getResourcesForPrincipal(Lorg/opencms/util/CmsUUID;Lorg/opencms/security/CmsPermissionSet;Z)Ljava/util/List;
> at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:846)
> at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)
> at org.apache.jsp.WEB_002dINF.jsp.offline.system.workplace.admin.accounts.user_005fdelete_jsp._jspService(user_005fdelete_jsp.java:55)
> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
> at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:691)
> at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:469)
> at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:403)
> at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
> at org.opencms.flex.CmsFlexRequestDispatcher.forward(CmsFlexRequestDispatcher.java:117)
> at org.opencms.loader.CmsJspLoader.load(CmsJspLoader.java:1168)
> at org.opencms.loader.CmsResourceManager.loadResource(CmsResourceManager.java:964)
> at org.opencms.main.OpenCmsCore.showResource(OpenCmsCore.java:1498)
> at org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:152)
> at org.opencms.main.OpenCmsServlet.doPost(OpenCmsServlet.java:164)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
> at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:691)
> at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:469)
> at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:403)
> at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
> at org.opencms.flex.CmsFlexRequestDispatcher.forward(CmsFlexRequestDispatcher.java:117)
> at org.opencms.util.CmsRequestUtil.forwardRequest(CmsRequestUtil.java:460)
> at org.opencms.workplace.tools.CmsToolManager.jspForwardPage(CmsToolManager.java:482)
> at org.opencms.workplace.administration.CmsAdminDialog.displayDialog(CmsAdminDialog.java:100)
> at org.apache.jsp.WEB_002dINF.jsp.offline.system.workplace.views.admin.admin_002dmain_jsp._jspService(admin_002dmain_jsp.java:46)
> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
> at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:691)
> at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:469)
> at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:403)
> at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
> at org.opencms.flex.CmsFlexRequestDispatcher.forward(CmsFlexRequestDispatcher.java:117)
> at org.opencms.loader.CmsJspLoader.load(CmsJspLoader.java:1168)
> at org.opencms.loader.CmsResourceManager.loadResource(CmsResourceManager.java:964)
> at org.opencms.main.OpenCmsCore.showResource(OpenCmsCore.java:1498)
> at org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:152)
> at org.opencms.main.OpenCmsServlet.doPost(OpenCmsServlet.java:164)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
> at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:691)
> at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:469)
> at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:403)
> at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
> at org.opencms.flex.CmsFlexRequestDispatcher.forward(CmsFlexRequestDispatcher.java:117)
> at org.opencms.util.CmsRequestUtil.forwardRequest(CmsRequestUtil.java:460)
> at org.opencms.workplace.tools.CmsToolManager.jspForwardPage(CmsToolManager.java:482)
> at org.opencms.workplace.tools.CmsToolManager.jspForwardTool(CmsToolManager.java:509)
> at org.opencms.workplace.tools.accounts.A_CmsUsersList.executeListSingleActions(A_CmsUsersList.java:266)
> at org.opencms.workplace.list.A_CmsListDialog.actionDialog(A_CmsListDialog.java:339)
> at org.opencms.workplace.list.A_CmsListDialog.displayDialog(A_CmsListDialog.java:411)
> at org.opencms.workplace.list.A_CmsListDialog.displayDialog(A_CmsListDialog.java:396)
> at org.apache.jsp.WEB_002dINF.jsp.offline.system.workplace.admin.accounts.users_005flist_jsp._jspService(users_005flist_jsp.java:46)
> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
> at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:691)
> at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:469)
> at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:403)
> at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
> at org.opencms.loader.CmsJspLoader.load(CmsJspLoader.java:1168)
> at org.opencms.loader.CmsResourceManager.loadResource(CmsResourceManager.java:964)
> at org.opencms.main.OpenCmsCore.showResource(OpenCmsCore.java:1498)
> at org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:152)
> at org.opencms.main.OpenCmsServlet.doPost(OpenCmsServlet.java:164)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
> at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
> at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
> at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
> at java.lang.Thread.run(Thread.java:619)
>
> I don't understand where this error can come from. My user (Admin) belongs to the group "Administrators" and has the role "Root Administrator". I have no error when I create a user.
> Have you already encountered this issue? Have you got any idea of what can be wrong with my Admin user?
>
> Thanks in advance for your help.
>
> Regards,
>
> Audrey.
>
> **Audrey Lehoux****
>
> *Chef de projets*
>
> **Tél : 01 49 97 20 22****
>
> * *
>
> **EURELIS**
>
> **AGITATEUR DE TECHNOLOGIES **
>
> *Tél : 01 49 97 20 20*
>
> *Fax : 01 47 68 20 19***
>
> ------------------------------------------------------------------------
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev
More information about the opencms-dev
mailing list