IBM Support

JR55175: exists(query()) Solr function throws NullPointerException

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Solr queries that use the "exists" function throws
    NullPointerException.
    
    For example, the following query:
    ================================================================
    http://solrhostserver:3737/solr/MC_10001_CatalogEntry_en_US/sele
    ct?q=*&defType=edismax&boost=sum(1,product(INV_COUNT,0.01),produ
    ct(AVAILABILITY,0.01),if(exists(query({!v=%27ads_f11503:fashion%
    27})),0.01,0)))
    ================================================================
    
    causes a NullPointerException error:
    ================================================================
    java.lang.NullPointerException at
    com.ibm.commerce.foundation.internal.server.services.search.pars
    er.solr.SolrSearchExtensionFunctionQParser.parseNestedQuery(Solr
    SearchExtensionFunctionQParser.java:231)
    at
    org.apache.solr.search.ValueSourceParser$20.parse(ValueSourcePar
    ser.java:277)
    ================================================================
    

Local fix

Problem summary

  • USERS AFFECTED:
    WebSphere Commerce Version 7 Feature Pack 8.
    
    PROBLEM ABSTRACT:
    exists(query()) Solr function throws NullPointerException
    
    BUSINESS IMPACT:
    Storefront becomes unavailable for the shopper.
    
    RECOMMENDATION:
    

Problem conclusion

  • Updated the "exists" function to be usable with the Search
    runtime.
    

Temporary fix

Comments

APAR Information

  • APAR number

    JR55175

  • 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

    2016-01-26

  • Closed date

    2016-02-22

  • Last modified date

    2016-02-22

  • 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:
12 December 2021