Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Developers

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-04-2010, 01:13 AM
New Member
 
Posts: 4
Default Using SoapProvisioning:system failure: attrs directory does not exists

Hi

I am trying to create Zimbra accounts from a java web application using the java SOAP API.

My code uses the SoapProvisioning class and it is like the example in this post:
Jar For Soap Client

When I create an account I get these warnings:
WARN zimbra.misc - local config file `\opt\zimbra\conf\localconfig.xml' is not readable
WARN zimbra.account - failed to get AttributeManager instance


Although the account is created, not sure if correctly, an exception is thrown:

Quote:
2010-02-04 10:06:12,140 [http-8080-Processor23] WARN zimbra.account - failed to get AttributeManager instance
com.zimbra.common.service.ServiceException: system failure: attrs directory does not exists: /opt/zimbra/conf/attrs
ExceptionId:http-8080-Processor23:1265274372140:62b7788852c42913
Code:service.FAILURE
at com.zimbra.common.service.ServiceException.FAILURE (ServiceException.java:247)
at com.zimbra.cs.account.AttributeManager.<init>(Attr ibuteManager.java:164)
at com.zimbra.cs.account.AttributeManager.getInstance (AttributeManager.java:148)
at com.zimbra.cs.account.Entry.setAttributeManager(En try.java:79)
at com.zimbra.cs.account.Entry.<init>(Entry.java:66)
at com.zimbra.cs.account.NamedEntry.<init>(NamedEntry .java:41)
at com.zimbra.cs.account.MailTarget.<init>(MailTarget .java:26)
at com.zimbra.cs.account.ZAttrAccount.<init>(ZAttrAcc ount.java:32)
at com.zimbra.cs.account.Account.<init>(Account.java: 36)
at com.zimbra.cs.account.soap.SoapAccount.<init>(Soap Account.java:35)
at com.zimbra.cs.account.soap.SoapProvisioning.get(So apProvisioning.java:663)
at com.zimbra.cs.account.soap.SoapProvisioning.get(So apProvisioning.java:630)
at com.zimbra.cs.account.Provisioning.getAccountById( Provisioning.java:637)
...
Zimbra 6.04 is installed in a remote server. That attrs directory exists and is readable so I don't understand which is the problem.

Any idea about what could cause this problem, please?

Thank you.
Reply With Quote
  #2 (permalink)  
Old 02-04-2010, 12:41 PM
Zimlet Guru & Moderator
 
Posts: 467
Default

Hmm. What service are you trying to connect too? The Soap service, or the standalone service?
WARN zimbra.misc - local config file `\opt\zimbra\conf\localconfig.xml' is not readable
WARN zimbra.account - failed to get AttributeManager instance
Reply With Quote
  #3 (permalink)  
Old 02-05-2010, 01:21 AM
New Member
 
Posts: 4
Default

Sorry but I don't understand the question.

My code is like this:

Quote:
SoapProvisioning sp = new SoapProvisioning();
sp.soapSetURI("https://remotehost:7071/service/admin/soap");
sp.soapAdminAuthenticate("admin","password");
createZimbraAccount = sp.createAccount("a@b.com", null, map);
Perhaps I didn't explained myself very well. I can see the two warnings in the log of Eclipse, my development tool. The service exception happens in Zimbra but in the client side (my java web application) the flow of my code is not interrupted.
Reply With Quote
  #4 (permalink)  
Old 02-22-2010, 06:24 PM
Active Member
 
Posts: 45
Default

I get the same error trying to connect to a SOAP service via the admin URL.

This code worked fine until I attempted migrating from 5.x zcs java APIs to the 6.x version.

It seems like there was some major refactoring between versions.

Are there any migration docs available?

Any assistance would be appreciated.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.