[jboss-jira] [JBoss JIRA] (AS7-6956) NullPointer @ org.jboss.as.jpa.container.ExtendedPersistenceDeepInheritance

Scott Marlow (JIRA) jira-events at lists.jboss.org
Fri Apr 19 07:31:53 EDT 2013


    [ https://issues.jboss.org/browse/AS7-6956?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12768780#comment-12768780 ] 

Scott Marlow commented on AS7-6956:
-----------------------------------

Workaround:

If you want an extended persistence context in a web application, change to @PersistenceUnit(unitName = "MyPU") EntityManagerFactory.  The EntityManager that you get from the EntityManagerFactory will be application managed (instead of container managed) and is probably what you want.  The scope of the an application managed persistence context is that the EntityManager will stay open until you call close on it.
                
> NullPointer @ org.jboss.as.jpa.container.ExtendedPersistenceDeepInheritance
> ---------------------------------------------------------------------------
>
>                 Key: AS7-6956
>                 URL: https://issues.jboss.org/browse/AS7-6956
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: JPA / Hibernate
>    Affects Versions: EAP 6.1.0.Alpha (7.2.0.Final)
>            Reporter: Brand Neu
>            Assignee: Scott Marlow
>         Attachments: JBoss Web_7.2.0.Final - JBWEB000064  Error report.htm
>
>
> Webproject with ManagedBean contains following PersistenceContext:
> @PersistenceContext(unitName = "MyPU", type = PersistenceContextType.EXTENDED)
> WebApp run fine under Jboss-7.1, in JBoss-7.2 (EAP-6.1.0) we've got NulPointer-Exception and therefore further exceptions.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list