Results 1 to 7 of 7

Thread: [SOLVED] AWT Log error messages

  1. #1
    stuartg.orion is offline Senior Member
    Join Date
    May 2007
    Location
    Auckland
    Posts
    68
    Rep Power
    7

    Default [SOLVED] AWT Log error messages

    i keep seeing a lot of these in my sync.log:

    2007-10-25 10:09:27,966 ERROR [http-80-Processor97] [name=ian;mid=13;folder=10;DeviceId=83990AE59BF5611 444D197002E24416F;class=Calendar;SyncCmd=Sync;Devi ceType=P
    ocketPC;] sync - Unexpected exception
    java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11.XToolkit
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:169)
    at java.awt.Toolkit$2.run(Toolkit.java:836)
    at java.security.AccessController.doPrivileged

    Zimbra is definitely running with Java in headless mode:
    # ps -efww | grep [j]ava
    zimbra 21056 1 1 Oct24 ? 00:19:25 /opt/zimbra/jdk1.6.0_02_i386/bin/java -client -Xmx256m -Dzimbra.home=/opt/zimbra -Djava.library.path=/opt/zimbra/lib -Djava.ext.dirs=/opt/zimbra/jdk1.6.0_02_i386/jre/lib/ext:/opt/zimbra/lib/jars:/opt/zimbra/lib/ext:/opt/zimbra/lib/ext/backup:/opt/zimbra/lib/ext/clamscanner:/opt/zimbra/lib/ext/network:/opt/zimbra/lib/ext/zimbra-license:/opt/zimbra/lib/ext/zimbrahsm:/opt/zimbra/lib/ext/zimbrasync -Djava.awt.headless=true -Djava.library.path=/opt/zimbra/verity/FilterSDK/bin:/opt/zimbra/verity/ExportSDK/bin com.zimbra.cs.convertd.TransformationServer
    root 21798 1 0 Oct24 ? 00:00:00 /opt/zimbra/libexec/zmtomcatmgr start -Xms6412m -Xmx6412m -client -XX:NewRatio=2 -Djava.awt.headless -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:SoftRefLRUPolicyMSPerMB=1 -XX:+UseParallelGC
    zimbra 21799 21798 5 Oct24 ? 01:08:11 /opt/zimbra/jdk1.6.0_02/bin/java -Xms6412m -Xmx6412m -client -XX:NewRatio=2 -Djava.awt.headless -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:SoftRefLRUPolicyMSPerMB=1 -XX:+UseParallelGC -Dcatalina.base=/opt/zimbra/apache-tomcat-5.5.15 -Dcatalina.home=/opt/zimbra/apache-tomcat-5.5.15 -Djava.io.tmpdir=/opt/zimbra/apache-tomcat-5.5.15/temp -Djava.library.path=/opt/zimbra/lib -Djava.endorsed.dirs=/opt/zimbra/apache-tomcat-5.5.15/common/endorsed -classpath /opt/zimbra/apache-tomcat-5.5.15/bin/bootstrap.jar:/opt/zimbra/apache-tomcat-5.5.15/bin/commons-logging-api.jar:/opt/zimbra/lib/jars/zimbra-launcher.jar com.zimbra.cs.launcher.TomcatLauncher

    Should I be concerned?

  2. #2
    stuartg.orion is offline Senior Member
    Join Date
    May 2007
    Location
    Auckland
    Posts
    68
    Rep Power
    7

    Default

    Hmm or maybe it isn't - it should be -Djava.awt.headless=true I guess.

    Will fix that and try again

  3. #3
    Rich Graves is offline Outstanding Member
    Join Date
    Jan 2007
    Location
    Minnesota
    Posts
    717
    Rep Power
    9

    Default

    Can you explain a bit more how this was "SOLVED" for you? I see Djava.awt.headless=true in your example and also on my running server.

    I'm seeing exceptions on a particular user's calendar sync with ZCS 4.5.10.

    Code:
    zimbra    6462     1  0 11:14 ?        00:00:02 /opt/zimbra/jdk1.6.0_02_i386/bin/java -client -Xmx256m -Dzimbra.home=/opt/zimbra -Djava.library.path=/opt/zimbra/lib -Djava.ext.dirs=/opt/zimbra/jdk1.6.0_02_i386/jre/lib/ext:/opt/zimbra/lib/jars:/opt/zimbra/lib/ext:/opt/zimbra/lib/ext/backup:/opt/zimbra/lib/ext/clamscanner:/opt/zimbra/lib/ext/network:/opt/zimbra/lib/ext/zimbra-license:/opt/zimbra/lib/ext/zimbrahsm:/opt/zimbra/lib/ext/zimbrasync -Djava.awt.headless=true -Djava.library.path=/opt/zimbra/verity/FilterSDK/bin:/opt/zimbra/verity/ExportSDK/bin com.zimbra.cs.convertd.TransformationServer
    zimbra   13418 13417 15 Nov23 ?        14:46:44 /opt/zimbra/jdk1.6.0_02/bin/java -Xms6410m -Xmx6410m -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:SoftRefLRUPolicyMSPerMB=1 -Xss256k -Dcatalina.base=/opt/zimbra/apache-tomcat-5.5.15 -Dcatalina.home=/opt/zimbra/apache-tomcat-5.5.15 -Djava.io.tmpdir=/opt/zimbra/apache-tomcat-5.5.15/temp -Djava.library.path=/opt/zimbra/lib -Djava.endorsed.dirs=/opt/zimbra/apache-tomcat-5.5.15/common/endorsed -classpath /opt/zimbra/apache-tomcat-5.5.15/bin/bootstrap.jar:/opt/zimbra/apache-tomcat-5.5.15/bin/commons-logging-api.jar:/opt/zimbra/lib/jars/zimbra-launcher.jar com.zimbra.cs.launcher.TomcatLauncher

  4. #4
    stuartg.orion is offline Senior Member
    Join Date
    May 2007
    Location
    Auckland
    Posts
    68
    Rep Power
    7

    Default

    The second java process, the tomcat one, only had -Djava.awt.headless. Note the missing =true. In your process list your main Zimbra process doesn't appear to have -Djava.awt.headless at all

    You need to set your tomcat options again with

    zmlocalconfig

    and include the headless stuff

  5. #5
    Rich Graves is offline Outstanding Member
    Join Date
    Jan 2007
    Location
    Minnesota
    Posts
    717
    Rep Power
    9

    Default

    Ah, thanks.

    I'd set the options recommended at Performance Tuning Guidelines for Large Deployments - Zimbra :: Wiki which I reckon needs to be edited with this caveat.

    Anything else I need to re-add from the default install?

    I see references to "-client -XX:NewRatio=2" but I currently only have

    tomcat_java_options = -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:SoftRefLRUPolicyMSPerMB=1

  6. #6
    inqueue is offline Zimbra Employee
    Join Date
    Mar 2006
    Location
    Greenwood, IN
    Posts
    88
    Rep Power
    9

    Default

    Your tomcat_java_options needs to have -Djava.awt.headless=true. Defaults look like this:

    tomcat_java_options = -client -XX:NewRatio=2 -Djava.awt.headless=true

    I'm taking your support case btw.

    --jason

  7. #7
    Rich Graves is offline Outstanding Member
    Join Date
    Jan 2007
    Location
    Minnesota
    Posts
    717
    Rep Power
    9

    Default

    This is now SOLVED for me as well, thanks. Case closed.

    Wiki page Performance_Tuning_Guidelines_for_Large_Deployment s should still be edited to warn future generations to leave the default options in place when adding tuning parameters.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Errors installing Outlook Connector
    By Tim G in forum Zimbra Connector for Outlook
    Replies: 57
    Last Post: 05-05-2011, 02:27 PM
  2. Connector Fails
    By ILLCOMM in forum Zimbra Connector for Outlook
    Replies: 4
    Last Post: 09-28-2007, 12:08 PM
  3. Error Installing Outlook Connector
    By DanO in forum Zimbra Connector for Outlook
    Replies: 17
    Last Post: 08-28-2007, 09:35 AM
  4. Outlook connector installation error
    By ssrivera in forum Zimbra Connector for Outlook
    Replies: 1
    Last Post: 07-03-2007, 04:21 PM
  5. Replies: 2
    Last Post: 10-02-2006, 08:44 AM

Posting Permissions

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