Results 1 to 4 of 4

Thread: Error with basic client and attachment

  1. #1
    dbc
    dbc is offline Starter Member
    Join Date
    Jul 2007
    Posts
    2
    Rep Power
    8

    Thumbs up Error with basic client and attachment (SOLVED)

    Hello everybody,

    This is my first post to Zimbra forum.

    I have a problem with basic client and e-mails with attachment.
    The e-mails without attachment view ok, but with attachment, the first time open show this error (in firefox):

    HTTP Status 500 -

    type Exception report

    message

    description The server encountered an internal error () that prevented it from fulfilling this request.

    exception

    javax.servlet.ServletException: javax.servlet.jsp.JspException: Choice Pattern incorrect
    org.apache.jasper.runtime.PageContextImpl.doHandle PageException(PageContextImpl.java:854)
    org.apache.jasper.runtime.PageContextImpl.handlePa geException(PageContextImpl.java:791)
    org.apache.jsp.h.search._jspService(org.apache.jsp .h.search:141)
    org.apache.jasper.runtime.HttpJspBase.service(Http JspBase.java:97)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:802)
    org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:332)
    org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:314)
    org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:264)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:802)
    com.zimbra.webClient.filters.CharEncodingFilter.do Filter(CharEncodingFilter.java:45)
    com.zimbra.webClient.filters.SetHeaderFilter.doFil ter(SetHeaderFilter.java:322)

    root cause

    javax.servlet.jsp.JspException: Choice Pattern incorrect
    org.apache.jsp.tag.web.message.displayMessage_tag. doTag(org.apache.jsp.tag.web.message.displayMessag e_tag:316)
    org.apache.jsp.tag.web.message.messageView_tag._js px_meth_app_displayMessage_0(org.apache.jsp.tag.we b.message.messageView_tag:213)
    org.apache.jsp.tag.web.message.messageView_tag.acc ess$6(org.apache.jsp.tag.web.message.messageView_t ag:200)
    org.apache.jsp.tag.web.message.messageView_tag$mes sageView_tagHelper.invoke1(org.apache.jsp.tag.web. message.messageView_tag:438)
    org.apache.jsp.tag.web.message.messageView_tag$mes sageView_tagHelper.invoke(org.apache.jsp.tag.web.m essage.messageView_tag:472)
    org.apache.jsp.tag.web.infra.view_tag.doTag(org.ap ache.jsp.tag.web.infra.view_tag:304)
    org.apache.jsp.tag.web.message.messageView_tag.doT ag(org.apache.jsp.tag.web.message.messageView_tag: 115)
    org.apache.jsp.h.search._jspx_meth_app_messageView _0(org.apache.jsp.h.search:636)
    org.apache.jsp.h.search._jspx_meth_c_when_6(org.ap ache.jsp.h.search:612)
    org.apache.jsp.h.search._jspx_meth_c_choose_1(org. apache.jsp.h.search:457)
    org.apache.jsp.h.search._jspService(org.apache.jsp .h.search:134)
    org.apache.jasper.runtime.HttpJspBase.service(Http JspBase.java:97)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:802)
    org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:332)
    org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:314)
    org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:264)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:802)
    com.zimbra.webClient.filters.CharEncodingFilter.do Filter(CharEncodingFilter.java:45)
    com.zimbra.webClient.filters.SetHeaderFilter.doFil ter(SetHeaderFilter.java:322)

    root cause

    java.lang.IllegalArgumentException: Choice Pattern incorrect
    java.text.MessageFormat.makeFormat(MessageFormat.j ava:1427)
    java.text.MessageFormat.applyPattern(MessageFormat .java:450)
    org.apache.taglibs.standard.tag.common.fmt.Message Support.doEndTag(Unknown Source)
    org.apache.jsp.tag.web.message.displayMessage_tag. _jspx_meth_fmt_message_10(org.apache.jsp.tag.web.m essage.displayMessage_tag:1302)
    org.apache.jsp.tag.web.message.displayMessage_tag. _jspx_meth_c_if_10(org.apache.jsp.tag.web.message. displayMessage_tag:1245)
    org.apache.jsp.tag.web.message.displayMessage_tag. doTag(org.apache.jsp.tag.web.message.displayMessag e_tag:282)
    org.apache.jsp.tag.web.message.messageView_tag._js px_meth_app_displayMessage_0(org.apache.jsp.tag.we b.message.messageView_tag:213)
    org.apache.jsp.tag.web.message.messageView_tag.acc ess$6(org.apache.jsp.tag.web.message.messageView_t ag:200)
    org.apache.jsp.tag.web.message.messageView_tag$mes sageView_tagHelper.invoke1(org.apache.jsp.tag.web. message.messageView_tag:438)
    org.apache.jsp.tag.web.message.messageView_tag$mes sageView_tagHelper.invoke(org.apache.jsp.tag.web.m essage.messageView_tag:472)
    org.apache.jsp.tag.web.infra.view_tag.doTag(org.ap ache.jsp.tag.web.infra.view_tag:304)
    org.apache.jsp.tag.web.message.messageView_tag.doT ag(org.apache.jsp.tag.web.message.messageView_tag: 115)
    org.apache.jsp.h.search._jspx_meth_app_messageView _0(org.apache.jsp.h.search:636)
    org.apache.jsp.h.search._jspx_meth_c_when_6(org.ap ache.jsp.h.search:612)
    org.apache.jsp.h.search._jspx_meth_c_choose_1(org. apache.jsp.h.search:457)
    org.apache.jsp.h.search._jspService(org.apache.jsp .h.search:134)
    org.apache.jasper.runtime.HttpJspBase.service(Http JspBase.java:97)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:802)
    org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:332)
    org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:314)
    org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:264)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:802)
    com.zimbra.webClient.filters.CharEncodingFilter.do Filter(CharEncodingFilter.java:45)
    com.zimbra.webClient.filters.SetHeaderFilter.doFil ter(SetHeaderFilter.java:322)

    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.15 logs.
    Apache Tomcat/5.5.15

    And when I try to open again don't display nothing. The logs don't show any error.

    With advanced client all work perfect.

    Thanks in advance.

    Daniel Bauza
    Last edited by dbc; 07-19-2007 at 04:01 AM.

  2. #2
    schemers is offline Zimbra Employee
    Join Date
    Aug 2005
    Posts
    228
    Rep Power
    10

    Default

    Hello. As far as I can tell, that exception is happening in displayMessage.tag at:

    Code:
     <app:img src="common/Attachment.gif" altkey="ALT_ATTACHMENT"/>
     <fmt:message key="attachmentCount">
          <fmt:param value="${message.numberOfAttachments}"/>
     </fmt:message>
    This is where it would normally display an attachment icon to the right of the subject, along with a count like "1 attachment" or "2 attachments".

    Are you by chance using a non-english message property file or have you made any changes to ZhMsg.properties? I'm wondering if maybe someone mis-translated the "attachmentCount" property in that file.
    Last edited by schemers; 07-18-2007 at 11:39 AM.
    Bugzilla - Wiki - Downloads - Before posting... Search!

  3. #3
    dbc
    dbc is offline Starter Member
    Join Date
    Jul 2007
    Posts
    2
    Rep Power
    8

    Thumbs up Solved

    Hello schemers,

    I applyed this for spanish language:

    AjxKeys_es.properties
    AjxMsg_es.properties
    ZhMsg_es.properties
    ZmKeys_es.properties
    ZmMsg_es.properties
    ZsMsg_es.properties

    In ZhMsg_es.properties the attachmentCount is:
    attachmentCount = {0,choice,0#no hay ficheros adjuntos|1#{0,number,integer} fichero adjunto|<{0,number,integer} ficheros adjuntos}

    In ZhMsg.properties version:
    attachmentCount = {0,choice,0#no attachments|1#{0,number,integer} attachment|1<{0,number,integer} attachments}

    The problem solved adding the number "1" to ZhMsg_es.properties.

    Thank you.
    Last edited by dbc; 07-19-2007 at 04:05 AM.

  4. #4
    inigoml's Avatar
    inigoml is offline Project Contributor
    Join Date
    Aug 2006
    Location
    Madrid, Spain
    Posts
    124
    Rep Power
    9

    Default

    Quote Originally Posted by dbc View Post
    Hello schemers,
    In ZhMsg_es.properties the attachmentCount is:
    attachmentCount = {0,choice,0#no hay ficheros adjuntos|1#{0,number,integer} fichero adjunto|<{0,number,integer} ficheros adjuntos}
    Thank you. I've updated subversion with your fix, so next time you update you will not find this error.
    Sorry for the delay, but since zimbra team took control over translations I've not updated anything in SVN.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 12
    Last Post: 08-25-2010, 02:37 AM
  2. Forwarding, and forwarding as Attachments
    By gfdos.sys in forum Users
    Replies: 4
    Last Post: 06-06-2007, 07:22 AM
  3. Moving from Outlook to Zimbra Web Client (OSE)
    By soxfan in forum Administrators
    Replies: 7
    Last Post: 05-17-2007, 03:37 AM
  4. Web client logon fails (INVALID_PDU)
    By jermxx in forum Installation
    Replies: 8
    Last Post: 02-20-2007, 02:20 PM
  5. Replies: 2
    Last Post: 10-19-2006, 10:26 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
  •