Bug 1281537 - [GSS](6.4.z) PersistenceRefProcessor.getPersistenceUnitBindingSource can throw NullPointerException
Summary: [GSS](6.4.z) PersistenceRefProcessor.getPersistenceUnitBindingSource can thro...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: JPA
Version: 6.4.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: CR1
: EAP 6.4.11
Assignee: jboss-set
QA Contact: Martin Simka
URL:
Whiteboard:
Depends On:
Blocks: eap6411-payload
TreeView+ depends on / blocked
 
Reported: 2015-11-12 17:09 UTC by Mike
Modified: 2019-09-12 09:17 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-01-17 13:13:23 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Mike 2015-11-12 17:09:18 UTC
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.

Comment 5 Mike McCune 2016-03-28 22:32:18 UTC
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions

Comment 7 Jiří Bílek 2016-10-07 11:00:05 UTC
Verified with EAP 6.4.11.CP.CR1

Comment 8 Petr Penicka 2017-01-17 13:13:23 UTC
Retroactively bulk-closing issues from released EAP 6.4 cummulative patches.

Comment 9 Petr Penicka 2017-01-17 13:15:10 UTC
Retroactively bulk-closing issues from released EAP 6.4 cumulative patches.


Note You need to log in before you can comment on or make changes to this bug.