Fix the error mail.QUERY PARSE ERROR parserErr, STR, "Encountered "EOF"

Fix the error mail.QUERY PARSE ERROR parserErr, STR, "Encountered "<EOF>"

   KB 21951        Last updated on 07/11/2015  




0.00
(0 votes)

Purpose

Fix an error when a user is login into the Web Client obtaining a popup error with the next message:

Kb-fix error-search.png

In the mailbox.log you will find the next information:

2015-05-07 09:28:25,937 INFO  [qtp509886383-3550:https://YOURIP:8443/ser
vice/soap/SearchRequest] [name=THEEMAILADDRESS@OFTHE.USER;mid=31;ip=CLIENTIP;u
a=ZimbraWebClient - GC42 (Mac)/8.6.0_GA_1153;] SoapEngine - handler exception
com.zimbra.cs.mailbox.MailServiceException: Couldn't parse query: in:
ExceptionId:qtp509886383-3550:https://208.71.113.120:8443/service/soap/SearchRequest:1430990905937:2d86683ef45c06b8
Code:mail.QUERY_PARSE_ERROR Arg:(curTok, STR, "in:") Arg:(colNo, NUM, "1") Arg:(parserErr, STR, "Encountered "<EOF>" at line 1, column 3.
Was expecting one of:
    "(" ...
    <TERM> ...
    <QUOTED_TERM> ...
    ")
...

Caused by: com.zimbra.cs.index.query.parser.ParseException: Encountered "<EOF>" at line 1, column 3.
Was expecting one of:
    "(" ...
    <TERM> ...
    <QUOTED_TERM> ...
    
        at com.zimbra.cs.index.query.parser.Parser.generateParseException(Parser.java:1213)
        at com.zimbra.cs.index.query.parser.Parser.jj_consume_token(Parser.java:1145)
        at com.zimbra.cs.index.query.parser.Parser.TextTerm(Parser.java:793)
        at com.zimbra.cs.index.query.parser.Parser.TextClause(Parser.java:364)
        at com.zimbra.cs.index.query.parser.Parser.Clause(Parser.java:279)
        at com.zimbra.cs.index.query.parser.Parser.Query(Parser.java:94)
        at com.zimbra.cs.index.query.parser.Parser.parse(Parser.java:30)
        at com.zimbra.cs.index.query.parser.QueryParser.parse(QueryParser.java:302)
        ... 56 more


Resolution

This is a common mistake that any user in the Web Client can have, if the users change the Search path for an invalid value, this wrong configuration will generate this bug, for example: Under Preferences > Mail > Displaying messages > Default Mail Search

Kb-fix error-search-002.png

You need to remove the value and restore it for in:inbox, or just keep it clear, and will take the COS value:

Kb-fix error-search-003.png

Additional Content

  • For detailed explanations of and corrections for the mistakes listed above, please refer to the Tips & Tricks blog.


Verified Against: Zimbra Collaboration 8.6, 8.5, 8.0 Date Created: 05/07/2015
Article ID: https://wiki.zimbra.com/index.php?title=Fix_the_error_mail.QUERY_PARSE_ERROR_parserErr,_STR,_%22Encountered_%22EOF%22 Date Modified: 07/11/2015



Try Zimbra

Try Zimbra Collaboration with a 60-day free trial.
Get it now »

Want to get involved?

You can contribute in the Community, Wiki, Code, or development of Zimlets.
Find out more. »

Looking for a Video?

Visit our YouTube channel to get the latest webinars, technology news, product overviews, and so much more.
Go to the YouTube channel »


Wiki/KB reviewed by Jorge SME2 Copyeditor Last edit by Jorge de la Cruz
Jump to: navigation, search