Uploaded image for project: 'Hibernate ORM'
  1. Hibernate ORM
  2. HHH-11529

Getting NullPointerException from ScanningCoordinator debug log

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.2.8
    • Fix Version/s: 5.2.9
    • Component/s: hibernate-core
    • Labels:
      None

      Description

      Error happens when root url is null (which is a valid value):

      {{ log.debugf(
      "Unable to resolve class [%s] named in persistence unit [%s]",
      unresolvedListedClassName,
      scanEnvironment.getRootUrl().toExternalForm()
      );
      }}
      Stack trace:

      {{Caused by: java.lang.NullPointerException
      at org.hibernate.boot.model.process.internal.ScanningCoordinator.applyScanResultsToManagedResources(ScanningCoordinator.java:274)
      at org.hibernate.boot.model.process.internal.ScanningCoordinator.coordinateScan(ScanningCoordinator.java:81)
      at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.prepare(MetadataBuildingProcess.java:98)
      at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.<init>(EntityManagerFactoryBuilderImpl.java:228)
      at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.<init>(EntityManagerFactoryBuilderImpl.java:163)
      at play.db.jpa.JPAPlugin.newEntityManagerFactory(JPAPlugin.java:202)
      at play.db.jpa.JPAPlugin.onApplicationStart(JPAPlugin.java:151)
      at play.plugins.PluginCollection.onApplicationStart(PluginCollection.java:616)
      at play.Play.start(Play.java:541)
      }}

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: