Results 1 to 4 of 4

Thread: Error when sending / saving mail

  1. #1
    Join Date
    Feb 2007
    Posts
    3
    Rep Power
    8

    Default Error when sending / saving mail

    I get an exception error when I try to send or save emails at zimbras webmail:

    Code:
    msg - system failure: java.lang.NullPointerException
    com.zimbra.common.service.ServiceException: system failure: java.lang.NullPointerException
    	at com.zimbra.common.service.ServiceException.FAILURE(ServiceException.java:175)
    	at com.zimbra.soap.SoapEngine.dispatchRequest(SoapEngine.java:273)
    	at com.zimbra.soap.SoapEngine.dispatch(SoapEngine.java:162)
    	at com.zimbra.soap.SoapEngine.dispatch(SoapEngine.java:84)
    	at com.zimbra.soap.SoapServlet.doPost(SoapServlet.java:223)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
    	at com.zimbra.cs.servlet.ZimbraServlet.service(ZimbraServlet.java:162)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541)
    	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
    	at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
    	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    	at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
    	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
    	at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.NullPointerException
    	at java.lang.String.concat(String.java:1827)
    	at com.sun.activation.registries.MailcapFile.parseLine(MailcapFile.java:235)
    	at com.sun.activation.registries.MailcapFile.parse(MailcapFile.java:197)
    	at com.sun.activation.registries.MailcapFile.createMailcapHash(MailcapFile.java:157)
    	at com.sun.activation.registries.MailcapFile.<init>(MailcapFile.java:40)
    	at javax.activation.MailcapCommandMap.loadFile(MailcapCommandMap.java:276)
    	at javax.activation.MailcapCommandMap.<init>(MailcapCommandMap.java:128)
    	at javax.activation.CommandMap.getDefaultCommandMap(CommandMap.java:44)
    	at javax.activation.DataHandler.getCommandMap(DataHandler.java:136)
    	at javax.activation.DataHandler.getDataContentHandler(DataHandler.java:568)
    	at javax.activation.DataHandler.writeTo(DataHandler.java:294)
    	at javax.mail.internet.MimeUtility.getEncoding(MimeUtility.java:230)
    	at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1127)
    	at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:1930)
    	at com.zimbra.cs.mime.Mime$FixedMimeMessage.updateHeaders(Mime.java:145)
    	at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:1911)
    	at com.zimbra.cs.service.mail.ParseMimeMessage.parseMimeMsgSoap(ParseMimeMessage.java:358)
    	at com.zimbra.cs.service.mail.ParseMimeMessage.parseMimeMsgSoap(ParseMimeMessage.java:177)
    	at com.zimbra.cs.service.mail.SaveDraft.handle(SaveDraft.java:103)
    	at com.zimbra.soap.SoapEngine.dispatchRequest(SoapEngine.java:262)
    	... 21 more
    
    code - service.FAILURE
    method - ZmCsfeCommand.prototype.invoke
    detail - soap:Receiver
    Tomcat logs:

    Code:
    192.168.1.1 - - [07/Feb/2007:16:17:05 +0100] "POST /service/soap/SaveDraftRequest HTTP/1.1" 500 3861 "-" "Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.0.7) Gecko/20060921 Ubuntu/dapper-security Firefox/1.5.0.7"
    Seems like an error at the /service/soap/SaveDraftRequest, but I cant find any problem there.. is it possible that the mx server causes such errors if its not working?

    Thanks for every hint

  2. #2
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    12

    Default Corrupt mailcap file?

    Code:
    Caused by: java.lang.NullPointerException
    	at java.lang.String.concat(String.java:1827)
    	at com.sun.activation.registries.MailcapFile.parseLine(MailcapFile.java:235)
    	at com.sun.activation.registries.MailcapFile.parse(MailcapFile.java:197)
    	at com.sun.activation.registries.MailcapFile.createMailcapHash(MailcapFile.java:157)
    	at com.sun.activation.registries.MailcapFile.<init>(MailcapFile.java:40)
    	at javax.activation.MailcapCommandMap.loadFile(MailcapCommandMap.java:276)
    	at javax.activation.MailcapCommandMap.<init>(MailcapCommandMap.java:128)
    Is there any chance your system's mailcap file (/etc/mailcap, I think) is corrupt? JavaMail is getting very confused when reading its mailcap file, and I think that it uses the system one.
    Bugzilla - Wiki - Downloads - Before posting... Search!

  3. #3
    Join Date
    Feb 2007
    Posts
    3
    Rep Power
    8

    Default Error when sending / saving mail

    Sure, everything is possible. I checked and checked again. I removed the contents. The error persists. Now does anybody know how I can get -D params set for the tomcat? There is an option javax.activation.debug I would want to set to true, to find out which mailcap file is loaded.

    Thanx

    Bernhard

  4. #4
    Join Date
    Feb 2007
    Posts
    3
    Rep Power
    8

    Default Solved

    Ok, it was the problem. First it read /root/.mailcap. This file was not ok.

    Thanx for the tip.

    /b

Similar Threads

  1. Problems with port 25
    By yogiman in forum Installation
    Replies: 57
    Last Post: 06-13-2011, 02:55 PM
  2. Replies: 7
    Last Post: 02-03-2011, 07:01 AM
  3. fresh install down may be due to tomcat
    By gon in forum Installation
    Replies: 10
    Last Post: 07-25-2007, 09:09 AM
  4. DynDNS and Zimbra
    By afterwego in forum Installation
    Replies: 30
    Last Post: 04-01-2007, 04:34 PM
  5. receiveing mail
    By maybethistime in forum Administrators
    Replies: 15
    Last Post: 12-09-2005, 04:55 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
  •