Hi Johan. For specifying unique keys sintac changed between DN 4 and previous versions.
I don't have access to laptop, but I remember a similar stack trace due to that (not finding the specified field). Please, verify you've written it exactly this way: http://www.datanucleus.org/products/datanucleus/jdo/annotations.html#Unique_Class HTH, Oscar > El 30/7/2015, a las 14:38, [email protected] escribió: > > Thank you Dan, > > > > I overlooked the persistor_datanucleus.properties. > > But still I am struggling - I cleaned all .m2 caches etc... > > I keep getting: > > > > > 14:35:14,737 [Schema main ERROR] An exception was > thrown while adding/validating class(es) : null > > java.lang.NullPointerException > > at > org.datanucleus.store.rdbms.table.ClassTable.getCandidateKeyForUniqueMetaData(ClassTable.java:2569) > > at > org.datanucleus.store.rdbms.table.ClassTable.getExpectedCandidateKeys(ClassTable.java:2509) > > at > org.datanucleus.store.rdbms.table.TableImpl.getSQLAddCandidateKeyStatements(TableImpl.java:1300) > > at > org.datanucleus.store.rdbms.table.TableImpl.createCandidateKeys(TableImpl.java:738) > > at > org.datanucleus.store.rdbms.table.TableImpl.createConstraints(TableImpl.java:427):35:14,737 > [Schema main ERROR] An exception was thrown while > adding/validating class(es) : null > > java.lang.NullPointerException > > at > org.datanucleus.store.rdbms.table.ClassTable.getCandidateKeyForUniqueMetaData(ClassTable.java:2569) > > at > org.datanucleus.store.rdbms.table.ClassTable.getExpectedCandidateKeys(ClassTable.java:2509) > > at > org.datanucleus.store.rdbms.table.TableImpl.getSQLAddCandidateKeyStatements(TableImpl.java:1300) > > at > org.datanucleus.store.rdbms.table.TableImpl.createCandidateKeys(TableImpl.java:738) > > at > org.datanucleus.store.rdbms.table.TableImpl.createConstraints(TableImpl.java:427) > > > > > > > > > In the migration notes, Johan. > > http://isis.apache.org/migration-notes.html > > cheers > Dan > > >> On 30 July 2015 at 12:49, wrote: >> >> When upgrading to ISIS 1.9.0 and DataNucleus 4.0.0. I get: >> >> >> >> >> 1) Error in custom provider, javax.jdo.JDOFatalUserException: >> Exception thrown setting persistence properties >> >> NestedThrowables: >> >> java.lang.IllegalArgumentException: Property >> "datanucleus.identifier.case" specified with value "PreserveCase" but this >> value is invalid. Please check the documentation for valid values >> >> at >> org.apache.isis.core.runtime.runner.IsisInjectModule.provideIsisSystem(IsisInjectModule.java:132) >> >> at >> org.apache.isis.core.runtime.runner.IsisInjectModule.provideIsisSystem(IsisInjectModule.java:132) >> >> while locating org.apache.isis.core.runtime.system.IsisSystem >> >> for field at >> org.apache.isis.viewer.wicket.viewer.IsisWicketApplication.system(IsisWicketApplication.java:142) >> >> while locating nl.matching.app.webapp.MatchingApp >> >> 1) Error in custom provider, javax.jdo.JDOFatalUserException: Exception >> thrown setting persistence properties >> >> NestedThrowables: >> >> java.lang.IllegalArgumentException: Property >> "datanucleus.identifier.case" specified with value "PreserveCase" but this >> value is invalid. Please check the documentation for valid values >> >> at >> org.apache.isis.core.runtime.runner.IsisInjectModule.provideIsisSystem(IsisInjectModule.java:132) >> >> at >> org.apache.isis.core.runtime.runner.IsisInjectModule.provideIsisSystem(IsisInjectModule.java:132) >> >> while locating org.apache.isis.core.runtime.system.IsisSystem >> >> for field at >> org.apache.isis.viewer.wicket.viewer.IsisWicketApplication.system(IsisWicketApplication.java:142) >> >> while locating nl.matching.app.webapp.MatchingApp >> >> >> >> Has anybody a hint? My app was running OK with previous version. >> >> >> >> grtz Johan > > >
