Following the ide-integration setup instructions, I have started the docker
services and run the initial database migration scripts. All containers are
up, migrations scripts ran successfully, and the Maven install succeeds.
However, when I go to launch the API Server from within IntelliJ there is
an exception: *Failed to post-initialize the expcatalog database (full
trace below)*

Can anyone help me understand this? I am trying to follow the
ide-integration instructions exactly, but this is happening.

org.apache.airavata.registry.core.entities.expcatalog.ExperimentErrorEntity".
at
org.apache.openjpa.enhance.ManagedClassSubclasser.prepareUnenhancedClasses(ManagedClassSubclasser.java:116)
at
org.apache.openjpa.kernel.AbstractBrokerFactory.loadPersistentTypes(AbstractBrokerFactory.java:316)
at
org.apache.openjpa.kernel.AbstractBrokerFactory.initializeBroker(AbstractBrokerFactory.java:240)
at
org.apache.openjpa.kernel.AbstractBrokerFactory.newBroker(AbstractBrokerFactory.java:216)
at
org.apache.openjpa.kernel.DelegatingBrokerFactory.newBroker(DelegatingBrokerFactory.java:166)
at
org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:262)
at
org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:177)
at
org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:167)
at
org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:64)
at
org.apache.airavata.registry.core.utils.JPAUtil.ExpCatalogJPAUtils.getEntityManager(ExpCatalogJPAUtils.java:35)
at
org.apache.airavata.registry.core.repositories.expcatalog.ExpCatAbstractRepository.getEntityManager(ExpCatAbstractRepository.java:16)
at
org.apache.airavata.registry.core.repositories.AbstractRepository.execute(AbstractRepository.java:119)
at
org.apache.airavata.registry.core.repositories.AbstractRepository.get(AbstractRepository.java:75)
at
org.apache.airavata.registry.core.repositories.AbstractRepository.isExists(AbstractRepository.java:113)
at
org.apache.airavata.registry.core.repositories.expcatalog.GatewayRepository.isGatewayExist(GatewayRepository.java:99)
at
org.apache.airavata.registry.core.utils.ExpCatalogDBInitConfig.postInit(ExpCatalogDBInitConfig.java:62)
at
org.apache.airavata.common.utils.DBInitializer.initializeDB(DBInitializer.java:46)
at
org.apache.airavata.registry.api.service.RegistryAPIServer.StartRegistryServer(RegistryAPIServer.java:69)
at
org.apache.airavata.registry.api.service.RegistryAPIServer.start(RegistryAPIServer.java:151)
at
org.apache.airavata.ide.integration.APIServerStarter.main(APIServerStarter.java:23)





















































