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.

Sybase JTDS / jConnect Problems

See original GitHub issue

Hi,

Using the version 6 or above of DBeaver (including the one released on 2021-08-02), I’m unable to connect to Sybase database using jConnect. Using the JTDS driver, I was able to connect, but I faced the problem of this ticket: https://github.com/dbeaver/dbeaver/issues/3528

I tried using jConnect, but in my case I must use the parameter APPLICATIONNAME, but it seems to me that this version is not passing the value to the connection string. Using DBeaver 5.1.6 with jConnect driver works fine.

In summary:

Current Version of DBeaver (released on 2021-08-02) With JTDS:

  • Create the connection with APPNAME
  • It connects
  • If I specify the column names, I’m able to execute queries. If I use * or joins, it crashes
  • Tables, users and other objects are not listed

With jConnect

  • Create the connection with APPLICATIONNAME (the parameter name is different from JTDS)
  • It doesn’t connect, because it’s like I’m not sending this parameter value (although it’s filled)

DBeaver 5.1.6 With jConnect

  • Create the connection with APPLICATIONNAME
  • It connects
  • Everything works fine

System information:

  • Windows 10 Pro x64 (Brazilian Portuguese)
  • DBeaver version - 21.1.4.202108020335
  • No Additional extensions

Include any warning/errors/backtraces from the logs

Error log’s of DBeaver version - 21.1.4.202108020335

JTDS Driver

Can't read schema list

java.lang.NullPointerException
	at org.jkiss.dbeaver.ext.mssql.model.generic.SQLServerMetaModel.loadSchemas(SQLServerMetaModel.java:349)
	at org.jkiss.dbeaver.ext.generic.model.GenericDataSource.initialize(GenericDataSource.java:550)
	at org.jkiss.dbeaver.registry.DataSourceDescriptor.connect(DataSourceDescriptor.java:926)
	at org.jkiss.dbeaver.runtime.jobs.ConnectJob.run(ConnectJob.java:70)
	at org.jkiss.dbeaver.runtime.jobs.ConnectionTestJob.run(ConnectionTestJob.java:103)
	at org.jkiss.dbeaver.model.runtime.AbstractJob.run(AbstractJob.java:105)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)

jConnect Driver

RAISERROR executed:  Acesso negado. Usuário deve possuir uma credencial válida ou específica para esse usuário (Access denied. User must have a valid or specific credential for that user)

eclipse.buildId=unknown
java.version=11.0.11
java.vendor=AdoptOpenJDK
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=pt_BR
Command-line arguments:  -os win32 -ws win32 -arch x86_64

In the case of jConnect driver, as mentioned before, it’s like the value of APPLICATIONNAME its not being appended to the connection string

For the time being, I’m reverting to 5.1.6

Thanks in advance

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
hufersilcommented, Nov 23, 2021

It is still happening. I made a video, but I’m not good at video editing. I have to hide the credentials / ip etc, then I’ll post it here.

0reactions
hufersilcommented, May 19, 2022

I got it working, but I think this is a bug

The client identification panel is overriding that driver parameter. When I put the value in this pane, it works fine.

Captura de Tela 2022-05-19 às 15 32 05

In other words

  • if I set the value driver properties, like in 5.1.6 version, the connection does not work
  • if I set the value in this panel, it works
Read more comments on GitHub >

github_iconTop Results From Across the Web

SQL Server and Sybase JDBC driver Bugs - jTDS - SourceForge
(jConnect handles this scenario nicely.) I'll attach a test program that demonstrates the problem. It opens a connection, waits for the user ...
Read more >
java - NamedParameterJdbcTemplate jconnect decimal issue
I am using NamedParameterJdbcTemplate to insert data into a table. (Spring 2.5.3/Java 1.6) I am using jconnect driver to connect to sybase jdbc: ......
Read more >
Sybase database pool not claiming used connections
We have a JBoss 4.0.1sp1 + Sybase 12 + JConnect 5.5 with a 50 connections pool. ... I wonder what might be the...
Read more >
jTDS vs. JConnect - Google Groups
Now that jTDS is 1.0, what will Sybase's JConnect strategy be going forward? Will Sybase build JConnect on top of jTDS? Will Sybase...
Read more >
Sybase Secure JDBC driver not working after 11.2 upgrade
After upgrade the JDBC driver "Sybase SQL Driver (jConnect 7.0)" id ... Database with default Sybase driver - Sybase (jTDS Driver 1.3.1).
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