Welcome to Knowage Q&A, where you can ask questions and receive answers from other members of the community.
0 votes
1 view
hi, I am writing for a problem that I am having when testing a connection. I have to use the knowage software for a university data warehousing exam. when I connect to the "localhost: 8080 / knowage" site, click on "data source", fill in everything and then click on "test", I get the error "Error
Connection Test failed, please look for more details in log file and check Your parameters ".
How can I solve the problem? thank you very much! I attach the screenshots of the procedure done
Environment Knowage 6_4_4, Windows 8, Google Chrome
in Installation by (140 points)

3 Answers

0 votes

Hi lcastiglia96,

it seems that there is something wrong in your data source definition.

In case of jdbc connection you have to specify the url of your connection and driver.

For mysql/mariadb the syntaxs are:

  • JDBC Driver
    • com.mysql.jdbc.Driver
    • org.mariadb.jdbc.Driver
  • URL
    • jdbc:mysql://host1:33060/sakila
    • jdbc:mariadb://host1:33060/sakila
Then set user/password.
To better understand where there is the error go to Knowage folder and then on "log" folder and look at "Knowage.log" file. If checking the parameters you defined into data source detail or looking the log the problem is not cleare, please write again attaching the "Knowage.log".
Thank you
by (600 points)
hi I entered everything well both as URL and as Driver! I don't understand what the problem is and devotion trying to solve it because I have to finish the university exam project to take the exam. however, now here I report the "Knowage" file that I found in the "logs" folder. please help me!

[http-bio-8080-exec-4] 21 gen 2020 15:07:06,270 ERROR it.eng.spagobi.tools.datasource.service.rest.TestConnection.testDataSourceNew:200 - Error testing datasources

java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1702)

at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1547)

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Unknown Source)

at it.eng.spagobi.tools.datasource.service.rest.TestConnection.testDataSourceNew(TestConnection.java:186)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

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

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

at java.lang.reflect.Method.invoke(Unknown Source)

at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:140)

at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:294)

at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:248)

at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:235)

at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:398)

at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:205)

at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:228)

at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56)

at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:51)

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

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)

at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)

at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:409)

at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1044)

at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)

at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:313)

at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

0 votes

Hi lcastiglia96,
try to set the following parameters in the data source definition:

  • check the "Use as cache" flag 
  • insert the following URL: jdbc:mysql//localhost:3306/derivato_visita

This should fix the problem. 

by (9.3k points)
i try it but this doesn't should fix the problem!!!
sorry but I didn't understand what I have to do because I'm a beginner. where is the datasource definition? where should I enter URL? can you show me the steps i need to take through screenshots, please?

use this configuration

 I used this configuration but it's the same situation.... i don't know the solution of this big problem. i'm sad

Please ensure that an instance of MySQL is running at specified port number 3306.
how can I make sure that an instance of MySQL is running at the specified port number 3306? Maybe I understood the problem: the version of "mysql connector jdk ......." is not good; how can i understand which version to download and use? thanks

Open the task manager by pressing ctrl+alt+del, go to Services tab and check if there is an instance of MySQL or MariaDB with status Running.

maybe you don't have a correct driver..  sql driver or mysql driver check your lib if there are driver.
0 votes

If you are connecting to a MySQL 8 database, this is the solution

https://www.knowage-suite.com/qa/5106/is-mysql-80-compatible-in-knowage-7-1-5

by (2.8k points)
...