Uploaded image for project: 'Hibernate Search'
  1. HSEARCH-3339

@SpatialBridge in "contained" entity triggers exception at bootstrap

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.10.1.Final, 5.9.2.Final, 5.6.5.Final
    • Component/s: engine
    • Labels:
      None

      Description

      We usually skip bridge creation for contained type. We should probably do the same for spatial bridges.

      Caused by: org.hibernate.search.exception.SearchException: HSEARCH000306: Index manager type is required to build a field bridge for coordinate in org.hibernate.search.spatial.Coordinates
          at org.hibernate.search.bridge.impl.BridgeFactory.buildFieldBridge(BridgeFactory.java:200) ~[hibernate-search-engine-5.9.2.Final.jar:5.9.2.Final]
          at org.hibernate.search.bridge.impl.BridgeFactory.buildFieldBridge(BridgeFactory.java:185) ~[hibernate-search-engine-5.9.2.Final.jar:5.9.2.Final]
          at org.hibernate.search.engine.metadata.impl.AnnotationMetadataProvider.bindSpatialAnnotation(AnnotationMetadataProvider.java:812) ~[hibernate-search-engine-5.9.2.Final.jar:5.9.2.Final]
          at org.hibernate.search.engine.metadata.impl.AnnotationMetadataProvider.checkForSpatial(AnnotationMetadataProvider.java:1649) ~[hibernate-search-engine-5.9.2.Final.jar:5.9.2.Final]
          at org.hibernate.search.engine.metadata.impl.AnnotationMetadataProvider.initializeMemberLevelAnnotations(AnnotationMetadataProvider.java:1061) ~[hibernate-search-engine-5.9.2.Final.jar:5.9.2.Final]
          at org.hibernate.search.engine.metadata.impl.AnnotationMetadataProvider.initializeClass(AnnotationMetadataProvider.java:599) ~[hibernate-search-engine-5.9.2.Final.jar:5.9.2.Final]
          at org.hibernate.search.engine.metadata.impl.AnnotationMetadataProvider.doGetTypeMetadataFor(AnnotationMetadataProvider.java:192) ~[hibernate-search-engine-5.9.2.Final.jar:5.9.2.Final]
          at org.hibernate.search.engine.metadata.impl.AnnotationMetadataProvider.getTypeMetadataForContainedIn(AnnotationMetadataProvider.java:159) ~[hibernate-search-engine-5.9.2.Final.jar:5.9.2.Final]
          at org.hibernate.search.spi.SearchIntegratorBuilder.initDocumentBuilders(SearchIntegratorBuilder.java:401) ~[hibernate-search-engine-5.9.2.Final.jar:5.9.2.Final]
          at org.hibernate.search.spi.SearchIntegratorBuilder.createNewFactoryState(SearchIntegratorBuilder.java:244) ~[hibernate-search-engine-5.9.2.Final.jar:5.9.2.Final]
          at org.hibernate.search.spi.SearchIntegratorBuilder.buildNewSearchFactory(SearchIntegratorBuilder.java:200) ~[hibernate-search-engine-5.9.2.Final.jar:5.9.2.Final]
          at org.hibernate.search.spi.SearchIntegratorBuilder.buildSearchIntegrator(SearchIntegratorBuilder.java:128) ~[hibernate-search-engine-5.9.2.Final.jar:5.9.2.Final]
          at org.hibernate.search.hcore.impl.HibernateSearchSessionFactoryObserver.boot(HibernateSearchSessionFactoryObserver.java:113) ~[hibernate-search-orm-5.9.2.Final.jar:5.9.2.Final]
          at org.hibernate.search.hcore.impl.HibernateSearchSessionFactoryObserver.sessionFactoryCreated(HibernateSearchSessionFactoryObserver.java:79) ~[hibernate-search-orm-5.9.2.Final.jar:5.9.2.Final]
          at org.hibernate.internal.SessionFactoryObserverChain.sessionFactoryCreated(SessionFactoryObserverChain.java:35) ~[hibernate-core-5.2.17.Final.jar:5.2.17.Final]
          at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:374) ~[hibernate-core-5.2.17.Final.jar:5.2.17.Final]
          at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:462) ~[hibernate-core-5.2.17.Final.jar:5.2.17.Final]
          at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:892) ~[hibernate-core-5.2.17.Final.jar:5.2.17.Final]
      

      Source: https://discourse.hibernate.org/t/index-manager-type-is-required/1357

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                yrodiere Yoann Rodière
                Reporter:
                yrodiere Yoann Rodière
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: