Advertisement
guestAT

Untitled

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