Red Hat Bugzilla – Bug 1281537
[GSS](6.4.z) PersistenceRefProcessor.getPersistenceUnitBindingSource can throw NullPointerException
Last modified: 2017-01-17 08:15:10 EST
In PersistenceRefProcessor the getPersistenceUnitBindingSource method calls PersistenceUnitSearch.resolvePersistenceUnitSupplier to retrieve a PersistenceUnitMetadata object. It then without checking for null, dereferences that object to get the scoped persistent unit name.
However, resolvePersistenceUnitSupplier through its call to findPersistenceUnitSupplier can return a null value.
When this happens NullPointerException is thrown rather than DeploymentUnitProcessingException as would be expected.
This is fixed upstream at https://github.com/wildfly/wildfly/blob/master/jpa/subsystem/src/main/java/org/jboss/as/jpa/processor/PersistenceRefProcessor.java#L211 (also see WFLY-1994).
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see email@example.com with any questions
Verified with EAP 6.4.11.CP.CR1
Retroactively bulk-closing issues from released EAP 6.4 cummulative patches.
Retroactively bulk-closing issues from released EAP 6.4 cumulative patches.