Skip to main content

Catalog and Lineage

Discussion Board for collaboration around Catalog and Lineage.

Announcements
Skip the ticket, Chat with Qlik Support instead for instant assistance.
cancel
Showing results for 
Search instead for 
Did you mean: 
Bhaskarkumar
Partner - Contributor III
Partner - Contributor III

MySql Source connection error while testing the connection

Hi All, 

i am new to Qlik Catalog, I need your help regarding creating the new Mysql source connection, I am getting below error message. Can anyone help with this?

 

errorqq.JPG

ore.error.code.TEST_CONNECTION_FAILED - Test connection attempt failed, please check the connection string, user name and password. com.podiumdata.base.error.PodiumFault: core.error.code.TEST_CONNECTION_FAILED - Test connection attempt failed, please check the connection string, user name and password. at com.nvs.core.service.impl.JdbcSourceDiscoverySvcImpl.getConnection(JdbcSourceDiscoverySvcImpl.java:135) at com.nvs.core.service.impl.JdbcSourceDiscoverySvcImpl.testSourceConnection(JdbcSourceDiscoverySvcImpl.java:145) at sun.reflect.GeneratedMethodAccessor387.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213) at com.sun.proxy.$Proxy182.testSourceConnection(Unknown Source) at com.nvs.core.service.impl.SourceConnectionSvcImpl.testConnection(SourceConnectionSvcImpl.java:187) at sun.reflect.GeneratedMethodAccessor370.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213) at com.sun.proxy.$Proxy188.testConnection(Unknown Source) at com.nvs.ui.service.impl.SourceConnectionServiceImpl.testSourceConnection(SourceConnectionServiceImpl.java:222) at com.nvs.ui.controller.SourceConnController.testSourceConnection(SourceConnController.java:279) at com.nvs.ui.controller.SourceConnController$$FastClassBySpringCGLIB$$e332ceeb.invoke(<generated>) at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:651) at com.nvs.ui.controller.SourceConnController$$EnhancerBySpringCGLIB$$84dc22eb.testSourceConnection(<generated>) at sun.reflect.GeneratedMethodAccessor369.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221) at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136) at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:114) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738) at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:963) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970) at org.springframework.web.servlet.FrameworkServlet.doPut(FrameworkServlet.java:883) at javax.servlet.http.HttpServlet.service(HttpServlet.java:663) at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846) at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:317) at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:127) at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:91) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331) at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:115) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331) at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:137) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331) at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:111) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331) at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:169) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331) at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331) at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:200) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331) at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:121) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331) at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:66) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331) at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:105) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331) at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:56) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331) at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:214) at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:177) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:688) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:373) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1594) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748) Caused by: com.podiumdata.base.error.PodiumFault: coop.error.code.JDBC_DRIVER_LOAD_FAILURE - JDBC failed to find class and load driver : com.mysql.jdbc.Driver at com.podiumdata.coop.gofer.impl.JdbcFileGofer.getDriver(JdbcFileGofer.java:179) at com.nvs.core.service.impl.JdbcSourceDiscoverySvcImpl.getConnection(JdbcSourceDiscoverySvcImpl.java:122) ... 102 more Caused by: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1365) at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1188) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264) at com.podiumdata.coop.gofer.impl.JdbcFileGofer.getDriver(JdbcFileGofer.java:176) ... 103 more

Labels (2)
1 Solution

Accepted Solutions
JitenderR
Employee
Employee

@Bhaskarkumar  based on the error, looks like you haven't copied the JDBC driver - refer to QDC documentation on where the JDBC driver needs to be copied. 

Caused by: com.podiumdata.base.error.PodiumFault: coop.error.code.JDBC_DRIVER_LOAD_FAILURE - JDBC failed to find class and load driver : com.mysql.jdbc.Driver at
com.podiumdata.coop.gofer.impl.JdbcFileGofer.getDriver(JdbcFileGofer.java:179) at com.nvs.core.service.impl.JdbcSourceDiscoverySvcImpl.getConnection(JdbcSourceDiscoverySvcImpl.java:122) ...

Regards

JR

View solution in original post

4 Replies
JitenderR
Employee
Employee

@Bhaskarkumar  based on the error, looks like you haven't copied the JDBC driver - refer to QDC documentation on where the JDBC driver needs to be copied. 

Caused by: com.podiumdata.base.error.PodiumFault: coop.error.code.JDBC_DRIVER_LOAD_FAILURE - JDBC failed to find class and load driver : com.mysql.jdbc.Driver at
com.podiumdata.coop.gofer.impl.JdbcFileGofer.getDriver(JdbcFileGofer.java:179) at com.nvs.core.service.impl.JdbcSourceDiscoverySvcImpl.getConnection(JdbcSourceDiscoverySvcImpl.java:122) ...

Regards

JR

Bhaskarkumar
Partner - Contributor III
Partner - Contributor III
Author

Sorry for late replay!

@JitenderR  thanks for responding.. yes your right. I have to download and copy the JDBC SQL driver to the tomcat home directory under the web file.  I am able to resolve the issue.

 

Thanks

Bhaskar

eduardo_palacios
Partner - Contributor III
Partner - Contributor III

Hi @JitenderR ! Where in the documentation you can find instructions regarding on where the JDBC drivers should be copied ?

I am also trying to connect to a mySQL database and to a SQL Server database and I am getting the same error.

Thanks in advance!

fabio_ribeiro
Partner - Creator
Partner - Creator

Hi Eduardo, I hope you are doing well.

This error occurred because your MySQL driver was not configured correctly.

To fix this error you must set your connectionString like:

mysql:
jdbc:mysql://[server_ip]:[mysql port]/[database]

MSSql
jdbc:sqlserver://[server_ip]:[mysql port];databaseName=[database_name]

Check if you have all jdbc drivers in this path:
/usr/local/qdc/apache-tomcat-9.0.33/webapps/qdc/WEB-INF/lib/

PS: the driver must be in the .jar file format