question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

JDBC Importer Fixes

See original GitHub issue

Prerequisites

Description

The following issues we’re identified by @cygnus-x-1 when testing the JDBC importer:

  • You currently cannot add a connection without entering a username / password, even if it is not required.
  • I’m unclear why there is an option for a username and password as that information was requested as part of the connection setup. Perhaps it was only needed for testing the connection there? If that’s the case, then the UI should indicate that.
  • The instructions in the ‘Configuration’ pane don’t actually mention that you need to perform an SQL query to retrieve sample data before dragging and dropping attributes.
  • I am unable to perform metadata queries of a database (.table, .schema , etc) as they fail validation.

Steps to Reproduce

  1. [First Step]
  2. [Second Step]
  3. [and so on…]

Expected behaviour: [What you expect to happen]

Actual behaviour: [What actually happens]

Reproduces how often: [What percentage of the time does it reproduce?]

Additional Information

Any additional information, configuration or data that might be necessary to reproduce the issue.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
Auriga2commented, May 20, 2021

The issue with the SQLite DB mentioned in https://github.com/constellation-app/constellation/issues/141 could be reproduced and it was thrown when the ResultSetMetaData (PreparedStatement.getMetaData()) was called after all of the rows of the ResultSet have been consumed, i.e., rs.next() has been called until it returns false.

Easily fixed by moving that part of the code down, which wouldn’t make any difference on other databases.

When the username and password are not required, I can just leave those fields blank.

0reactions
Auriga2commented, May 24, 2021

With all the error pop ups, the exception was also thrown by the LOGGER.log(). Fixed that also. The Add Drive window now lists the Name under the Driver and Name auto populates the first item when the Driver is selected. I left the drop down, in case there could be multiple items for certain drivers perhaps.

Read more comments on GitHub >

github_iconTop Results From Across the Web

JDBC importer for Elasticsearch - GitHub
The Java Database Connection (JDBC) importer allows to fetch data from JDBC sources for indexing into Elasticsearch. The JDBC importer was designed for...
Read more >
Release notes - JDBC Driver for SQL Server - Microsoft Learn
This article lists the releases of the Microsoft JDBC Driver for SQL Server. For each release version, the changes are named and described....
Read more >
JR50229: JDBC CONNECTOR FAILS WITH METHOD NOT ...
The error was due to a limitation in the JDBC Connector code. When fetching data, the connector would assume that the JDBC driver...
Read more >
The import oracle.jdbc cannot be resolved - Stack Overflow
I am currently working on a project where we have to connect to a database and through Java insert values into our database....
Read more >
problem importing oracle.jdbc.pool.OracleDataSource and ...
It sounds like your issue may be due to a rogue instance of the Oracle JDBC driver already being available to the classpath....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found