Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 321773 - NPE trying to resolve sequences for types annotated with @SequenceGenerator
Summary: NPE trying to resolve sequences for types annotated with @SequenceGenerator
Status: RESOLVED FIXED
Alias: None
Product: EMF
Classification: Modeling
Component: Teneo (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Martin Taal CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-04 14:24 EDT by Ed Peters CLA
Modified: 2011-02-16 11:45 EST (History)
1 user (show)

See Also:


Attachments
XSD used to reproduce (1.49 KB, application/octet-stream)
2010-08-04 14:24 EDT, Ed Peters CLA
no flags Details
Stack trace from Teneo (3.55 KB, text/plain)
2010-08-04 14:24 EDT, Ed Peters CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Peters CLA 2010-08-04 14:24:02 EDT
Build Identifier: 1.1.2-v201007191154

When I try to create a data store with the attached schema, I get an NPE from within Teneo.  I've stepped through the code with a debugger, and it looks it happens while like it's trying to find a named sequence generator.  It's considering all possible structural features, including those with no sequences on them, and missing a null check.  (There is a test case for this in the Appian/Teneo repository on Assembla.)

Reproducible: Always

Steps to Reproduce:
1. create a data store with the supplied schema (make sure you're using a database which supports schema)
2. check out the resulting exception
Comment 1 Ed Peters CLA 2010-08-04 14:24:16 EDT
Created attachment 175867 [details]
XSD used to reproduce
Comment 2 Ed Peters CLA 2010-08-04 14:24:33 EDT
Created attachment 175868 [details]
Stack trace from Teneo
Comment 3 Martin Taal CLA 2010-08-18 09:25:49 EDT
I committed a fix for this in cvs. Can you test it? The fix is very simple and it takes me some time to setup a whole testcase, maybe you can just run your testcase?

gr. Martin
Comment 4 Martin Taal CLA 2010-08-18 10:22:52 EDT
Fix is available in build of today on interim update site:
http://download.eclipse.org/modeling/emf/teneo/updates/1.2.0/interim/