Results 1 to 2 of 2

Thread: zimbra soap api change use password error

  1. #1
    chentao is offline Beginner Member
    Join Date
    Mar 2013
    Posts
    1
    Rep Power
    2

    Question zimbra soap api change use password error

    my code:
    public static boolean setPassword(String usr, String newpwd, String domainName){
    boolean result = false;
    SoapProvisioning sp = new SoapProvisioning();
    try {
    sp.soapSetURI(url);
    sp.soapAdminAuthenticate(admin, adminPwd);
    Account account = null;
    if(usr.indexOf('@') == -1){
    account = sp.getAccount(usr+"@"+domainName);
    }else{
    account = sp.getAccount(usr);
    }
    account.setPassword(newpwd);
    result = true;
    }catch(Exception e) {
    e.printStackTrace();
    return false;
    }
    return result;
    }


    errror:


    com.zimbra.common.zclient.ZClientException: invoke sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: signature check failed, server: 122.192.36.112
    ExceptionId:TP-Processor11:1362706924968:f440f2b28d26551a
    Code:zclient.IO_ERROR
    at com.zimbra.common.zclient.ZClientException.IO_ERRO R(ZClientException.java:45)
    at com.zimbra.cs.account.soap.SoapProvisioning.invoke (SoapProvisioning.java:330)
    at com.zimbra.cs.account.soap.SoapProvisioning.soapAd minAuthenticate(SoapProvisioning.java:279)
    at njyoodo.com.cn.mailop.MailOp.setPassword(MailOp.ja va:174)
    at njyoodo.com.cn.servlet.ChangeMailPassword.doPost(C hangeMailPassword.java:33)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:710)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:803)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:206)
    at njyoodo.com.cn.filter.CheckPermissions.doFilter(Ch eckPermissions.java:92)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:175)
    at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:128)
    at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:286)
    at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyo teHandler.java:190)
    at org.apache.jk.common.HandlerRequest.invoke(Handler Request.java:283)
    at org.apache.jk.common.ChannelSocket.invoke(ChannelS ocket.java:767)
    at org.apache.jk.common.ChannelSocket.processConnecti on(ChannelSocket.java:697)
    at org.apache.jk.common.ChannelSocket$SocketConnectio n.runIt(ChannelSocket.java:889)
    at org.apache.tomcat.util.threads.ThreadPool$ControlR unnable.run(ThreadPool.java:690)
    at java.lang.Thread.run(Thread.java:662)
    Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: signature check failed
    at com.sun.net.ssl.internal.ssl.Alerts.getSSLExceptio n(Alerts.java:174)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(S SLSocketImpl.java:1731)
    at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Ha ndshaker.java:241)
    at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Ha ndshaker.java:235)
    at com.sun.net.ssl.internal.ssl.ClientHandshaker.serv erCertificate(ClientHandshaker.java:1206)
    at com.sun.net.ssl.internal.ssl.ClientHandshaker.proc essMessage(ClientHandshaker.java:136)
    at com.sun.net.ssl.internal.ssl.Handshaker.processLoo p(Handshaker.java:593)
    at com.sun.net.ssl.internal.ssl.Handshaker.process_re cord(Handshaker.java:529)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRec ord(SSLSocketImpl.java:925)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.perform InitialHandshake(SSLSocketImpl.java:1170)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRe cord(SSLSocketImpl.java:637)
    at com.sun.net.ssl.internal.ssl.AppOutputStream.write (AppOutputStream.java:88)
    at java.io.BufferedOutputStream.flushBuffer(BufferedO utputStream.java:65)
    at java.io.BufferedOutputStream.flush(BufferedOutputS tream.java:123)
    at org.apache.commons.httpclient.methods.StringReques tEntity.writeRequest(StringRequestEntity.java:146)
    at org.apache.commons.httpclient.methods.EntityEnclos ingMethod.writeRequestBody(EntityEnclosingMethod.j ava:499)
    at org.apache.commons.httpclient.HttpMethodBase.write Request(HttpMethodBase.java:2114)
    at org.apache.commons.httpclient.HttpMethodBase.execu te(HttpMethodBase.java:1096)
    at org.apache.commons.httpclient.HttpMethodDirector.e xecuteWithRetry(HttpMethodDirector.java:398)
    at org.apache.commons.httpclient.HttpMethodDirector.e xecuteMethod(HttpMethodDirector.java:171)
    at org.apache.commons.httpclient.HttpClient.executeMe thod(HttpClient.java:397)
    at com.zimbra.common.soap.SoapHttpTransport.invoke(So apHttpTransport.java:243)
    at com.zimbra.common.soap.SoapHttpTransport.invoke(So apHttpTransport.java:164)
    at com.zimbra.common.soap.SoapTransport.invoke(SoapTr ansport.java:407)
    at com.zimbra.common.soap.SoapTransport.invoke(SoapTr ansport.java:370)
    at com.zimbra.cs.account.soap.SoapProvisioning.invoke (SoapProvisioning.java:326)
    ... 23 more

    who can tell me why? thank you!

  2. #2
    ploeger's Avatar
    ploeger is offline Senior Member
    Join Date
    Oct 2008
    Posts
    73
    Rep Power
    6

    Default

    Hi Chentao!

    First of all, it would be nice of you to at least say hello and goodbye in your question. We're not robots, we're human.

    About your problem: I guess it is about SSL certificate verification. Perhaps you're accessing a server with its IP and the certificate includes its hostname and thus the certificate verification fails.

    Check, if your SSL certificate is valid and you're requesting a valid hostname.

    Kind regards
    Dennis
    Release 8.0.6.GA.5922.UBUNTU12.64 UBUNTU12_64 NETWORK edition.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Error since gmail password change
    By che_dominati in forum General Questions
    Replies: 2
    Last Post: 06-10-2012, 01:27 AM
  2. Replies: 0
    Last Post: 12-30-2010, 10:56 AM
  3. Change Password error when using ZCS with a domain
    By JimBobCook in forum Zimbra Connector for Outlook
    Replies: 2
    Last Post: 01-20-2010, 09:50 AM
  4. PHP Soap change password
    By helboy in forum Developers
    Replies: 1
    Last Post: 06-15-2007, 04:23 PM
  5. change password error
    By rmvg in forum Users
    Replies: 3
    Last Post: 09-26-2005, 11:47 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •