Results 1 to 5 of 5

Thread: Java error NoSuchMethodError InternetDomainName.fromLenient

  1. #1
    Join Date
    Aug 2011
    Rep Power

    Default Java error NoSuchMethodError InternetDomainName.fromLenient


    I spent some time, but couldn't find a solution to this problem:
    I've got 2 servers, freshly installed with updated Ubuntu 10.04 LTS

    One of them, hosting ZCS 7.1.2, is running fine, but i would like to make it run on the second server.

    So i followed these steps:
    - Installed ZCS same version 7.1.2 on the new server
    - Deleted /opt/zimbra
    - rsynced all /opt/zimbra from the first one
    - /opt/zimbra/libexec/zmfixperms

    Then the server starts, without problem, but i get sometimes this error (for example when trying to process email completion) and it makes the server crash.

    If i check on this page:
    Uses of Class (Guava: Google Core Libraries for Java - latest)

    ... i can see that fromLenient method is deprecated.

    The jdk is the same on both servers... everything is the same. I don't understand why this happens. It look likes Zimbra is trying to use a method from Guava which does not exists.

    Any idea?

    SoapEngine - handler exception
    java.lang.NoSuchMethodError: nt(Ljava/lang/StringLcom/google/common/net/InternetDomainName;
    at com.zimbra.cs.index.analysis.RFC822AddressTokenStr eam.tokenize(
    at com.zimbra.cs.index.analysis.RFC822AddressTokenStr eam.<init>(
    at com.zimbra.cs.mime.ParsedMessage.getFromTokenStrea m(
    at com.zimbra.cs.mime.ParsedMessage.setLuceneHeadersF romContainer(
    at com.zimbra.cs.mime.ParsedMessage.analyzePart(Parse
    at com.zimbra.cs.mime.ParsedMessage.analyzeBodyParts(
    at com.zimbra.cs.mime.ParsedMessage.getFragment(Parse
    at com.zimbra.cs.mailbox.Message.generateIndexData(Me
    at com.zimbra.cs.mailbox.IndexHelper.indexItemList(In
    at com.zimbra.cs.mailbox.IndexHelper.indexDeferredIte msInternal(
    at com.zimbra.cs.mailbox.IndexHelper.indexDeferredIte ms(
    at 3720)
    at 3689)
    at 3674)
    at com.zimbra.cs.mailbox.ContactAutoComplete.queryFol ders(
    at com.zimbra.cs.mailbox.ContactAutoComplete.query(Co
    at com.zimbra.cs.service.mail.AutoComplete.query(Auto
    at com.zimbra.cs.service.mail.AutoComplete.handle(Aut
    at com.zimbra.soap.SoapEngine.dispatchRequest(SoapEng
    at com.zimbra.soap.SoapEngine.dispatch(SoapEngine.jav a:287)
    at com.zimbra.soap.SoapEngine.dispatch(SoapEngine.jav a:158)
    at com.zimbra.soap.SoapServlet.doWork(SoapServlet.jav a:294)
    at com.zimbra.soap.SoapServlet.doPost(SoapServlet.jav a:215)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:725)
    at com.zimbra.cs.servlet.ZimbraServlet.service(Zimbra
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:814)
    at org.mortbay.jetty.servlet.ServletHolder.handle(Ser
    at org.mortbay.jetty.servlet.ServletHandler$CachedCha in.doFilter(
    at com.zimbra.cs.servlet.SetHeaderFilter.doFilter(Set
    at org.mortbay.jetty.servlet.ServletHandler$CachedCha in.doFilter(
    at org.mortbay.servlet.UserAgentFilter.doFilter(UserA
    at org.mortbay.servlet.GzipFilter.doFilter(GzipFilter .java:132)
    at org.mortbay.jetty.servlet.ServletHandler$CachedCha in.doFilter(
    at org.mortbay.jetty.servlet.ServletHandler.handle(Se
    at org.mortbay.jetty.servlet.SessionHandler.handle(Se
    at org.mortbay.jetty.handler.ContextHandler.handle(Co
    at org.mortbay.jetty.webapp.WebAppContext.handle(WebA
    at org.mortbay.jetty.handler.ContextHandlerCollection .handle(
    at org.mortbay.jetty.handler.HandlerCollection.handle (
    at org.mortbay.jetty.handler.HandlerWrapper.handle(Ha
    at org.mortbay.jetty.handler.rewrite.RewriteHandler.h andle(
    at org.mortbay.jetty.handler.HandlerWrapper.handle(Ha
    at org.mortbay.jetty.handler.DebugHandler.handle(Debu
    at org.mortbay.jetty.handler.HandlerWrapper.handle(Ha
    at org.mortbay.jetty.Server.handle(
    at org.mortbay.jetty.HttpConnection.handleRequest(Htt
    at org.mortbay.jetty.HttpConnection$ ntent(
    at org.mortbay.jetty.HttpParser.parseNext(HttpParser. java:756)
    at org.mortbay.jetty.HttpParser.parseAvailable(HttpPa
    at org.mortbay.jetty.HttpConnection.handle(HttpConnec
    at org.mortbay.thread.BoundedThreadPool$ n(

  2. #2
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Vannes, France
    Rep Power


    This is not a question about migrating from another mail environment to Zimbra so why have you posted in the Migration forum? I'll move it to the correct forum.

    Quote Originally Posted by aerophil View Post
    I spent some time, but couldn't find a solution to this problem:
    I've got 2 servers, freshly installed with updated Ubuntu 10.04 LTS

    One of them, hosting ZCS 7.1.2, is running fine, but i would like to make it run on the second server.
    What do you hope to achieve by doing that?


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    Join Date
    Aug 2011
    Rep Power


    Sorry about that but i thought it was concerning migration, from one server to another.

    In fact, the full story:
    - i was using FC11 initially with ZCS 7.1.1
    - i updated to FC13, but there was some issues with amavis, and especially with some perl modified package from FC11 to FC13, so i had to disable antispam/antivir
    - then i installed a fresh new ZCS on a vmware ubuntu temporary server, the time to clean and install the first one; i saw that Zimbra was suppose to get rid of fedora packages on next major release
    - i upgraded to ZCS 7.1.2 on the temporary server

    So everything is running very smooth now on the temporary server

    - I then installed Ububntu 10.04 LTS on the first server (with raid, LVM and parted with a drdb volume)
    - installed ZCS and rsync as previously explained

    Next step should be to make the main server online, and re-install the secondary with drdb

  4. #4
    Join Date
    Aug 2011
    Rep Power


    Does someone has an idea of where i can check the Guava package used in zimbra?

    Last edited by aerophil; 08-29-2011 at 01:03 AM.

  5. #5
    Join Date
    Aug 2011
    Rep Power


    Found and fixed the problem.

    This ZCS was updated from previous version, and the updater left some old packages as guava-r07.

    What i did to solve this:

    launch again the installer

    Once intalled, i get this:

    meaning the guava-r07 is not reloaded, but only the one inside /opt/zimbra/lib

    Tomorrow, as i'll get a new full backup from my running server, i'll only delete /opt/zimbra/jetty-6.1.22.z6/common/lib/guava-r09.jar and see if it fixes the problem without running the installer.

    Anyway, i just see that a lot of old packages are left as they are during updates... and you'll have to clean that manually.

    Hope this help.

Similar Threads

  1. Replies: 4
    Last Post: 10-22-2007, 01:42 PM
  2. Fedora 5: Could not create the Java virtual machine
    By mi2enno in forum Installation
    Replies: 6
    Last Post: 06-01-2007, 03:16 AM
  3. Tomcat, Java VM Problems - RAM related? Help
    By Mo_Hong in forum Administrators
    Replies: 3
    Last Post: 03-28-2007, 02:00 PM
  4. Mac OSX install: Java errors & LDAP CA error
    By jefbear in forum Installation
    Replies: 9
    Last Post: 12-16-2006, 02:39 PM
  5. Java 1.5 crashing on PPC Mac 10.4.8
    By bradn in forum Installation
    Replies: 1
    Last Post: 12-08-2006, 05:27 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