*Exception in thread "main" java.lang.RuntimeException: Failed to
post-initialize the expcatalog database at
org.apache.airavata.registry.core.utils.ExpCatalogDBInitConfig.postInit(ExpCatalogDBInitConfig.java:81)
at
org.apache.airavata.common.utils.DBInitializer.initializeDB(DBInitializer.java:46)
at
org.apache.airavata.registry.api.service.RegistryAPIServer.StartRegistryServer(RegistryAPIServer.java:69)
at
org.apache.airavata.registry.api.service.RegistryAPIServer.start(RegistryAPIServer.java:151)
at
org.apache.airavata.ide.integration.APIServerStarter.main(APIServerStarter.java:23)Caused
by: java.lang.RuntimeException: Failed to get EntityManager at
org.apache.airavata.registry.core.repositories.AbstractRepository.execute(AbstractRepository.java:122)
at
org.apache.airavata.registry.core.repositories.AbstractRepository.get(AbstractRepository.java:75)
at
org.apache.airavata.registry.core.repositories.AbstractRepository.isExists(AbstractRepository.java:113)
at
org.apache.airavata.registry.core.repositories.expcatalog.GatewayRepository.isGatewayExist(GatewayRepository.java:99)
at
org.apache.airavata.registry.core.utils.ExpCatalogDBInitConfig.postInit(ExpCatalogDBInitConfig.java:62)
... 4 moreCaused by:
<openjpa-3.1.0-rafcec21a1d489dff682a3ce7986fac6a1c80e8e0 nonfatal user
error> org.apache.openjpa.persistence.ArgumentException: This configuration
disallows runtime optimization, but the following listed types were not
enhanced at build time or at class load time with a javaagent:
"org.apache.airavata.registry.core.entities.expcatalog.ExperimentEntityorg.apache.airavata.registry.core.entities.expcatalog.ExperimentStatusEntityorg.apache.airavata.registry.core.entities.expcatalog.UserEntityorg.apache.airavata.registry.core.entities.expcatalog.ProcessStatusEntityorg.apache.airavata.registry.core.entities.expcatalog.GatewayUsageReportingCommandEntityorg.apache.airavata.registry.core.entities.expcatalog.ProjectEntityorg.apache.airavata.registry.core.entities.expcatalog.ProcessErrorEntityorg.apache.airavata.registry.core.entities.expcatalog.ProcessOutputEntityorg.apache.airavata.registry.core.entities.expcatalog.ProcessWorkflowEntityorg.apache.airavata.registry.core.entities.expcatalog.TaskEntityorg.apache.airavata.registry.core.entities.expcatalog.ProcessResourceScheduleEntityorg.apache.airavata.registry.core.entities.expcatalog.TaskStatusEntityorg.apache.airavata.registry.core.entities.expcatalog.ExperimentSummaryEntityorg.apache.airavata.registry.core.entities.expcatalog.UserConfigurationDataEntityorg.apache.airavata.registry.core.entities.expcatalog.ProcessInputEntityorg.apache.airavata.registry.core.entities.expcatalog.ProcessEntityorg.apache.airavata.registry.core.entities.expcatalog.JobStatusEntityorg.apache.airavata.registry.core.entities.expcatalog.TaskErrorEntityorg.apache.airavata.registry.core.entities.expcatalog.ExperimentOutputEntityorg.apache.airavata.registry.core.entities.expcatalog.NotificationEntityorg.apache.airavata.registry.core.entities.expcatalog.GatewayEntityorg.apache.airavata.registry.core.entities.expcatalog.JobEntityorg.apache.airavata.registry.core.entities.expcatalog.ExperimentInputEntityorg.apache.airavata.registry.core.entities.expcatalog.QueueStatusEntityorg.apache.airavata.registry.core.entities.expcatalog.GatewayWorkerEntityorg.apache.airavata.registry.core.entities.expcatalog.ProjectUserEntityorg.apache.airavata.registry.core.entities.expcatalog.ExperimentErrorEntity".
at
org.apache.openjpa.enhance.ManagedClassSubclasser.prepareUnenhancedClasses(ManagedClassSubclasser.java:116)
at
org.apache.openjpa.kernel.AbstractBrokerFactory.loadPersistentTypes(AbstractBrokerFactory.java:316)
at
org.apache.openjpa.kernel.AbstractBrokerFactory.initializeBroker(AbstractBrokerFactory.java:240)
at
org.apache.openjpa.kernel.AbstractBrokerFactory.newBroker(AbstractBrokerFactory.java:216)
at
org.apache.openjpa.kernel.DelegatingBrokerFactory.newBroker(DelegatingBrokerFactory.java:166)
at
org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:262)
at
org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:177)
at
org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:167)
at
org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:64)
at
org.apache.airavata.registry.core.utils.JPAUtil.ExpCatalogJPAUtils.getEntityManager(ExpCatalogJPAUtils.java:35)
at
org.apache.airavata.registry.core.repositories.expcatalog.ExpCatAbstractRepository.getEntityManager(ExpCatAbstractRepository.java:16)
at
org.apache.airavata.registry.core.repositories.AbstractRepository.execute(AbstractRepository.java:119)
... 8 more*

Reply via email to