Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 363909

Summary: NPE during find() while trying to get active persistence context
Product: z_Archived Reporter: Patric Rufflar <patric>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: CLOSED INVALID QA Contact:
Severity: normal    
Priority: P2 CC: tom.ware
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Patric Rufflar CLA 2011-11-16 09:21:07 EST
Build Identifier: 3.1.3

java.lang.NullPointerException
  at org.eclipse.persistence.internal.jpa.EntityManagerImpl.getActivePersistenceContext(EntityManagerImpl.java:1573)
  at org.eclipse.persistence.internal.jpa.EntityManagerImpl.getActiveSession(EntityManagerImpl.java:1089)
  at org.eclipse.persistence.internal.jpa.EntityManagerImpl.getQueryHints(EntityManagerImpl.java:2156)
  at org.eclipse.persistence.internal.jpa.EntityManagerImpl.find(EntityManagerImpl.java:495)
(...)

Reproducible: Didn't try
Comment 1 Tom Ware CLA 2011-11-17 13:59:44 EST
Looks like the session is likely null.

Please post recreation steps.
Comment 2 Tom Ware CLA 2011-11-24 15:23:29 EST
Setting target and priority.  See the following page for the meanings of these fields:

http://wiki.eclipse.org/EclipseLink/Development/Bugs/Guidelines

Community: Please vote for this bug if it is important to you.  Votes are one of the main criteria we use to determine which bugs to fix next.
Comment 3 Tom Ware CLA 2011-11-24 15:24:09 EST
Closing due to lack of recreation steps.  Please reopen if you can describe how to recreate.
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:14:37 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 5 Eclipse Webmaster CLA 2022-06-09 10:20:04 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink