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

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 10-24-2007, 02:16 PM
Senior Member
 
Posts: 66
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?
Reply With Quote
  #2 (permalink)  
Old 10-24-2007, 02:19 PM
Senior Member
 
Posts: 66
Default

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

Will fix that and try again
Reply With Quote
  #3 (permalink)  
Old 11-27-2007, 09:37 AM
Outstanding Member
 
Posts: 708
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
Reply With Quote
  #4 (permalink)  
Old 11-27-2007, 10:41 AM
Senior Member
 
Posts: 66
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
Reply With Quote
  #5 (permalink)  
Old 11-27-2007, 11:03 AM
Outstanding Member
 
Posts: 708
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
Reply With Quote
  #6 (permalink)  
Old 11-27-2007, 01:26 PM
Zimbra Employee
 
Posts: 37
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
Reply With Quote
  #7 (permalink)  
Old 11-28-2007, 01:29 PM
Outstanding Member
 
Posts: 708
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.
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.