Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hikariCP exception #121

Closed
chenleijava opened this issue Jul 28, 2014 · 0 comments
Closed

hikariCP exception #121

chenleijava opened this issue Jul 28, 2014 · 0 comments

Comments

@chenleijava
Copy link

hello,My English is poor,I do not know if Clears

using hikaricp1.4.0 appears bug, normal use druid connection pool.

org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:

Error querying database. Cause: java.lang.ArrayStoreException: com.zaxxer.hikari.proxy.StatementJavassistProxy

The error may exist in file [D:\work\osc\dcserver2.1\appGameServer\src\main\java\com\dc\gameserver\serverCore\model\dbsql\mapper\TUserMapper.xml]

The error may involve com.dc.gameserver.serverCore.model.dbsql.mapper.TUserMapper.selectByExample

The error occurred while executing a query

Cause: java.lang.ArrayStoreException: com.zaxxer.hikari.proxy.StatementJavassistProxy

at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:75)
at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:371)
at com.sun.proxy.$Proxy14.selectList(Unknown Source)
at org.mybatis.spring.SqlSessionTemplate.selectList(SqlSessionTemplate.java:198)
at org.apache.ibatis.binding.MapperMethod.executeForMany(MapperMethod.java:119)
at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:63)
at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:52)
at com.sun.proxy.$Proxy16.selectByExample(Unknown Source)
at com.dc.gameserver.serverCore.model.dbsql.modelService.PlayerService.getUserByAccount(PlayerService.java:1224)
at com.dc.gameserver.serverCore.model.dbsql.modelService.PlayerService$$FastClassBySpringCGLIB$$e7a5002a.invoke(<generated>)
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:640)
at com.dc.gameserver.serverCore.model.dbsql.modelService.PlayerService$$EnhancerBySpringCGLIB$$d1001573.getUserByAccount(<generated>)
at com.dc.gameserver.serverCore.controller.handleController.LoginController.loginController.DispatchMessageLit(loginController.java:85)
at com.dc.gameserver.extComponents.nettyEngine4.ServerHandler.channelRead(ServerHandler.java:144)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)
at io.netty.channel.AbstractChannelHandlerContext.access$700(AbstractChannelHandlerContext.java:32)
at io.netty.channel.AbstractChannelHandlerContext$8.run(AbstractChannelHandlerContext.java:324)
at io.netty.util.concurrent.DefaultEventExecutor.run(DefaultEventExecutor.java:36)
at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116)
at java.lang.Thread.run(Thread.java:745)

Caused by: org.apache.ibatis.exceptions.PersistenceException:

Error querying database. Cause: java.lang.ArrayStoreException: com.zaxxer.hikari.proxy.StatementJavassistProxy

The error may exist in file [D:\work\osc\dcserver2.1\appGameServer\src\main\java\com\dc\gameserver\serverCore\model\dbsql\mapper\TUserMapper.xml]

The error may involve com.dc.gameserver.serverCore.model.dbsql.mapper.TUserMapper.selectByExample

The error occurred while executing a query

Cause: java.lang.ArrayStoreException: com.zaxxer.hikari.proxy.StatementJavassistProxy

at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:26)
at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:111)
at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:102)
at sun.reflect.GeneratedMethodAccessor395.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:358)
... 19 more

Caused by: java.lang.ArrayStoreException: com.zaxxer.hikari.proxy.StatementJavassistProxy
at com.zaxxer.hikari.util.FastList.add(FastList.java:60)
at com.zaxxer.hikari.proxy.ConnectionProxy.trackStatement(ConnectionProxy.java:251)
at com.zaxxer.hikari.proxy.ConnectionProxy.createStatement(ConnectionProxy.java:332)
at com.zaxxer.hikari.pool.HikariPool.isConnectionAlive(HikariPool.java:419)
at com.zaxxer.hikari.pool.HikariPool.getConnection(HikariPool.java:171)
at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:91)
at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:77)
at org.mybatis.spring.transaction.SpringManagedTransaction.openConnection(SpringManagedTransaction.java:81)
at org.mybatis.spring.transaction.SpringManagedTransaction.getConnection(SpringManagedTransaction.java:67)
at org.apache.ibatis.executor.BaseExecutor.getConnection(BaseExecutor.java:279)
at org.apache.ibatis.executor.SimpleExecutor.prepareStatement(SimpleExecutor.java:72)
at org.apache.ibatis.executor.SimpleExecutor.doQuery(SimpleExecutor.java:59)
at org.apache.ibatis.executor.BaseExecutor.queryFromDatabase(BaseExecutor.java:267)
at org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:137)
at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:96)
at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:77)
at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:108)
... 24 more

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants