Code:
		try {
			ZMailbox client = ZMailbox.getByName("admin", "notapass", "http://server/service/soap/");
			ZAuthToken t = client.getAuthToken();
			System.out.println(t.toString());
			List<ZFolder> folders = client.getAllFolders();
			for(ZFolder f : folders){
				System.out.println("folder:"+f.getName());
			}
		} catch (ServiceException e) {
			e.printStackTrace();
		}
Above code always throws an exception as following:
Code:
Unable to determine platform because \opt\zimbra\.platform does not exist.
Exception in thread "main" java.lang.UnsupportedOperationException: This DocumentBuilder, "org.apache.xerces.jaxp.DocumentBuilderImpl", does not support the reset functionality.  Specification "null" version "null"
	at javax.xml.parsers.DocumentBuilder.reset(DocumentBuilder.java:92)
	at com.zimbra.common.soap.Element.toW3cDom(Element.java:387)
	at com.zimbra.soap.JaxbUtil.elementToJaxb(JaxbUtil.java:138)
	at com.zimbra.cs.zclient.ZMailbox.invokeJaxb(ZMailbox.java:551)
	at com.zimbra.cs.zclient.ZMailbox.authByPassword(ZMailbox.java:496)
	at com.zimbra.cs.zclient.ZMailbox.<init>(ZMailbox.java:411)
	at com.zimbra.cs.zclient.ZMailbox.getByName(ZMailbox.java:370)
Can anyone tell me why?