Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2019-10-18_15:39:47.260 [main] INFO c.a.r.ReportServiceApplication - Starting ReportServiceApplication v1.0.0 on irk-ais-803.mfc.local with PID 11681 (/opt/report-generator/report-generator.jar started by root in /opt/report-generator)
- 2019-10-18_15:39:47.262 [main] DEBUG c.a.r.ReportServiceApplication - Running with Spring Boot v1.5.7.RELEASE, Spring v4.3.11.RELEASE
- 2019-10-18_15:39:47.263 [main] INFO c.a.r.ReportServiceApplication - No active profile set, falling back to default profiles: default
- 2019-10-18_15:39:52.057 [main] ERROR o.h.ejb.metamodel.MetadataContext - HHH015007: Illegal argument on static metamodel field injection : com.atcsibir.cpgu.domain.model.order.Order_#documents; expected type : org.hibernate.ejb.metamodel.SingularAttributeImpl; encountered type : javax.persistence.metamodel.ListAttribute
- 2019-10-18_15:39:54.872 [main] INFO c.a.r.service.ReportTypeInitializer - Trying to add new report types if they doesn't exist
- 2019-10-18_15:39:55.014 [main] INFO c.a.r.service.ReportTypeInitializer - Found 80 existing report types
- 2019-10-18_15:39:55.022 [main] INFO c.a.r.service.ReportTypeInitializer - New report type detected, code: consolidatedReportKBR
- 2019-10-18_15:39:55.023 [main] INFO c.a.r.service.ReportTypeInitializer - Report type "consolidatedReportKBR" successfully has been added
- 2019-10-18_15:39:55.041 [main] DEBUG c.a.r.m.r.ReportMasterDbRepository - Inserting new report type: ReportType{code='consolidatedReportKBR', name='Сводный отчет по обращениям КБР', templatePath='report/consolidatedReportKBR.xls', dataSourceServiceId='consolidatedReportKBR', roleTypes=[ROLE_OPERATOR, ROLE_AUDITOR], chartsCreatorServiceId='dummyReportChartsCreator', showPdf=false, limitedDatePeriod=false}
- 2019-10-18_15:39:55.103 [main] DEBUG c.a.r.m.r.ReportMasterDbRepository - Inserting roles for new report type: ReportType{code='consolidatedReportKBR', name='Сводный отчет по обращениям КБР', templatePath='report/consolidatedReportKBR.xls', dataSourceServiceId='consolidatedReportKBR', roleTypes=[ROLE_OPERATOR, ROLE_AUDITOR], chartsCreatorServiceId='dummyReportChartsCreator', showPdf=false, limitedDatePeriod=false}
- 2019-10-18_15:39:55.216 [main] ERROR o.s.boot.SpringApplication - Application startup failed
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'reportTypeInitializer' defined in URL [jar:file:/opt/report-generator/report-generator.jar!/BOOT-INF/classes!/com/atcsibir/reportservice/service/ReportTypeInitializer.class]: Invocation of init method failed; nested exception is org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback; bad SQL grammar [INSERT INTO report_type_role (role, report_type) SELECT DISTINCT ? AS role, rt.id AS report_type FROM report_type rt WHERE rt.code = ?;]; nested exception is org.postgresql.util.PSQLException: ОШИБКА: нет доступа к отношению report_type_role
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1628)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
- at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
- at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
- at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
- at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761)
- at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)
- at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)
- at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693)
- at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360)
- at org.springframework.boot.SpringApplication.run(SpringApplication.java:303)
- at org.springframework.boot.SpringApplication.run(SpringApplication.java:1118)
- at org.springframework.boot.SpringApplication.run(SpringApplication.java:1107)
- at com.atcsibir.reportservice.ReportServiceApplication.main(ReportServiceApplication.java:37)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:498)
- at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
- at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
- at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
- at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)
- Caused by: org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback; bad SQL grammar [INSERT INTO report_type_role (role, report_type) SELECT DISTINCT ? AS role, rt.id AS report_type FROM report_type rt WHERE rt.code = ?;]; nested exception is org.postgresql.util.PSQLException: ОШИБКА: нет доступа к отношению report_type_role
- at org.springframework.jdbc.support.SQLStateSQLExceptionTranslator.doTranslate(SQLStateSQLExceptionTranslator.java:99)
- at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:73)
- at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:81)
- at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:81)
- at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:649)
- at org.springframework.jdbc.core.JdbcTemplate.update(JdbcTemplate.java:870)
- at org.springframework.jdbc.core.JdbcTemplate.update(JdbcTemplate.java:931)
- at org.springframework.jdbc.core.JdbcTemplate.update(JdbcTemplate.java:941)
- at com.atcsibir.reportservice.masterdblayer.repository.ReportMasterDbRepository.lambda$createNewReportTypeRole$2(ReportMasterDbRepository.java:124)
- at java.lang.Iterable.forEach(Iterable.java:75)
- at com.atcsibir.reportservice.masterdblayer.repository.ReportMasterDbRepository.createNewReportTypeRole(ReportMasterDbRepository.java:124)
- at com.atcsibir.reportservice.masterdblayer.repository.ReportMasterDbRepository$$FastClassBySpringCGLIB$$8c9e149c.invoke(<generated>)
- at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
- at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:738)
- at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
- at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
- at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:282)
- at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
- at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
- at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:673)
- at com.atcsibir.reportservice.masterdblayer.repository.ReportMasterDbRepository$$EnhancerBySpringCGLIB$$5f25ed79.createNewReportTypeRole(<generated>)
- at com.atcsibir.reportservice.service.ReportTypeInitializer.initializeReportTypes(ReportTypeInitializer.java:68)
- at com.atcsibir.reportservice.service.ReportTypeInitializer.afterPropertiesSet(ReportTypeInitializer.java:50)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1687)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1624)
- ... 23 common frames omitted
- Caused by: org.postgresql.util.PSQLException: ОШИБКА: нет доступа к отношению report_type_role
- at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2455)
- at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2155)
- at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:288)
- at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:430)
- at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:356)
- at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:168)
- at org.postgresql.jdbc.PgPreparedStatement.executeUpdate(PgPreparedStatement.java:135)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:498)
- at org.apache.tomcat.jdbc.pool.StatementFacade$StatementProxy.invoke(StatementFacade.java:114)
- at com.sun.proxy.$Proxy141.executeUpdate(Unknown Source)
- at org.springframework.jdbc.core.JdbcTemplate$2.doInPreparedStatement(JdbcTemplate.java:877)
- at org.springframework.jdbc.core.JdbcTemplate$2.doInPreparedStatement(JdbcTemplate.java:870)
- at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:633)
- ... 43 common frames omitted
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement