IBM Support

JR58264: Lexical error (syntax error) when parsing valid Solr query

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • This APAR is a duplicate of IT20794.
    
    Search request fails with following exception:
    
    AbstractBaseR E
    com.ibm.commerce.foundation.rest.resourcehandler.AbstractBaseRes
    ourceHandler
    handleException(String, Exception, String) Caught unexpected
    exception, error is: {errors=[{errorCode=CWXFR0230E,
    errorKey=ERR_INTERNAL_SERVER_ERROR, errorLevel=SEVERE,
    errorMessage=CWXFR0230E: Internal server error. Details will be
    stored within
    the server logs.}]}
    
    com.ibm.commerce.foundation.internal.common.exception.Foundation
    ApplicationException: An error has
    occurred.  If this problem persists, contact product support.
        at
    com.ibm.commerce.foundation.server.services.search.SearchService
    Facade.performSearch(SearchServiceFacade.java:200)
        at
    com.ibm.commerce.rest.search.handler.v2_0.AbstractSearchResource
    Handler.executeSearch(AbstractSearchResourceHandler.java:480)
        at
    com.ibm.commerce.rest.search.handler.v2_0.AbstractSearchResource
    Handler.performSearch(AbstractSearchResourceHandler.java:311)
        at
    com.ibm.commerce.rest.search.handler.v2_0.ProductViewHandler.fin
    dProductsBySearchTerm(ProductViewHandler.java:442)
        ...
    Caused by: org.apache.solr.parser.TokenMgrError: Lexical error
    at line 1, column 2.  Encountered: "\"" (34), after : "\""
        at
    org.apache.solr.parser.QueryParserTokenManager.getNextToken(Quer
    yParserTokenManager.java:1197)
        at
    org.apache.solr.parser.QueryParser.jj_ntk(QueryParser.java:579)
        at
    org.apache.solr.parser.QueryParser.Modifiers(QueryParser.java:62
    )
        at
    org.apache.solr.parser.QueryParser.Query(QueryParser.java:106)
        at
    org.apache.solr.parser.QueryParser.TopLevelQuery(QueryParser.jav
    a:96)
        at
    org.apache.solr.parser.SolrQueryParserBase.parse(SolrQueryParser
    Base.java:152)
        at
    org.apache.solr.search.ExtendedDismaxQParser.addShingledPhraseQu
    eries(ExtendedDismaxQParser.java:554)
        at
    org.apache.solr.search.ExtendedDismaxQParser.addPhraseFieldQueri
    es(ExtendedDismaxQParser.java:223)
        at
    org.apache.solr.search.ExtendedDismaxQParser.parse(ExtendedDisma
    xQParser.java:164)
        at org.apache.solr.search.QParser.getQuery(QParser.java:141)
        at
    org.apache.solr.handler.component.QueryComponent.prepare(QueryCo
    mponent.java:143)
        at
    com.ibm.commerce.foundation.internal.server.services.search.comp
    onent.solr.SolrSearchMultipleQueryComponent.prepare(SolrSearchMu
    ltip
    eQueryComponent.java:818)
    

Local fix

Problem summary

  • USERS AFFECTED:
    WebSphere Commerce Version 7 Feature Pack 8.
    
    PROBLEM ABSTRACT:
    Lexical error (syntax error) when parsing valid Solr query
    
    BUSINESS IMPACT:
    REST search requests return error.
    
    RECOMMENDATION:
    

Problem conclusion

  • If there is quotas around the search keyword, then in the "pf"
    field will be removed from Solr query.
    

Temporary fix

Comments

APAR Information

  • APAR number

    JR58264

  • Reported component name

    WC BUS EDITION

  • Reported component ID

    5724I3800

  • Reported release

    700

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2017-08-08

  • Closed date

    2018-06-28

  • Last modified date

    2018-06-28

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    WC BUS EDITION

  • Fixed component ID

    5724I3800

Applicable component levels

  • R700 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSYSYL","label":"WebSphere Commerce Enterprise"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.0","Line of Business":{"code":"LOB31","label":"WCE Watson Marketing and Commerce"}}]

Document Information

Modified date:
11 December 2021