[midPoint] Migrating from 3.7.x to 3.8 with custom schema

Chris Woods Chris.Woods at rohde-schwarz.com
Thu Jul 5 12:22:33 CEST 2018


Hi!
I am currently trying to migrate our 3.7.2 installation (PoC) to 3.8. The export worked fine (after realizing I also needed to use –U with the jdbc url,not just the –j option for the jdbc driver). I also have my backup.zip containing all the objects – these were backed up from our existing MySQL 5.6 database.
I am, however, restoring to a fresh MySQL v8.0 database (used the 3.8 create script to create the tables). The only problem seems to be with objects that have a value in an attribute from our custom schema – ninja skips those objects with the following Exception(s):

com.evolveum.midpoint.util.exception.SchemaException: Item '{http://sample.evolveum.com/xml/ns/sample-idm/extension}rsCompany' without definition can't be saved.
        at com.evolveum.midpoint.repo.sql.helpers.ObjectUpdater.createDataObjectFromJAXB(ObjectUpdater.java:604) ~[repo-sql-impl-3.8.jar!/:na]
        at com.evolveum.midpoint.repo.sql.helpers.ObjectUpdater.addObjectAttempt(ObjectUpdater.java:131) ~[repo-sql-impl-3.8.jar!/:na]
        at com.evolveum.midpoint.repo.sql.SqlRepositoryServiceImpl.addObject(SqlRepositoryServiceImpl.java:431) ~[repo-sql-impl-3.8.jar!/:na]
        at com.evolveum.midpoint.ninja.action.worker.ImportConsumerWorker.run(ImportConsumerWorker.java:65) ~[classes!/:na]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_131]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_131]
        at java.lang.Thread.run(Thread.java:748) [na:1.8.0_131]
Caused by: java.lang.reflect.InvocationTargetException: null
        at sun.reflect.GeneratedMethodAccessor309.invoke(Unknown Source) ~[na:na]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_131]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_131]
        at com.evolveum.midpoint.repo.sql.helpers.ObjectUpdater.createDataObjectFromJAXB(ObjectUpdater.java:594) ~[repo-sql-impl-3.8.jar!/:na]
        ... 6 common frames omitted
Caused by: com.evolveum.midpoint.repo.sql.util.DtoTranslationException: Item '{http://sample.evolveum.com/xml/ns/sample-idm/extension}rsCompany' without definition can't be saved.
        at com.evolveum.midpoint.repo.sql.data.common.RObject.copyFromJAXB(RObject.java:760) ~[repo-sql-impl-3.8.jar!/:na]
        at com.evolveum.midpoint.repo.sql.data.common.RObject.copyFromJAXB(RObject.java:726) ~[repo-sql-impl-3.8.jar!/:na]
        at com.evolveum.midpoint.repo.sql.data.common.RFocus.copyFromJAXB(RFocus.java:312) ~[repo-sql-impl-3.8.jar!/:na]
        at com.evolveum.midpoint.repo.sql.data.common.RUser.copyFromJAXB(RUser.java:248) ~[repo-sql-impl-3.8.jar!/:na]
        ... 10 common frames omitted
Caused by: java.lang.IllegalArgumentException: Item '{http://sample.evolveum.com/xml/ns/sample-idm/extension}rsCompany' without definition can't be saved.
        at org.apache.commons.lang.Validate.notNull(Validate.java:192) ~[commons-lang-2.6.jar!/:2.6]
        at com.evolveum.midpoint.repo.sql.data.common.any.RAnyConverter.convertToRValue(RAnyConverter.java:168) ~[repo-sql-impl-3.8.jar!/:na]
        at com.evolveum.midpoint.repo.sql.data.common.RObject.copyFromJAXB(RObject.java:752) ~[repo-sql-impl-3.8.jar!/:na]
        ... 13 common frames omitted

Does anyone know what I’m doing wrong?

Regards,
Chris.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20180705/7a0326f3/attachment.htm>


More information about the midPoint mailing list