Advertisement
Guest User

Untitled

a guest
Oct 18th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.87 KB | None | 0 0
  1. 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)
  2. 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
  3. 2019-10-18_15:39:47.263 [main] INFO c.a.r.ReportServiceApplication - No active profile set, falling back to default profiles: default
  4. 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
  5. 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
  6. 2019-10-18_15:39:55.014 [main] INFO c.a.r.service.ReportTypeInitializer - Found 80 existing report types
  7. 2019-10-18_15:39:55.022 [main] INFO c.a.r.service.ReportTypeInitializer - New report type detected, code: consolidatedReportKBR
  8. 2019-10-18_15:39:55.023 [main] INFO c.a.r.service.ReportTypeInitializer - Report type "consolidatedReportKBR" successfully has been added
  9. 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}
  10. 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}
  11. 2019-10-18_15:39:55.216 [main] ERROR o.s.boot.SpringApplication - Application startup failed
  12. 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
  13. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1628)
  14. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)
  15. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
  16. at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
  17. at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
  18. at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
  19. at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
  20. at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761)
  21. at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)
  22. at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)
  23. at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693)
  24. at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360)
  25. at org.springframework.boot.SpringApplication.run(SpringApplication.java:303)
  26. at org.springframework.boot.SpringApplication.run(SpringApplication.java:1118)
  27. at org.springframework.boot.SpringApplication.run(SpringApplication.java:1107)
  28. at com.atcsibir.reportservice.ReportServiceApplication.main(ReportServiceApplication.java:37)
  29. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  30. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  31. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  32. at java.lang.reflect.Method.invoke(Method.java:498)
  33. at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
  34. at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
  35. at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
  36. at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)
  37. 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
  38. at org.springframework.jdbc.support.SQLStateSQLExceptionTranslator.doTranslate(SQLStateSQLExceptionTranslator.java:99)
  39. at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:73)
  40. at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:81)
  41. at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:81)
  42. at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:649)
  43. at org.springframework.jdbc.core.JdbcTemplate.update(JdbcTemplate.java:870)
  44. at org.springframework.jdbc.core.JdbcTemplate.update(JdbcTemplate.java:931)
  45. at org.springframework.jdbc.core.JdbcTemplate.update(JdbcTemplate.java:941)
  46. at com.atcsibir.reportservice.masterdblayer.repository.ReportMasterDbRepository.lambda$createNewReportTypeRole$2(ReportMasterDbRepository.java:124)
  47. at java.lang.Iterable.forEach(Iterable.java:75)
  48. at com.atcsibir.reportservice.masterdblayer.repository.ReportMasterDbRepository.createNewReportTypeRole(ReportMasterDbRepository.java:124)
  49. at com.atcsibir.reportservice.masterdblayer.repository.ReportMasterDbRepository$$FastClassBySpringCGLIB$$8c9e149c.invoke(<generated>)
  50. at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
  51. at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:738)
  52. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
  53. at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
  54. at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:282)
  55. at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
  56. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  57. at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:673)
  58. at com.atcsibir.reportservice.masterdblayer.repository.ReportMasterDbRepository$$EnhancerBySpringCGLIB$$5f25ed79.createNewReportTypeRole(<generated>)
  59. at com.atcsibir.reportservice.service.ReportTypeInitializer.initializeReportTypes(ReportTypeInitializer.java:68)
  60. at com.atcsibir.reportservice.service.ReportTypeInitializer.afterPropertiesSet(ReportTypeInitializer.java:50)
  61. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1687)
  62. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1624)
  63. ... 23 common frames omitted
  64. Caused by: org.postgresql.util.PSQLException: ОШИБКА: нет доступа к отношению report_type_role
  65. at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2455)
  66. at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2155)
  67. at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:288)
  68. at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:430)
  69. at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:356)
  70. at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:168)
  71. at org.postgresql.jdbc.PgPreparedStatement.executeUpdate(PgPreparedStatement.java:135)
  72. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  73. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  74. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  75. at java.lang.reflect.Method.invoke(Method.java:498)
  76. at org.apache.tomcat.jdbc.pool.StatementFacade$StatementProxy.invoke(StatementFacade.java:114)
  77. at com.sun.proxy.$Proxy141.executeUpdate(Unknown Source)
  78. at org.springframework.jdbc.core.JdbcTemplate$2.doInPreparedStatement(JdbcTemplate.java:877)
  79. at org.springframework.jdbc.core.JdbcTemplate$2.doInPreparedStatement(JdbcTemplate.java:870)
  80. at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:633)
  81. ... 43 common frames omitted
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement