麦粉社区
>
帖子详情

数据连接 MySql数据库出错

其它 发表于 2022-6-15 08:52
发表于 2022-6-15 08:52:01

连接池初始化失败:SQL错误:Could not create connection to database server.


at smartbi.freequery.basicdata.MetaDataServiceImpl.testConnection(MetaDataServiceImpl.java:476)


at ...(...)


at smartbi.connectionpool.SmartbiPoolableConnection.doGetConnection(SmartbiPoolableConnection.java:40)


Caused by: 


java.sql.SQLException: SQL错误:Could not create connection to database server.


at smartbi.connectionpool.SmartbiPoolableConnection.doGetConnection(SmartbiPoolableConnection.java:40)


at smartbi.connectionpool.ConnectionPool.doGetConnection(ConnectionPool.java:451)


at smartbi.connectionpool.ConnectionPool.driverConnect(ConnectionPool.java:339)


at smartbi.connectionpool.ConnectionPool.getConnection(ConnectionPool.java:521)


at smartbi.connectionpool.ConnectionPool.getConnection(ConnectionPool.java:483)


at smartbi.freequery.basicdata.MetaDataServiceImpl.testConnection(MetaDataServiceImpl.java:430)


at smartbi.freequery.client.datasource.DataSourceService.testConnectionList(DataSourceService.java:211)


at sun.reflect.GeneratedMethodAccessor4591.invoke(Unknown Source)


at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)


at java.lang.reflect.Method.invoke(Method.java:508)


at smartbi.framework.rmi.ClientService.execute(Smartbi:118)


at smartbi.framework.rmi.RMIServlet.processExecute(RMIServlet.java:230)


at smartbi.framework.rmi.RMIServlet.doPost(RMIServlet.java:168)


at javax.servlet.http.HttpServlet.service(HttpServlet.java:595)


at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)


at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1233)


at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:782)


at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:481)


at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)


at com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:136)


at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:97)


at smartbi.extension.ExtensionFilter$2.doFilter(ExtensionFilter.java:163)


at smartbi.extension.ExtensionFilter$1.doFilter(ExtensionFilter.java:152)


at smartbi.security.patch.PatchFilter.doFilter(PatchFilter.java:70)


at smartbi.extension.ExtensionFilter$1.doFilter(ExtensionFilter.java:152)


at smartbi.extension.ExtensionFilter.doFilterInternal(ExtensionFilter.java:175)


at smartbi.extension.ExtensionFilter.doFilter(ExtensionFilter.java:64)


at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:195)


at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:91)


at smartbi.framework.rmi.TransactionFilter.doFilter(Smartbi:80)


at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:195)


at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:91)


at smartbi.freequery.filter.GZIPFilter.doFilter(GZIPFilter.java:189)


at smartbi.freequery.filter.Filter.doFilter(Filter.java:36)


at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:195)


at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:91)


at smartbi.freequery.filter.CheckIsLoggedFilter.doFilter(CheckIsLoggedFilter.java:208)


at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:195)


at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:91)


at smartbi.freequery.filter.TraceFilter.doFilter(TraceFilter.java:61)


at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:195)


at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:91)


at smartbi.framework.RedisSessionFilter.doFilter(Smartbi:125)


at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:195)


at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:91)


at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:967)


at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1107)


at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:4047)


at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:304)


at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1016)


at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1817)


at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:213)


at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:463)


at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:530)


at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:316)


at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:287)


at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)


at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)


at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175)


at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)


at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)


at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)


at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)


at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)


at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)


at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1892)

发表于 2022-6-15 08:59:58
检查一下字符串、用户名还有密码等是否有错误吧
  •   陈庆党
    已经检查字符串、用户名、密码,通过客户端工具连接是没有问题的
    2022-6-15 09:05| 回复
  •   E-R图
     回复 陈庆党
    参考文档排查一下吧https://wiki.smartbi.com.cn/pages/viewpage.action?pageId=76677652
    2022-6-15 15:48| 回复

回复

使用道具 举报

高级模式
B Color Image Link Quote Code Smilies
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

3回帖数 0关注人数 975浏览人数
最后回复于:2022-6-15 08:59
快速回复 返回顶部 返回列表