Uploaded image for project: 'Spring Data Commons'
  1. Spring Data Commons
  2. DATACMNS-1201

ClassGeneratingPropertyAccessorFactory.isTypeInjectable(…) fails with NPE for entities in default packages

    XMLWordPrintable

    Details

      Description

      Introspecting ClassGeneratingPropertyAccessorFactory support for an entity fails with an NPE if the entity resides in the default package.

      java.lang.NullPointerException
      at org.springframework.data.mapping.model.ClassGeneratingPropertyAccessorFactory.isTypeInjectable(ClassGeneratingPropertyAccessorFactory.java:136)
      at org.springframework.data.mapping.model.ClassGeneratingPropertyAccessorFactory.isSupported(ClassGeneratingPropertyAccessorFactory.java:122)
      at org.springframework.data.mapping.context.AbstractMappingContext.addPersistentEntity(AbstractMappingContext.java:396)
      at org.springframework.data.mapping.context.AbstractMappingContext.getPersistentEntity(AbstractMappingContext.java:227)
      at org.springframework.data.mapping.context.AbstractMappingContext.getPersistentEntity(AbstractMappingContext.java:172)
      at org.springframework.data.mapping.context.AbstractMappingContext.getPersistentEntity(AbstractMappingContext.java:85)
      at org.springframework.data.mapping.context.MappingContext.getRequiredPersistentEntity(MappingContext.java:70)
      at org.springframework.data.mongodb.core.ReactiveMongoTemplate.lambda$doInsertAll$22(ReactiveMongoTemplate.java:1043)
      

        Attachments

          Activity

            People

            Assignee:
            mp911de Mark Paluch
            Reporter:
            mp911de Mark Paluch
            Last updater:
            Oliver Drotbohm
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: