[
https://issues.jboss.org/browse/JBJCA-677?page=com.atlassian.jira.plugin....
]
Jesper Pedersen resolved JBJCA-677.
-----------------------------------
Resolution: Done
MySQLValidConnectionChecker throw java.lang.IllegalArgumentException
--------------------------------------------------------------------
Key: JBJCA-677
URL:
https://issues.jboss.org/browse/JBJCA-677
Project: IronJacamar
Issue Type: Bug
Components: JDBC
Affects Versions: 1.0.4.Final, 1.1.0.Alpha2
Environment: Windows7, JSK Oracle 1.6_25
Reporter: Vincent MATHON
Assignee: Jesper Pedersen
Fix For: 1.0.5.Final, 1.1.0.Alpha3
Using org.jboss.jca.adapters.jdbc.extensions.mysql.MySQLValidConnectionChecker leads to
10:26:47,889 WARN
[org.jboss.jca.adapters.jdbc.extensions.mysql.MySQLValidConnectionChecker] (MSC service
thread 1-3) Unexpected error in ping: java.lang.IllegalArgumentException: wrong number of
arguments
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_25]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[:1.6.0_25]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[:1.6.0_25]
at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_25]
at
org.jboss.jca.adapters.jdbc.extensions.mysql.MySQLValidConnectionChecker.isValidConnection(MySQLValidConnectionChecker.java:91)
at
org.jboss.jca.adapters.jdbc.BaseWrapperManagedConnectionFactory.isValidConnection(BaseWrapperManagedConnectionFactory.java:1151)
at
org.jboss.jca.adapters.jdbc.BaseWrapperManagedConnection.checkValid(BaseWrapperManagedConnection.java:454)
at
org.jboss.jca.adapters.jdbc.xa.XAManagedConnectionFactory.matchManagedConnections(XAManagedConnectionFactory.java:478)
at
org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreArrayListManagedConnectionPool.getConnection(SemaphoreArrayListManagedConnectionPool.java:260)
at
org.jboss.jca.core.connectionmanager.pool.AbstractPool.getTransactionNewConnection(AbstractPool.java:488)
at
org.jboss.jca.core.connectionmanager.pool.AbstractPool.getConnection(AbstractPool.java:369)
at
org.jboss.jca.core.connectionmanager.AbstractConnectionManager.getManagedConnection(AbstractConnectionManager.java:351)
at
org.jboss.jca.core.connectionmanager.tx.TxConnectionManagerImpl.getManagedConnection(TxConnectionManagerImpl.java:367)
at
org.jboss.jca.core.connectionmanager.AbstractConnectionManager.allocateConnection(AbstractConnectionManager.java:467)
at
org.jboss.jca.adapters.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:129)
at
org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
[spring-jdbc-3.0.5.RELEASE.jar:]
at
org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:77)
[spring-jdbc-3.0.5.RELEASE.jar:]
at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:381)
[spring-jdbc-3.0.5.RELEASE.jar:]
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:455)
[spring-jdbc-3.0.5.RELEASE.jar:]
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:463)
[spring-jdbc-3.0.5.RELEASE.jar:]
at org.springframework.jdbc.core.JdbcTemplate.queryForObject(JdbcTemplate.java:471)
[spring-jdbc-3.0.5.RELEASE.jar:]
at org.springframework.jdbc.core.JdbcTemplate.queryForObject(JdbcTemplate.java:476)
[spring-jdbc-3.0.5.RELEASE.jar:]
at org.springframework.jdbc.core.JdbcTemplate.queryForInt(JdbcTemplate.java:485)
[spring-jdbc-3.0.5.RELEASE.jar:]
at
org.springframework.jdbc.core.simple.SimpleJdbcTemplate.queryForInt(SimpleJdbcTemplate.java:113)
[spring-jdbc-3.0.5.RELEASE.jar:]
at
com.amdm.espacesocietaire.application.ReplicationStrategyImpl.initializeOnStartup(ReplicationStrategyImpl.java:128)
[EspaceSocietaireApplication-process-1.0.jar:]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_25]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[:1.6.0_25]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[:1.6.0_25]
at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_25]
at
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
[spring-aop-3.0.5.RELEASE.jar:]
at
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
[spring-aop-3.0.5.RELEASE.jar:]
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
[spring-aop-3.0.5.RELEASE.jar:]
at
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
[spring-tx-3.0.5.RELEASE.jar:]
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
[spring-aop-3.0.5.RELEASE.jar:]
at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
[spring-aop-3.0.5.RELEASE.jar:]
at $Proxy220.initializeOnStartup(Unknown Source) at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_25]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[:1.6.0_25]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[:1.6.0_25]
at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_25]
at
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
[spring-aop-3.0.5.RELEASE.jar:]
at
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
[spring-aop-3.0.5.RELEASE.jar:]
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
[spring-aop-3.0.5.RELEASE.jar:]
at
com.amdm.ajf.interceptor.threadcache.ThreadCacheInterceptor.invoke(ThreadCacheInterceptor.java:38)
[AMDMJEEFramework-server-8.0.jar:]
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
[spring-aop-3.0.5.RELEASE.jar:]
at com.amdm.ajf.interceptor.log.LogInterceptor.invoke(LogInterceptor.java:61)
[AMDMJEEFramework-server-8.0.jar:]
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
[spring-aop-3.0.5.RELEASE.jar:]
at
com.amdm.ajf.interceptor.serialization.JdkSerializationInterceptor.invoke(JdkSerializationInterceptor.java:32)
[AMDMJEEFramework-server-8.0.jar:]
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
[spring-aop-3.0.5.RELEASE.jar:]
at
com.amdm.ajf.interceptor.monitoring.SecurityAwareMonitoringInterceptor.invoke(SecurityAwareMonitoringInterceptor.java:31)
[AMDMJEEFramework-client-8.0.jar:]
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
[spring-aop-3.0.5.RELEASE.jar:]
at
org.springframework.aop.framework.adapter.ThrowsAdviceInterceptor.invoke(ThrowsAdviceInterceptor.java:124)
[spring-aop-3.0.5.RELEASE.jar:]
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
[spring-aop-3.0.5.RELEASE.jar:]
at
org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:50)
[spring-aop-3.0.5.RELEASE.jar:]
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
[spring-aop-3.0.5.RELEASE.jar:]
at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
[spring-aop-3.0.5.RELEASE.jar:]
at $Proxy221.initializeOnStartup(Unknown Source) at
com.amdm.replication.fmk.impl.ReplicationHandlerImpl.initializeOnStartup(ReplicationHandlerImpl.java:238)
[ReplicationFramework-process-1.0.jar:]
at
com.amdm.replication.fmk.impl.ReplicationHandlerImpl.onApplicationEvent(ReplicationHandlerImpl.java:299)
[ReplicationFramework-process-1.0.jar:]
at
com.amdm.replication.fmk.impl.ReplicationHandlerImpl.onApplicationEvent(ReplicationHandlerImpl.java:59)
[ReplicationFramework-process-1.0.jar:]
at
org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97)
[spring-context-3.0.5.RELEASE.jar:]
at
org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)
[spring-context-3.0.5.RELEASE.jar:]
at
org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)
[spring-context-3.0.5.RELEASE.jar:]
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:428)
[spring-context-3.0.5.RELEASE.jar:]
at
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
[spring-web-3.0.5.RELEASE.jar:]
at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
[spring-web-3.0.5.RELEASE.jar:]
at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
[spring-web-3.0.5.RELEASE.jar:]
at
org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3368)
[jbossweb-7.0.1.Final.jar:7.0.1.Final]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3821)
[jbossweb-7.0.1.Final.jar:7.0.1.Final]
at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:70)
[jboss-as-web-7.0.1.Final.jar:7.0.1.Final]
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
at
org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[:1.6.0_25]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[:1.6.0_25]
at java.lang.Thread.run(Thread.java:662) [:1.6.0_25]
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira