Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 363909 - NPE during find() while trying to get active persistence context
Summary: NPE during find() while trying to get active persistence context
Status: CLOSED INVALID
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-16 09:21 EST by Patric Rufflar CLA
Modified: 2022-06-09 10:20 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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