BigQuery Connector Error - Json Exception

Hi everyone, I am trying to use the BigQuery Connector, and am coming up with an error message that I am unable to diagnose. I am using 4.7.

I believe that I set up my JDBC correctly:

My Google Authentication appears to run OK:

But the BigQuery Connector fails:

Here is the error message:

And when I look at the log, this is what it says:
2023-01-20 10:24:32,226 : ERROR : KNIME-Worker-20-Google BigQuery Connector 3:7 : : Node : Google BigQuery Connector : 3:7 : Execute failed: com/google/api/client/googleapis/json/GoogleJsonResponseException
java.sql.SQLException: com/google/api/client/googleapis/json/GoogleJsonResponseException
at org.knime.database.util.Futures.throwDatabaseExecutionException(
at org.knime.database.connection.impl.DBConnectionManager.initializeConnection(
at org.knime.database.connection.impl.DBConnectionManager.(
at org.knime.database.session.impl.DefaultDBSession.(
at org.knime.database.session.impl.DBSessionFactory.create(
at org.knime.database.session.DBSessionCache.getOrCreate(
at org.knime.database.node.connector.AbstractDBConnectorNodeModel.registerSession(
at org.knime.database.node.connector.AbstractDBConnectorNodeModel.execute(
at org.knime.core.node.NodeModel.executeModel(
at org.knime.core.node.Node.invokeFullyNodeModelExecute(
at org.knime.core.node.Node.execute(
at org.knime.core.node.workflow.NativeNodeContainer.performExecuteNode(
at org.knime.core.node.exec.LocalNodeExecutionJob.mainExecute(
at org.knime.core.node.workflow.NodeExecutionJob.internalRun(
at org.knime.core.util.ThreadUtils$RunnableWithContextImpl.runWithContext(
at org.knime.core.util.ThreadUtils$
at java.base/java.util.concurrent.Executors$ Source)
at java.base/ Source)
at org.knime.core.util.ThreadPool$
at org.knime.core.util.ThreadPool$
Caused by: java.lang.NoClassDefFoundError: com/google/api/client/googleapis/json/GoogleJsonResponseException
at com.simba.googlebigquery.googlebigquery.core.BQConnection.connect(Unknown Source)
at com.simba.googlebigquery.jdbc.common.BaseConnectionFactory.doConnect(Unknown Source)
at com.simba.googlebigquery.jdbc.common.AbstractDriver.connect(Unknown Source)
at org.knime.database.connection.UrlDBConnectionController$ControlledDriver.connect(
at org.knime.database.connection.UrlDBConnectionController.connect(
at org.knime.database.connection.UrlDBConnectionController.createConnection(
at org.knime.database.connection.AbstractConnectionProvider.createConnection(
at org.knime.database.connection.impl.DBConnectionManager.lambda$2(
at java.base/ Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$ Source)
at java.base/ Source)
Caused by: java.lang.ClassNotFoundException:
at java.base/ Source)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
… 12 more

Any thoughts?

Hello @npatrick,

and welcome to KNIME Community!

It’s been a while since I connected to BigQuery but seems like scope is missing in Google Authentication (API Key) node.

Check Connecting to Google BigQuery example in DB documentation. There you’ll see they have defined scope for connection.


Thank you for your response. I did what you suggested, but it did not solve my problem.

I was able to get it to work, with the following changes:

  1. I added both the directory and subdirectory for the Ddatabase driver setup:

  2. I changed the database name in the Connector node to reflect the DatabaseID (unique code given by Google):

I am not sure why this made it work, but it did. :slight_smile:


@npatrick, Thank you. Sincerely. I’ve been struggling with this for quite some time.

Adding the subdir never occurred to me. It’s finally working. I owe you a coffee or a beer.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.