SHARE
TWEET

Untitled

seweryn789 May 23rd, 2019 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 2019-05-23 08:13:53,607 - [INFO] - pl.nuadu.api.core.config.RequestProcessingTimeInterceptor - [http-nio-8080-exec-37] - GET http://10.42.1.5:8080/exercises/count took: 16ms and returned 200
  2. 2019-05-23 08:14:02,478 - [WARN] - org.hibernate.engine.jdbc.spi.SqlExceptionHelper - [http-nio-8080-exec-33] - SQL Error: 0, SQLState: 23505
  3. 2019-05-23 08:14:02,478 - [ERROR] - org.hibernate.engine.jdbc.spi.SqlExceptionHelper - [http-nio-8080-exec-33] - ERROR: duplicate key value violates unique constraint "uq_student_test_1"
  4.   Szczegóły: Key (test_id, student_id)=(154599, 260536) already exists.
  5. 2019-05-23 08:14:02,482 - [ERROR] - pl.nuadu.api.core.config.CustomResponseEntityExceptionHandler - [http-nio-8080-exec-33] - handleAll: org.springframework.dao.DataIntegrityViolationException
  6. 2019-05-23 08:14:02,483 - [ERROR] - pl.nuadu.api.core.config.CustomResponseEntityExceptionHandler - [http-nio-8080-exec-33] - Exception:
  7. org.springframework.dao.DataIntegrityViolationException: could not execute statement; SQL [n/a]; constraint [uq_student_test_1]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement
  8.     at org.springframework.orm.jpa.vendor.HibernateJpaDialect.convertHibernateAccessException(HibernateJpaDialect.java:278)
  9.     at org.springframework.orm.jpa.vendor.HibernateJpaDialect.translateExceptionIfPossible(HibernateJpaDialect.java:244)
  10.     at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.translateExceptionIfPossible(AbstractEntityManagerFactoryBean.java:525)
  11.     at org.springframework.dao.support.ChainedPersistenceExceptionTranslator.translateExceptionIfPossible(ChainedPersistenceExceptionTranslator.java:59)
  12.     at org.springframework.dao.support.DataAccessUtils.translateIfNecessary(DataAccessUtils.java:209)
  13.     at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:147)
  14.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  15.     at org.springframework.data.jpa.repository.support.CrudMethodMetadataPostProcessor$CrudMethodMetadataPopulatingMethodInterceptor.invoke(CrudMethodMetadataPostProcessor.java:133)
  16.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  17.     at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
  18.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  19.     at org.springframework.data.repository.core.support.SurroundingTransactionDetectorMethodInterceptor.invoke(SurroundingTransactionDetectorMethodInterceptor.java:57)
  20.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  21.     at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)
  22.     at com.sun.proxy.$Proxy237.save(Unknown Source)
  23.     at pl.nuadu.api.common.service.AbstractCommonServiceWithRepository.save(AbstractCommonServiceWithRepository.java:34)
  24.     at pl.nuadu.api.common.service.AbstractCommonServiceWithRepository.create(AbstractCommonServiceWithRepository.java:53)
  25.     at pl.nuadu.api.core.service.TestService.createTestDraft(TestService.java:377)
  26.     at pl.nuadu.api.core.service.TestService$$FastClassBySpringCGLIB$$a2f90f24.invoke(<generated>)
  27.     at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
  28.     at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:736)
  29.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
  30.     at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
  31.     at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:282)
  32.     at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
  33.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  34.     at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:671)
  35.     at pl.nuadu.api.core.service.TestService$$EnhancerBySpringCGLIB$$1ad6a9fd.createTestDraft(<generated>)
  36.     at pl.nuadu.api.core.web.TestController.createTestDraft(TestController.java:125)
  37.     at pl.nuadu.api.core.web.TestController$$FastClassBySpringCGLIB$$53b90d4e.invoke(<generated>)
  38.     at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
  39.     at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:736)
  40.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
  41.     at org.springframework.security.access.intercept.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:69)
  42.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  43.     at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:671)
  44.     at pl.nuadu.api.core.web.TestController$$EnhancerBySpringCGLIB$$336b3352.createTestDraft(<generated>)
  45.     at sun.reflect.GeneratedMethodAccessor1276.invoke(Unknown Source)
  46.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  47.     at java.lang.reflect.Method.invoke(Method.java:498)
  48.     at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)
  49.     at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:133)
  50.     at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:97)
  51.     at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:854)
  52.     at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:765)
  53.     at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
  54.     at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:967)
  55.     at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:901)
  56.     at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
  57.     at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872)
  58.     at javax.servlet.http.HttpServlet.service(HttpServlet.java:661)
  59.     at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
  60.     at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
  61.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
  62.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  63.     at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
  64.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  65.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  66.     at org.springframework.boot.web.filter.ApplicationContextHeaderFilter.doFilterInternal(ApplicationContextHeaderFilter.java:55)
  67.     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  68.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  69.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  70.     at org.springframework.boot.actuate.trace.WebRequestTraceFilter.doFilterInternal(WebRequestTraceFilter.java:111)
  71.     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  72.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  73.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  74.     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:317)
  75.     at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:127)
  76.     at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:91)
  77.     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
  78.     at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:114)
  79.     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
  80.     at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:137)
  81.     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
  82.     at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:111)
  83.     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
  84.     at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:170)
  85.     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
  86.     at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63)
  87.     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
  88.     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:101)
  89.     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
  90.     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:101)
  91.     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
  92.     at pl.nuadu.api.security.filter.InternalAuthenticationSecurityFilter.doFilterInternal(InternalAuthenticationSecurityFilter.java:50)
  93.     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  94.     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
  95.     at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:116)
  96.     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
  97.     at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:66)
  98.     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  99.     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
  100.     at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:105)
  101.     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
  102.     at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:56)
  103.     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  104.     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
  105.     at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:214)
  106.     at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:177)
  107.     at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:347)
  108.     at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:263)
  109.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  110.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  111.     at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
  112.     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  113.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  114.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  115.     at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:109)
  116.     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  117.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  118.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  119.     at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93)
  120.     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  121.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  122.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  123.     at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)
  124.     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  125.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  126.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  127.     at org.springframework.boot.actuate.autoconfigure.MetricsFilter.doFilterInternal(MetricsFilter.java:103)
  128.     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  129.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  130.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  131.     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
  132.     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
  133.     at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493)
  134.     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
  135.     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
  136.     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
  137.     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
  138.     at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:798)
  139.     at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
  140.     at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:806)
  141.     at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)
  142.     at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
  143.     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
  144.     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
  145.     at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  146.     at java.lang.Thread.run(Thread.java:745)
  147. Caused by: org.hibernate.exception.ConstraintViolationException: could not execute statement
  148.     at org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLStateConversionDelegate.java:112)
  149.     at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:42)
  150.     at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:109)
  151.     at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:95)
  152.     at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:207)
  153.     at org.hibernate.dialect.identity.GetGeneratedKeysDelegate.executeAndExtract(GetGeneratedKeysDelegate.java:57)
  154.     at org.hibernate.id.insert.AbstractReturningDelegate.performInsert(AbstractReturningDelegate.java:42)
  155.     at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2855)
  156.     at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:3426)
  157.     at org.hibernate.action.internal.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:81)
  158.     at org.hibernate.engine.spi.ActionQueue.execute(ActionQueue.java:619)
  159.     at org.hibernate.engine.spi.ActionQueue.addResolvedEntityInsertAction(ActionQueue.java:273)
  160.     at org.hibernate.engine.spi.ActionQueue.addInsertAction(ActionQueue.java:254)
  161.     at org.hibernate.engine.spi.ActionQueue.addAction(ActionQueue.java:299)
  162.     at org.hibernate.event.internal.AbstractSaveEventListener.addInsertAction(AbstractSaveEventListener.java:317)
  163.     at org.hibernate.event.internal.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:272)
  164.     at org.hibernate.event.internal.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:178)
  165.     at org.hibernate.event.internal.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:109)
  166.     at org.hibernate.jpa.event.internal.core.JpaPersistEventListener.saveWithGeneratedId(JpaPersistEventListener.java:67)
  167.     at org.hibernate.event.internal.DefaultPersistEventListener.entityIsTransient(DefaultPersistEventListener.java:189)
  168.     at org.hibernate.event.internal.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:132)
  169.     at org.hibernate.internal.SessionImpl.firePersist(SessionImpl.java:765)
  170.     at org.hibernate.internal.SessionImpl.persist(SessionImpl.java:758)
  171.     at org.hibernate.jpa.event.internal.core.JpaPersistEventListener$1.cascade(JpaPersistEventListener.java:80)
  172.     at org.hibernate.engine.internal.Cascade.cascadeToOne(Cascade.java:398)
  173.     at org.hibernate.engine.internal.Cascade.cascadeAssociation(Cascade.java:323)
  174.     at org.hibernate.engine.internal.Cascade.cascadeProperty(Cascade.java:162)
  175.     at org.hibernate.engine.internal.Cascade.cascadeCollectionElements(Cascade.java:431)
  176.     at org.hibernate.engine.internal.Cascade.cascadeCollection(Cascade.java:363)
  177.     at org.hibernate.engine.internal.Cascade.cascadeAssociation(Cascade.java:326)
  178.     at org.hibernate.engine.internal.Cascade.cascadeProperty(Cascade.java:162)
  179.     at org.hibernate.engine.internal.Cascade.cascade(Cascade.java:111)
  180.     at org.hibernate.event.internal.AbstractSaveEventListener.cascadeAfterSave(AbstractSaveEventListener.java:456)
  181.     at org.hibernate.event.internal.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:278)
  182.     at org.hibernate.event.internal.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:178)
  183.     at org.hibernate.event.internal.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:109)
  184.     at org.hibernate.jpa.event.internal.core.JpaPersistEventListener.saveWithGeneratedId(JpaPersistEventListener.java:67)
  185.     at org.hibernate.event.internal.DefaultPersistEventListener.entityIsTransient(DefaultPersistEventListener.java:189)
  186.     at org.hibernate.event.internal.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:132)
  187.     at org.hibernate.event.internal.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:58)
  188.     at org.hibernate.internal.SessionImpl.firePersist(SessionImpl.java:775)
  189.     at org.hibernate.internal.SessionImpl.persist(SessionImpl.java:748)
  190.     at org.hibernate.internal.SessionImpl.persist(SessionImpl.java:753)
  191.     at org.hibernate.jpa.spi.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:1146)
  192.     at sun.reflect.GeneratedMethodAccessor834.invoke(Unknown Source)
  193.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  194.     at java.lang.reflect.Method.invoke(Method.java:498)
  195.     at org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:347)
  196.     at com.sun.proxy.$Proxy193.persist(Unknown Source)
  197.     at sun.reflect.GeneratedMethodAccessor834.invoke(Unknown Source)
  198.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  199.     at java.lang.reflect.Method.invoke(Method.java:498)
  200.     at org.springframework.orm.jpa.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke(SharedEntityManagerCreator.java:301)
  201.     at com.sun.proxy.$Proxy193.persist(Unknown Source)
  202.     at org.springframework.data.jpa.repository.support.SimpleJpaRepository.save(SimpleJpaRepository.java:508)
  203.     at sun.reflect.GeneratedMethodAccessor621.invoke(Unknown Source)
  204.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  205.     at java.lang.reflect.Method.invoke(Method.java:498)
  206.     at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.executeMethodOn(RepositoryFactorySupport.java:515)
  207.     at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:500)
  208.     at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:477)
  209.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  210.     at org.springframework.data.projection.DefaultMethodInvokingMethodInterceptor.invoke(DefaultMethodInvokingMethodInterceptor.java:56)
  211.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  212.     at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
  213.     at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:282)
  214.     at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
  215.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  216.     at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:136)
  217.     ... 133 common frames omitted
  218. Caused by: org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "uq_student_test_1"
  219.   Szczegóły: Key (test_id, student_id)=(154599, 260536) already exists.
  220.     at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2440)
  221.     at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2183)
  222.     at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:308)
  223.     at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:441)
  224.     at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:365)
  225.     at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:143)
  226.     at org.postgresql.jdbc.PgPreparedStatement.executeUpdate(PgPreparedStatement.java:120)
  227.     at sun.reflect.GeneratedMethodAccessor543.invoke(Unknown Source)
  228.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  229.     at java.lang.reflect.Method.invoke(Method.java:498)
  230.     at org.apache.tomcat.jdbc.pool.StatementFacade$StatementProxy.invoke(StatementFacade.java:114)
  231.     at com.sun.proxy.$Proxy304.executeUpdate(Unknown Source)
  232.     at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:204)
  233.     ... 197 common frames omitted
  234. 2019-05-23 08:14:02,484 - [INFO] - pl.nuadu.api.core.config.RequestProcessingTimeInterceptor - [http-nio-8080-exec-33] - POST http://10.42.1.5:8080/tests took: 7143ms and returned 500
  235. 2019-05-23 08:14:10,000 - [INFO] - pl.nuadu.api.core.config.RequestProcessingTimeInterceptor - [http-nio-8080-exec-50] - GET http://10.42.1.5:8080/date took: 1ms and returned 200
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top