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

Bug 321773

Summary: NPE trying to resolve sequences for types annotated with @SequenceGenerator
Product: [Modeling] EMF Reporter: Ed Peters <ed.peters>
Component: TeneoAssignee: Martin Taal <mtaal>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: d.nikita.e
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
XSD used to reproduce
none
Stack trace from Teneo none

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/