lahirujayathilake opened a new pull request, #15:
URL: https://github.com/apache/airavata-data-catalog/pull/15

   When running the "data-catalog-api/server"(spring-boot) "user" table was not 
created and threw the following exception
   
   `org.hibernate.tool.schema.spi.CommandAcceptanceException: Error executing 
DDL "create table user (user_id bigint not null, external_id varchar(255) not 
null, name varchar(255) not null, primary key (user_id))" via JDBC Statement
           at 
org.hibernate.tool.schema.internal.exec.GenerationTargetToDatabase.accept(GenerationTargetToDatabase.java:67)
           at 
org.hibernate.tool.schema.internal.AbstractSchemaMigrator.applySqlString(AbstractSchemaMigrator.java:587)
           at 
org.hibernate.tool.schema.internal.AbstractSchemaMigrator.applySqlStrings(AbstractSchemaMigrator.java:532)
           at 
org.hibernate.tool.schema.internal.AbstractSchemaMigrator.createTable(AbstractSchemaMigrator.java:307)
           at 
org.hibernate.tool.schema.internal.GroupedSchemaMigratorImpl.performTablesMigration(GroupedSchemaMigratorImpl.java:79)
           at 
org.hibernate.tool.schema.internal.AbstractSchemaMigrator.performMigration(AbstractSchemaMigrator.java:225)
           at 
org.hibernate.tool.schema.internal.AbstractSchemaMigrator.doMigration(AbstractSchemaMigrator.java:126)
           at 
org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.performDatabaseAction(SchemaManagementToolCoordinator.java:284)
           at 
org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.lambda$process$5(SchemaManagementToolCoordinator.java:143)
           at java.base/java.util.HashMap.forEach(HashMap.java:1421)
           at 
org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.process(SchemaManagementToolCoordinator.java:140)
           at 
org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:336)
           at 
org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:415)
           at 
org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:1425)
           at 
org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:66)
           at 
org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:376)
           at 
org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:409)
           at 
org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:396)
           at 
org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:352)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1797)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1747)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:599)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:521)
           at 
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:326)
           at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
           at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:324)
           at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200)
           at 
org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1130)
           at 
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:905)
           at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:584)
           at 
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:730)
           at 
org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:432)
           at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:308)
           at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:1302)
           at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:1291)
           at 
org.apache.airavata.datacatalog.api.DataCatalogApiServiceApplication.main(DataCatalogApiServiceApplication.java:10)
   Caused by: org.postgresql.util.PSQLException: ERROR: syntax error at or near 
"user"
     Position: 14
           at 
org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2676)
           at 
org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2366)
           at 
org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:356)
           at 
org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:496)
           at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:413)
           at 
org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:333)
           at 
org.postgresql.jdbc.PgStatement.executeCachedSql(PgStatement.java:319)
           at 
org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:295)
           at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:290)
           at 
com.zaxxer.hikari.pool.ProxyStatement.execute(ProxyStatement.java:94)
           at 
com.zaxxer.hikari.pool.HikariProxyStatement.execute(HikariProxyStatement.java)
           at 
org.hibernate.tool.schema.internal.exec.GenerationTargetToDatabase.accept(GenerationTargetToDatabase.java:54)
           ... 35 common frames omitted`
   
   Fixed by wrapping with additional double quotes


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to