[opencms-dev] Error setting a new password

Borja Marcos Suarez borja.suarez at fundacionctic.org
Tue May 31 08:29:45 CEST 2005


Hi all,
 
I'm trying to make some jsp pages to manage users and everything is working fine except when I want to change a user password.
 
The code I use is: cms.getCmsObject().setPassword (name,oldPassword,newPassword);   
 
but I'm getting the following exception. Can anyone tell my why?
 
PS: The user that is executing the code is the Admin user.
 
Thanks for your help.
 
 
org.opencms.file.CmsDataAccessException: Error resetting password for user borja
        at org.opencms.file.CmsDataAccessException.createException(CmsDataAccessException.java:82)
        at org.opencms.db.CmsDbContext.throwException(CmsDbContext.java:212)
        at org.opencms.db.CmsDbContext.report(CmsDbContext.java:196)
        at org.opencms.db.CmsSecurityManager.resetPassword(CmsSecurityManager.java:4380)
        at org.opencms.file.CmsObject.setPassword(CmsObject.java:2890)
        at org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.org_fundacionctic.elements.administration.edituser_jsp._jspService(edituser_jsp.java:109)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:696)
        at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:585)
        at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:510)
        at org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequestDispatcher.java:385)
        at org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:163)
        at org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:421)
        at org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:323)
        at org.opencms.loader.CmsJspLoader.dispatchJsp(CmsJspLoader.java:453)
        at org.opencms.loader.CmsJspLoader.load(CmsJspLoader.java:398)
        at org.opencms.loader.CmsResourceManager.loadResource(CmsResourceManager.java:674)
        at org.opencms.main.OpenCmsCore.showResource(OpenCmsCore.java:1307)
        at org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:114)
        at org.opencms.main.OpenCmsServlet.doPost(OpenCmsServlet.java:126)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
        at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
        at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Thread.java:534)
Caused by: org.opencms.file.CmsDataAccessException: The old password is missing
        at org.opencms.db.CmsDriverManager.resetPassword(CmsDriverManager.java:5978)
        at org.opencms.db.CmsSecurityManager.resetPassword(CmsSecurityManager.java:4378)
        ... 49 more

 

 

**********************************************************
Borja Marcos Suárez
Fundación CTIC 
-Centro Tecnológico de la Información y la Comunicación-
E-mail: borja.suarez at fundacionctic.org <mailto:borja.suarez at fundacionctic.org> 

Tfno: +34 984 29 12 12 

Fax:  +34 984 39 06 12

Parque Científico Tecnológico Gijón-Asturias-Spain
www.fundacionctic.org <BLOCKED::blocked::http://www.fundacionctic.org> 

********************************************************

Este e-mail y cualquiera de sus ficheros anexos son confidenciales y pueden incluir información privilegiada. Si usted no es el destinatario adecuado (o responsable de remitirlo a la persona indicada), agradeceríamos lo notificase o reenviase inmediatamente al emisor. No revele estos contenidos a ninguna otra persona, no los utilice para otra finalidad, ni almacene y/o copie esta información en medio alguno. Opiniones, conclusiones y otro tipo de información relacionada con este mensaje que no sean relativas a la actividad propia de CTIC deberán ser entendidas como exclusivas del emisor.

------------------------------------------------------------------------------------ 
This e-mail is confidential and may contain legally privileged information. If you are not the intended recipient it may be unlawful for you to read, copy, distribute or otherwise make use of the information herein. If you have received this e-mail in error, please contact us immediately. Fundación  CTIC will accept no liability for the mistransmission, interference, or interception of any e-mail and you are reminded that e-mail is not a secure method of communication.

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20050531/2c1c0a35/attachment.htm>


More information about the opencms-dev mailing list