java.lang.NullPointerException

Hibernate JIRA | Andrey Panasyuk | 2 years ago
  1. 0

    JPQL query: "from UserProfile p where p.address.city = 'abc'" Please use CouchTest in the attached project to reproduce the issue. test5FindJPQL(by.defascathibernate.ogm.test.CouchTest) Time elapsed: 3.264 sec <<< ERROR! java.lang.NullPointerException at org.hibernate.hql.lucene.internal.builder.ClassBasedLucenePropertyHelper.getFieldBridge(ClassBasedLucenePropertyHelper.java:69) at org.hibernate.hql.lucene.internal.builder.LucenePropertyHelper.convertToPropertyType(LucenePropertyHelper.java:60) at org.hibernate.hql.ast.spi.SingleEntityQueryBuilder.addComparisonPredicate(SingleEntityQueryBuilder.java:83) at org.hibernate.hql.ast.spi.SingleEntityQueryRendererDelegate.addComparisonPredicate(SingleEntityQueryRendererDelegate.java:231) at org.hibernate.hql.ast.spi.SingleEntityQueryRendererDelegate.predicateEquals(SingleEntityQueryRendererDelegate.java:209) at org.hibernate.hql.ast.render.QueryRenderer.predicate(QueryRenderer.java:5197) at org.hibernate.hql.ast.render.QueryRenderer.searchCondition(QueryRenderer.java:4871) at org.hibernate.hql.ast.render.QueryRenderer.whereClause(QueryRenderer.java:2347) at org.hibernate.hql.ast.render.QueryRenderer.querySpec(QueryRenderer.java:2202) at org.hibernate.hql.ast.render.QueryRenderer.queryExpression(QueryRenderer.java:2105) at org.hibernate.hql.ast.render.QueryRenderer.queryStatement(QueryRenderer.java:1744) at org.hibernate.hql.ast.render.QueryRenderer.queryStatementSet(QueryRenderer.java:1657) at org.hibernate.hql.ast.render.QueryRenderer.statement(QueryRenderer.java:653) at org.hibernate.hql.ast.spi.QueryRendererProcessor.process(QueryRendererProcessor.java:51) at org.hibernate.hql.QueryParser.parseQuery(QueryParser.java:82) at org.hibernate.ogm.query.impl.FullTextSearchQueryTranslator.getLuceneQuery(FullTextSearchQueryTranslator.java:106) at org.hibernate.ogm.query.impl.FullTextSearchQueryTranslator.list(FullTextSearchQueryTranslator.java:77) at org.hibernate.engine.query.spi.HQLQueryPlan.performList(HQLQueryPlan.java:236) at org.hibernate.internal.SessionImpl.list(SessionImpl.java:1264) at org.hibernate.internal.QueryImpl.list(QueryImpl.java:103) at org.hibernate.jpa.internal.QueryImpl.list(QueryImpl.java:573) at org.hibernate.jpa.internal.QueryImpl.getResultList(QueryImpl.java:449) at by.defascathibernate.ogm.test.BasicTest.test5FindJPQL(BasicTest.java:48) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    Hibernate JIRA | 2 years ago | Andrey Panasyuk
    java.lang.NullPointerException
  2. 0

    JPQL query: "from UserProfile p where p.address.city = 'abc'" Please use CouchTest in the attached project to reproduce the issue. test5FindJPQL(by.defascathibernate.ogm.test.CouchTest) Time elapsed: 3.264 sec <<< ERROR! java.lang.NullPointerException at org.hibernate.hql.lucene.internal.builder.ClassBasedLucenePropertyHelper.getFieldBridge(ClassBasedLucenePropertyHelper.java:69) at org.hibernate.hql.lucene.internal.builder.LucenePropertyHelper.convertToPropertyType(LucenePropertyHelper.java:60) at org.hibernate.hql.ast.spi.SingleEntityQueryBuilder.addComparisonPredicate(SingleEntityQueryBuilder.java:83) at org.hibernate.hql.ast.spi.SingleEntityQueryRendererDelegate.addComparisonPredicate(SingleEntityQueryRendererDelegate.java:231) at org.hibernate.hql.ast.spi.SingleEntityQueryRendererDelegate.predicateEquals(SingleEntityQueryRendererDelegate.java:209) at org.hibernate.hql.ast.render.QueryRenderer.predicate(QueryRenderer.java:5197) at org.hibernate.hql.ast.render.QueryRenderer.searchCondition(QueryRenderer.java:4871) at org.hibernate.hql.ast.render.QueryRenderer.whereClause(QueryRenderer.java:2347) at org.hibernate.hql.ast.render.QueryRenderer.querySpec(QueryRenderer.java:2202) at org.hibernate.hql.ast.render.QueryRenderer.queryExpression(QueryRenderer.java:2105) at org.hibernate.hql.ast.render.QueryRenderer.queryStatement(QueryRenderer.java:1744) at org.hibernate.hql.ast.render.QueryRenderer.queryStatementSet(QueryRenderer.java:1657) at org.hibernate.hql.ast.render.QueryRenderer.statement(QueryRenderer.java:653) at org.hibernate.hql.ast.spi.QueryRendererProcessor.process(QueryRendererProcessor.java:51) at org.hibernate.hql.QueryParser.parseQuery(QueryParser.java:82) at org.hibernate.ogm.query.impl.FullTextSearchQueryTranslator.getLuceneQuery(FullTextSearchQueryTranslator.java:106) at org.hibernate.ogm.query.impl.FullTextSearchQueryTranslator.list(FullTextSearchQueryTranslator.java:77) at org.hibernate.engine.query.spi.HQLQueryPlan.performList(HQLQueryPlan.java:236) at org.hibernate.internal.SessionImpl.list(SessionImpl.java:1264) at org.hibernate.internal.QueryImpl.list(QueryImpl.java:103) at org.hibernate.jpa.internal.QueryImpl.list(QueryImpl.java:573) at org.hibernate.jpa.internal.QueryImpl.getResultList(QueryImpl.java:449) at by.defascathibernate.ogm.test.BasicTest.test5FindJPQL(BasicTest.java:48) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    Hibernate JIRA | 2 years ago | Andrey Panasyuk
    java.lang.NullPointerException
  3. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.hibernate.hql.lucene.internal.builder.ClassBasedLucenePropertyHelper.getFieldBridge()
    2. Hibernate HQL/JP-QL Walker for Lucene
      LucenePropertyHelper.convertToPropertyType
      1. org.hibernate.hql.lucene.internal.builder.ClassBasedLucenePropertyHelper.getFieldBridge(ClassBasedLucenePropertyHelper.java:69)
      2. org.hibernate.hql.lucene.internal.builder.LucenePropertyHelper.convertToPropertyType(LucenePropertyHelper.java:60)
      2 frames
    3. Hibernate HQL/JP-QL Parser
      QueryParser.parseQuery
      1. org.hibernate.hql.ast.spi.SingleEntityQueryBuilder.addComparisonPredicate(SingleEntityQueryBuilder.java:83)
      2. org.hibernate.hql.ast.spi.SingleEntityQueryRendererDelegate.addComparisonPredicate(SingleEntityQueryRendererDelegate.java:231)
      3. org.hibernate.hql.ast.spi.SingleEntityQueryRendererDelegate.predicateEquals(SingleEntityQueryRendererDelegate.java:209)
      4. org.hibernate.hql.ast.render.QueryRenderer.predicate(QueryRenderer.java:5197)
      5. org.hibernate.hql.ast.render.QueryRenderer.searchCondition(QueryRenderer.java:4871)
      6. org.hibernate.hql.ast.render.QueryRenderer.whereClause(QueryRenderer.java:2347)
      7. org.hibernate.hql.ast.render.QueryRenderer.querySpec(QueryRenderer.java:2202)
      8. org.hibernate.hql.ast.render.QueryRenderer.queryExpression(QueryRenderer.java:2105)
      9. org.hibernate.hql.ast.render.QueryRenderer.queryStatement(QueryRenderer.java:1744)
      10. org.hibernate.hql.ast.render.QueryRenderer.queryStatementSet(QueryRenderer.java:1657)
      11. org.hibernate.hql.ast.render.QueryRenderer.statement(QueryRenderer.java:653)
      12. org.hibernate.hql.ast.spi.QueryRendererProcessor.process(QueryRendererProcessor.java:51)
      13. org.hibernate.hql.QueryParser.parseQuery(QueryParser.java:82)
      13 frames
    4. Hibernate Object Grid Mapper
      FullTextSearchQueryTranslator.list
      1. org.hibernate.ogm.query.impl.FullTextSearchQueryTranslator.getLuceneQuery(FullTextSearchQueryTranslator.java:106)
      2. org.hibernate.ogm.query.impl.FullTextSearchQueryTranslator.list(FullTextSearchQueryTranslator.java:77)
      2 frames
    5. Hibernate
      QueryImpl.list
      1. org.hibernate.engine.query.spi.HQLQueryPlan.performList(HQLQueryPlan.java:236)
      2. org.hibernate.internal.SessionImpl.list(SessionImpl.java:1264)
      3. org.hibernate.internal.QueryImpl.list(QueryImpl.java:103)
      3 frames
    6. org.hibernate.jpa
      QueryImpl.getResultList
      1. org.hibernate.jpa.internal.QueryImpl.list(QueryImpl.java:573)
      2. org.hibernate.jpa.internal.QueryImpl.getResultList(QueryImpl.java:449)
      2 frames
    7. by.defascathibernate.ogm
      BasicTest.test5FindJPQL
      1. by.defascathibernate.ogm.test.BasicTest.test5FindJPQL(BasicTest.java:48)
      1 frame
    8. Java RT
      NativeMethodAccessorImpl.invoke0
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      1 frame