Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
2.0.3, 1.6.2
-
None
Description
server : 10.1.25
connection string:
jdbc:mariadb://localhost:3306/outboundengine?useServerPrepStmts=true&prepStmtCacheSize=250&prepStmtCacheSqlLimit=2048&autoReconnect=true
full stack:
 |
org.springframework.jdbc.UncategorizedSQLException: PreparedStatementCallback; uncategorized SQLException for SQL [SELECT id FROM contact WHERE email=? and user_id!=? and (is_active=true or contact_status_id IN (2,11)) and is_deleted=false]; SQL state [HY000]; error code [1243]; (conn:43) Unknown prepared statement handler (16) given to mysqld_stmt_execute; nested exception is java.sql.SQLException: (conn:43) Unknown prepared statement handler (16) given to mysqld_stmt_execute |
at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:84) ~[spring-jdbc-4.3.2.RELEASE.jar:4.3.2.RELEASE] |
at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:81) ~[spring-jdbc-4.3.2.RELEASE.jar:4.3.2.RELEASE] |
at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:81) ~[spring-jdbc-4.3.2.RELEASE.jar:4.3.2.RELEASE] |
at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:649) ~[spring-jdbc-4.3.2.RELEASE.jar:4.3.2.RELEASE] |
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:684) ~[spring-jdbc-4.3.2.RELEASE.jar:4.3.2.RELEASE] |
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:711) ~[spring-jdbc-4.3.2.RELEASE.jar:4.3.2.RELEASE] |
at com.outboundengine.dba.base.BaseEntity.exists(BaseEntity.java:473) ~[OEBase.jar:${version} ${build.number} 07-17-2017 15:55:42] |
at com.outboundengine.dba.entity.impl.ContactDbaImpl.exists(ContactDbaImpl.java:405) ~[OEBase.jar:${version} ${build.number} 07-17-2017 15:55:42] |
at com.outboundengine.service.contact.impl.ContactSvcImpl.shouldContactBeActiveGlobal(ContactSvcImpl.java:217) ~[OEBase.jar:${version} ${build.number} 07-17-2017 15:55:42] |
at sun.reflect.GeneratedMethodAccessor47.invoke(Unknown Source) ~[na:na]
|
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_101] |
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_101] |
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333) [spring-aop-4.3.2.RELEASE.jar:4.3.2.RELEASE] |
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207) [spring-aop-4.3.2.RELEASE.jar:4.3.2.RELEASE] |
at com.sun.proxy.$Proxy61.shouldContactBeActiveGlobal(Unknown Source) ~[na:na]
|
at com.outboundengine.contact.ContactUploadRunner.processContactsForTesting(ContactUploadRunner.java:924) [OEBase.jar:${version} ${build.number} 07-17-2017 15:55:42] |
at com.outboundengine.contact.ContactUploadRunner.runFileImport(ContactUploadRunner.java:574) [OEBase.jar:${version} ${build.number} 07-17-2017 15:55:42] |
at com.outboundengine.contact.ContactUploadRunner.run(ContactUploadRunner.java:217) [OEBase.jar:${version} ${build.number} 07-17-2017 15:55:42] |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_101] |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_101] |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_101] |
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_101] |
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333) [spring-aop-4.3.2.RELEASE.jar:4.3.2.RELEASE] |
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) [spring-aop-4.3.2.RELEASE.jar:4.3.2.RELEASE] |
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) [spring-aop-4.3.2.RELEASE.jar:4.3.2.RELEASE] |
at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99) [spring-tx-4.3.2.RELEASE.jar:4.3.2.RELEASE] |
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:280) [spring-tx-4.3.2.RELEASE.jar:4.3.2.RELEASE] |
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) [spring-tx-4.3.2.RELEASE.jar:4.3.2.RELEASE] |
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) [spring-aop-4.3.2.RELEASE.jar:4.3.2.RELEASE] |
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213) [spring-aop-4.3.2.RELEASE.jar:4.3.2.RELEASE] |
at com.sun.proxy.$Proxy79.run(Unknown Source) [na:na]
|
at com.outboundengine.contact.TestContactUploadRunner.testUpload(TestContactUploadRunner.java:226) [tests/:${version} ${build.number} 07-17-2017 15:55:42] |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_101] |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_101] |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_101] |
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_101] |
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47) [junit-4.11.jar:na] |
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) [junit-4.11.jar:na] |
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44) [junit-4.11.jar:na] |
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) [junit-4.11.jar:na] |
at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:75) [spring-test-4.3.2.RELEASE.jar:4.3.2.RELEASE] |
at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:86) [spring-test-4.3.2.RELEASE.jar:4.3.2.RELEASE] |
at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:84) [spring-test-4.3.2.RELEASE.jar:4.3.2.RELEASE] |
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271) [junit-4.11.jar:na] |
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:252) [spring-test-4.3.2.RELEASE.jar:4.3.2.RELEASE] |
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:94) [spring-test-4.3.2.RELEASE.jar:4.3.2.RELEASE] |
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) [junit-4.11.jar:na] |
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) [junit-4.11.jar:na] |
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) [junit-4.11.jar:na] |
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) [junit-4.11.jar:na] |
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) [junit-4.11.jar:na] |
at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61) [spring-test-4.3.2.RELEASE.jar:4.3.2.RELEASE] |
at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70) [spring-test-4.3.2.RELEASE.jar:4.3.2.RELEASE] |
at org.junit.runners.ParentRunner.run(ParentRunner.java:309) [junit-4.11.jar:na] |
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:191) [spring-test-4.3.2.RELEASE.jar:4.3.2.RELEASE] |
at junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:38) [junit-4.11.jar:na] |
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:535) [ant-junit.jar:na] |
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1182) [ant-junit.jar:na] |
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:1004) [ant-junit.jar:na] |
Caused by: java.sql.SQLException: (conn:43) Unknown prepared statement handler (16) given to mysqld_stmt_execute |
at org.mariadb.jdbc.internal.util.exceptions.ExceptionMapper.get(ExceptionMapper.java:179) ~[mariadb-java-client-1.6.2.jar:na] |
at org.mariadb.jdbc.internal.util.exceptions.ExceptionMapper.getException(ExceptionMapper.java:118) ~[mariadb-java-client-1.6.2.jar:na] |
at org.mariadb.jdbc.MariaDbStatement.executeExceptionEpilogue(MariaDbStatement.java:247) ~[mariadb-java-client-1.6.2.jar:na] |
at org.mariadb.jdbc.MariaDbPreparedStatementServer.executeInternal(MariaDbPreparedStatementServer.java:379) ~[mariadb-java-client-1.6.2.jar:na] |
at org.mariadb.jdbc.MariaDbPreparedStatementServer.execute(MariaDbPreparedStatementServer.java:332) ~[mariadb-java-client-1.6.2.jar:na] |
at org.mariadb.jdbc.MariaDbPreparedStatementServer.executeQuery(MariaDbPreparedStatementServer.java:311) ~[mariadb-java-client-1.6.2.jar:na] |
at org.springframework.jdbc.core.JdbcTemplate$1.doInPreparedStatement(JdbcTemplate.java:692) ~[spring-jdbc-4.3.2.RELEASE.jar:4.3.2.RELEASE] |
at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:633) ~[spring-jdbc-4.3.2.RELEASE.jar:4.3.2.RELEASE] |
... 55 common frames omitted |
Caused by: java.sql.SQLException: Unknown prepared statement handler (16) given to mysqld_stmt_execute |
Query is: SELECT id FROM contact WHERE email=? and user_id!=? and (is_active=true or contact_status_id IN (2,11)) and is_deleted=false, parameters ['someemail@gmail.com',3] |
at org.mariadb.jdbc.internal.util.LogQueryTool.exceptionWithQuery(LogQueryTool.java:146) ~[mariadb-java-client-1.6.2.jar:na] |
at org.mariadb.jdbc.internal.protocol.AbstractQueryProtocol.executePreparedQuery(AbstractQueryProtocol.java:738) ~[mariadb-java-client-1.6.2.jar:na] |
at org.mariadb.jdbc.MariaDbPreparedStatementServer.executeInternal(MariaDbPreparedStatementServer.java:369) ~[mariadb-java-client-1.6.2.jar:na] |
... 59 common frames omitted |
Attachments
Issue Links
- is duplicated by
-
CONJ-475 Unknown prepared statement handler (31) given to mysqld_stmt_execute
- Closed