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

Bug 300458

Summary: EclipseLink should throw a more specific exception than NPE
Product: z_Archived Reporter: kurt <kurt2002>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P2 CC: eclipselink.orm-inbox, guy.pelletier, kurt2002, michael.norman, tom.ware
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
source and stacktrace in zip-file
none
Proposed changes
none
Proposed changes (minor updates from previous patch) none

Description kurt CLA 2010-01-22 02:54:27 EST
Build Identifier: GlassFish Tools Bundle For Eclipse    Version: 1.2  Based on  Eclipse build id: M20090917-080

Missing declaration of @IdClass throws unspecific exception where it could state that there is no primarykey set:
Caused by: java.lang.NullPointerException
at org.eclipse.persistence.internal.jpa.metadata.MetadataDescri ptor.setPKClass(MetadataDescriptor.java:1516)


Reproducible: Always

Steps to Reproduce:
1. generate tables out of attached classes
Comment 1 kurt CLA 2010-01-22 02:57:38 EST
Created attachment 156900 [details]
source and stacktrace in zip-file
Comment 2 Tom Ware CLA 2010-02-08 09:28:14 EST
Setting target and priority.  See the following page for details of what those values mean: http://wiki.eclipse.org/EclipseLink/Development/Bugs/Guidelines
Comment 3 Guy Pelletier CLA 2010-06-18 12:55:25 EDT
Created attachment 172235 [details]
Proposed changes
Comment 4 Guy Pelletier CLA 2010-06-18 13:00:02 EDT
Created attachment 172236 [details]
Proposed changes (minor updates from previous patch)
Comment 5 Guy Pelletier CLA 2010-06-18 13:33:53 EDT
Changes have been submitted.

Reviewed by: Gordon Yorke

Tests: New test (testMultipleIdButNonIdClassEntity) added to InheritedModelJunitTest
Comment 6 Eclipse Webmaster CLA 2022-06-09 10:36:10 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink