DataNucleus JIRA is now in read-only mode. Raise any new issues in GitHub against the plugin that it applies to. DataNucleus JIRA will remain for the foreseeable future but will eventually be discontinued
Issue Details (XML | Word | Printable)

Key: NUCCORE-825
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Unassigned
Reporter: Andy Jefferson
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.
DataNucleus Core

If user defines root class with inheritance strategy of SUPERCLASS_TABLE then get obscure NPE

Created: 21/Mar/12 12:57 PM   Updated: 30/Mar/12 09:25 AM   Resolved: 21/Mar/12 01:05 PM
Component/s: MetaData
Affects Version/s: 3.0.9, 3.1.0.m1
Fix Version/s: 3.1.0.m2

 Description  « Hide
Ought to throw sensible error rather than getting

        at org.datanucleus.metadata.AbstractClassMetaData.getClassManagingTable(
        at org.datanucleus.metadata.AbstractClassMetaData.validateUserInputForInheritanceMetaData(
        at org.datanucleus.metadata.ClassMetaData.populate(
        at org.datanucleus.metadata.MetaDataManager$
        at Method)
        at org.datanucleus.metadata.MetaDataManager.populateAbstractClassMetaData(
        at org.datanucleus.metadata.MetaDataManager.populateFileMetaData(
        at org.datanucleus.metadata.MetaDataManager.initialiseFileMetaDataForUse(
        at org.datanucleus.metadata.MetaDataManager.loadClasses(
        at org.datanucleus.enhancer.DataNucleusEnhancer.getFileMetadataForInput(
        at org.datanucleus.enhancer.DataNucleusEnhancer.enhance(
        at org.datanucleus.enhancer.DataNucleusEnhancer.main(

Sort Order: Ascending order - Click to sort in descending order
Andy Jefferson added a comment - 21/Mar/12 01:05 PM
SVN trunk fixes the exception message to

Class "org.datanucleus.test.A" has been specified with an inheritance strategy of "superclass-table", yet no superclass exists or none exists with its own table!