[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-1798) EntityManagerProxy#getDelegate throws a NPE
Pete Muir (JIRA)
jira-events at lists.jboss.org
Mon Aug 13 17:09:00 EDT 2007
[ http://jira.jboss.com/jira/browse/JBSEAM-1798?page=comments#action_12371922 ]
Pete Muir commented on JBSEAM-1798:
-----------------------------------
This occurs because EntityManagerProxy uses PersistenceProvider.instance().proxyDelegate(), and persistenceProvider isn't installed unless a managedPersistenceContext is. I'm not entirely sure whether this dependency on managedPersistenceContext is necessary. Gavin?
> EntityManagerProxy#getDelegate throws a NPE
> -------------------------------------------
>
> Key: JBSEAM-1798
> URL: http://jira.jboss.com/jira/browse/JBSEAM-1798
> Project: JBoss Seam
> Issue Type: Bug
> Affects Versions: 2.0.0.BETA1
> Environment: Seam CVS 2007-08-13_11-38-09
> Reporter: Alex Grönholm
> Priority: Minor
>
> I don't know if the setting @PersistenceContext(type = EXTENDED) affects this, but attempting to get the delegate (a Hibernate Session in this case) from a Seam proxied EntityManager causes a NPE.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list