java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Exception from [FSH-5283|https://support.atlassian.com/browse/FSH-5283]: {noformat} 08:37:31 ERROR - org.hibernate.hql.ast.QuerySyntaxException: unexpected AST node: query [select review from com.cenqua.crucible.model.Review review join review.project proj where () and ( (lower(review.name) like '%trm-34944%' or lower(review.description) like '%trm-34944%' or lower(proj.projKey) like '%trm-34944%' )) and review.stateName <> 'Dead' order by review.id desc] Feb 21, 2011 8:37:31 AM com.sun.jersey.server.impl.application.WebApplicationImpl onException SEVERE: Internal server error java.lang.NullPointerException at java.util.LinkedList.addAll(Unknown Source) at java.util.LinkedList.addAll(Unknown Source) at java.util.LinkedList.<init>(Unknown Source) at com.atlassian.crucible.spi.impl.DefaultSearchService.searchForReviews(DefaultSearchService.java:37) {noformat} This is because of two problems: - the HQL query is malformed because of the empty parenthesis in the {{where}} clause ("{{where ()}}"): {code:sql} select review from com.cenqua.crucible.model.Review review join review.project proj where () and ( (lower(review.name) like '%trm-34944%' or lower(review.description) like '%trm-34944%' or lower(proj.projKey) like '%trm-34944%' )) and review.stateName <> 'Dead' order by review.id desc {code} - any exception causes _DefaultReviewManager#searchReviewForTerms()_ to return a {{null}} instead of an empty collection (regression created in CRUC-3617)
    via by Pierre-Etienne Poirot [Atlassian],
  • Exception from [FSH-5283|https://support.atlassian.com/browse/FSH-5283]: {noformat} 08:37:31 ERROR - org.hibernate.hql.ast.QuerySyntaxException: unexpected AST node: query [select review from com.cenqua.crucible.model.Review review join review.project proj where () and ( (lower(review.name) like '%trm-34944%' or lower(review.description) like '%trm-34944%' or lower(proj.projKey) like '%trm-34944%' )) and review.stateName <> 'Dead' order by review.id desc] Feb 21, 2011 8:37:31 AM com.sun.jersey.server.impl.application.WebApplicationImpl onException SEVERE: Internal server error java.lang.NullPointerException at java.util.LinkedList.addAll(Unknown Source) at java.util.LinkedList.addAll(Unknown Source) at java.util.LinkedList.<init>(Unknown Source) at com.atlassian.crucible.spi.impl.DefaultSearchService.searchForReviews(DefaultSearchService.java:37) {noformat} This is because of two problems: - the HQL query is malformed because of the empty parenthesis in the {{where}} clause ("{{where ()}}"): {code:sql} select review from com.cenqua.crucible.model.Review review join review.project proj where () and ( (lower(review.name) like '%trm-34944%' or lower(review.description) like '%trm-34944%' or lower(proj.projKey) like '%trm-34944%' )) and review.stateName <> 'Dead' order by review.id desc {code} - any exception causes _DefaultReviewManager#searchReviewForTerms()_ to return a {{null}} instead of an empty collection (regression created in CRUC-3617)
    via by Pierre-Etienne Poirot [Atlassian],
  • Not able to instrument classes
    via GitHub by Ashwinsai
    ,
  • GitHub comment 28#225774357
    via GitHub by Ashwinsai
    ,
  • Problem in JHSDEMOs
    via by Sdnelson-Oracle,
  • Critical Section
    via by 701498,
    • java.lang.NullPointerException at java.util.LinkedList.addAll(Unknown Source) at java.util.LinkedList.addAll(Unknown Source) at java.util.LinkedList.<init>(Unknown Source) at com.atlassian.crucible.spi.impl.DefaultSearchService.searchForReviews(DefaultSearchService.java:37)

    Users with the same issue

    Handemelindo
    1 times, last one,