Results 1 to 2 of 2

Thread: Tomcat: zmprov ma: account.INVALID_ATTR_VALUE (must include domain)

  1. #1
    Dzmitry Lazerka is offline Starter Member
    Join Date
    Dec 2007
    Posts
    2
    Rep Power
    7

    Default Tomcat: zmprov ma: account.INVALID_ATTR_VALUE (must include domain)

    Hi,
    I execute command
    Code:
    /opt/zimbra/bin/zmprov -v ma anatoly@domain.org zimbraPrefMailForwardingAddress ''
    If I execute it from command-line, it works great: removes the attribute from my ldap entry.
    If the command is executed from my java web application using Runtime.getRuntime().exec(cmd); it gives next error:
    Code:
    ERROR: account.INVALID_ATTR_VALUE (must include domain)
    com.zimbra.soap.SoapFaultException: must include domain
            at com.zimbra.soap.Soap12Protocol.soapFault(Soap12Protocol.java:102)
            at com.zimbra.soap.SoapTransport.extractBodyElement(SoapTransport.java:215)
            at com.zimbra.soap.SoapTransport.parseSoapResponse(SoapTransport.java:191)
            at com.zimbra.soap.SoapHttpTransport.invoke(SoapHttpTransport.java:214)
            at com.zimbra.soap.SoapTransport.invoke(SoapTransport.java:231)
            at com.zimbra.cs.account.soap.SoapProvisioning.invoke(SoapProvisioning.java:156)
            at com.zimbra.cs.account.soap.SoapAccount.modifyAttrs(SoapAccount.java:51)
            at com.zimbra.cs.account.soap.SoapProvisioning.modifyAttrs(SoapProvisioning.java:774)
            at com.zimbra.cs.account.ProvUtil.execute(ProvUtil.java:412)
            at com.zimbra.cs.account.ProvUtil.main(ProvUtil.java:1455)
    I have a lot of hours spent on it. No typing mistakes, I log-copy-paste. I tried double-quotes, without quotes.

    Any suggestions?

  2. #2
    Dzmitry Lazerka is offline Starter Member
    Join Date
    Dec 2007
    Posts
    2
    Rep Power
    7

    Default

    Solution:
    While using Runtime.getRuntime().exec(cmd); Method exec should take not a String, but a String[]. I mean, the command should be broken to parts and executed exec(String[]) method. If you'd like to use empty parameter, don't use argument like "''" or "\"\"", but just an empty String -- "".

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Remove main domain!
    By zibra in forum Administrators
    Replies: 11
    Last Post: 09-27-2007, 08:50 AM
  2. Replies: 9
    Last Post: 04-14-2007, 08:31 AM
  3. domain coexistence
    By marcmac in forum Administrators
    Replies: 14
    Last Post: 06-30-2006, 01:19 PM

Posting Permissions

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