You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Jason Gerlowski (JIRA)" <ji...@apache.org> on 2019/04/09 21:14:00 UTC

[jira] [Resolved] (SOLR-13377) NestableJsonFacet ClassCastException in SolrJ 7.6+

     [ https://issues.apache.org/jira/browse/SOLR-13377?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jason Gerlowski resolved SOLR-13377.
------------------------------------
    Resolution: Duplicate

Hi Owen, thanks for reporting.  We're already tracking (and working on this issue) under SOLR-13318, so I'm going to close this copy out as a duplicate.  Feel free to continue the discussion over there.

> NestableJsonFacet ClassCastException in SolrJ 7.6+
> --------------------------------------------------
>
>                 Key: SOLR-13377
>                 URL: https://issues.apache.org/jira/browse/SOLR-13377
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: SolrJ
>    Affects Versions: 7.6, 7.7, 7.7.1
>            Reporter: Owen Clarke
>            Priority: Major
>         Attachments: SOLR-13377.patch
>
>
> Identified by Gerald Bonfiglio on the mailing list: [http://mail-archives.apache.org/mod_mbox/lucene-solr-user/201903.mbox/%3C2B629E99E8E563409788D895FACA8198AA754A96%40mbx031-w1-co-4.exch031.domain.local%3E]
> I have also encountered this issue where NestableJsonFacet occasionally receives the facet count as a Long value but blindly casts to int when assigning to domainCount, causing a ClassCastExcption. I have a fix to instead check if the count value is instanceof Number, then use Number.longValue() to safely unbox to long.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org