Bonjour,
j’ai un petit soucis à mon avis pour la partie import en DB de l’audit :
25-10-2016 13:00:07:193 1406729 ERROR org.asqatasun.webapp.orchestrator.AsqatasunOrchestratorImpl - AUDIT CRASHED:org.asqatasun.entity.audit.AuditImpl@b4ea32,https://XXX,1477399432
org.springframework.transaction.CannotCreateTransactionException: Could not open JPA EntityManager for transaction; nested exception is javax.persistence.PersistenceException: org.hibernate.TransactionException: JDBC begin transaction failed:
at org.springframework.orm.jpa.JpaTransactionManager.doBegin(JpaTransactionManager.java:427)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:371)
at org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:336)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:105)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at com.sun.proxy.$Proxy76.getEvidenceElement(Unknown Source)
at org.asqatasun.processing.ProcessRemarkServiceImpl.getEvidenceElement(ProcessRemarkServiceImpl.java:571)
at org.asqatasun.rules.elementchecker.ElementCheckerImpl.getEvidenceElement(ElementCheckerImpl.java:365)
at org.asqatasun.rules.elementchecker.ElementCheckerImpl.getEvidenceElementCollection(ElementCheckerImpl.java:345)
at org.asqatasun.rules.elementchecker.ElementCheckerImpl.addSourceCodeRemark(ElementCheckerImpl.java:212)
at org.asqatasun.rules.elementchecker.element.ElementPresenceChecker.createSourceCodeRemark(ElementPresenceChecker.java:213)
at org.asqatasun.rules.elementchecker.element.ElementPresenceChecker.checkElementPresence(ElementPresenceChecker.java:189)
at org.asqatasun.rules.elementchecker.element.ElementPresenceChecker.doCheck(ElementPresenceChecker.java:169)
at org.asqatasun.rules.elementchecker.ElementCheckerImpl.check(ElementCheckerImpl.java:183)
at org.asqatasun.ruleimplementation.AbstractPageRuleWithSelectorAndCheckerImplementation.check(AbstractPageRuleWithSelectorAndCheckerImplementation.java:119)
at org.asqatasun.ruleimplementation.AbstractPageRuleMarkupImplementation.selectAndCheck(AbstractPageRuleMarkupImplementation.java:54)
at org.asqatasun.ruleimplementation.AbstractPageRuleDefaultImplementation.processImpl(AbstractPageRuleDefaultImplementation.java:71)
at org.asqatasun.ruleimplementation.AbstractRuleImplementation.process(AbstractRuleImplementation.java:120)
at org.asqatasun.processor.ProcessorImpl.run(ProcessorImpl.java:60)
at org.asqatasun.service.ProcessorServiceImpl.process(ProcessorServiceImpl.java:78)
at sun.reflect.GeneratedMethodAccessor184.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at com.sun.proxy.$Proxy86.process(Unknown Source)
at org.asqatasun.service.command.AuditCommandImpl.process(AuditCommandImpl.java:423)
at org.asqatasun.service.AuditServiceThreadImpl.process(AuditServiceThreadImpl.java:124)
at org.asqatasun.service.AuditServiceThreadImpl.run(AuditServiceThreadImpl.java:97)
at java.lang.Thread.run(Thread.java:745)
Caused by: javax.persistence.PersistenceException: org.hibernate.TransactionException: JDBC begin transaction failed:
at org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1763)
at org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1677)
at org.hibernate.jpa.spi.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:1771)
at org.hibernate.jpa.internal.TransactionImpl.begin(TransactionImpl.java:64)
at org.springframework.orm.jpa.DefaultJpaDialect.beginTransaction(DefaultJpaDialect.java:70)
at org.springframework.orm.jpa.JpaTransactionManager.doBegin(JpaTransactionManager.java:377)
... 38 more
Caused by: org.hibernate.TransactionException: JDBC begin transaction failed:
at org.hibernate.engine.transaction.internal.jdbc.JdbcTransaction.doBegin(JdbcTransaction.java:76)
at org.hibernate.engine.transaction.spi.AbstractTransactionImpl.begin(AbstractTransactionImpl.java:162)
at org.hibernate.internal.SessionImpl.beginTransaction(SessionImpl.java:1435)
at org.hibernate.jpa.internal.TransactionImpl.begin(TransactionImpl.java:61)
... 40 more
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
The last packet successfully received from the server was 809,503 milliseconds ago. The last packet sent successfully to the server was 0 milliseconds ago.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1129)
at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3720)
at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3609)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4160)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2617)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2778)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2819)
at com.mysql.jdbc.ConnectionImpl.setAutoCommit(ConnectionImpl.java:5355)
at com.mchange.v2.c3p0.impl.NewProxyConnection.setAutoCommit(NewProxyConnection.java:912)
at org.hibernate.engine.transaction.internal.jdbc.JdbcTransaction.doBegin(JdbcTransaction.java:72)
... 43 more
Caused by: java.io.EOFException: Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.
at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:3166)
at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3620)
... 51 more
25-10-2016 13:00:07:657 1407193 INFO org.asqatasun.webapp.orchestrator.AsqatasunOrchestratorImpl - krash email sent to [guillaume@XXX.fr] on audit n? 77
25-10-2016 13:00:12:032 1411568 INFO org.asqatasun.webapp.orchestrator.AsqatasunOrchestratorImpl - Audit site terminated on https://XXX
Quelques infos :
- Je suis sous Docker.
- J’exploire un serveur MariaDB 10…
Une idée, suis-je le seul ? J’attend un peu d’ionfo avant de lancer une migration MariaDB / MySQL.