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

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 07-18-2007, 03:59 AM
dbc dbc is offline
Starter Member
 
Posts: 2
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 05:01 AM..
Reply With Quote
  #2 (permalink)  
Old 07-18-2007, 12:28 PM
Zimbra Employee
 
Posts: 228
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.
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!

Last edited by schemers; 07-18-2007 at 12:39 PM..
Reply With Quote
  #3 (permalink)  
Old 07-19-2007, 04:48 AM
dbc dbc is offline
Starter Member
 
Posts: 2
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 05:05 AM..
Reply With Quote
  #4 (permalink)  
Old 10-05-2007, 03:14 PM
Project Contributor
 
Posts: 116
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.
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.