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.

Can't connect to Pervasive 64-bit ODBC source

See original GitHub issue

I’m having an issue identical to that reported in #522 . This is especially an issue now that you’ve discontinued the 32-bit version of DBeaver.

32-bit DBeaver works with a 32-bit ODBC connection. 64-bit DBeaver refuses to work with 64-bit ODBC connection with error: [PSQL][ODBC Client Interface]Parameter number out of range.

The DB on the other end is Pervasive SQL. ODBC should not need any username/password to connect. I tried checking “No authentication” in driver settings but it made no difference.

This source DOES successfully connect when I test it in the Windows 64-bit ODBC Connection Manager

Here is my dbeaver-debug.log :

2019-03-28 18:01:31.875 - DBeaver 6.0.1.201903251040 is starting
2019-03-28 18:01:31.875 - OS: Windows 10 10.0 (amd64)
2019-03-28 18:01:31.891 - Java version: 1.8.0_77 by Oracle Corporation (64bit)
2019-03-28 18:01:31.891 - Install path: 'file:/C:/Program Files/DBeaver/'
2019-03-28 18:01:31.891 - Instance path: 'file:/C:/Users/srider/.dbeaver4/'
2019-03-28 18:01:31.891 - Memory available 61Mb/910Mb
2019-03-28 18:01:31.906 - Starting RMI server at 20488
2019-03-28 18:01:31.969 - Run workbench
2019-03-28 18:01:31.969 - > Start org.eclipse.e4.ui.workbench.swt [0.14.400.v20181022-1348]
2019-03-28 18:01:31.984 - > Start org.eclipse.e4.core.services [2.1.300.v20180930-0910]
2019-03-28 18:01:31.984 - > Start org.eclipse.e4.core.contexts [1.7.100.v20180817-1215]
2019-03-28 18:01:31.984 - > Start org.eclipse.e4.ui.services [1.3.300.v20180920-1522]
2019-03-28 18:01:32.031 - > Start org.eclipse.e4.ui.di [1.2.400.v20180920-1522]
2019-03-28 18:01:32.073 - > Start com.ibm.icu.base [58.2.0.v20170418-1837]
2019-03-28 18:01:32.074 - > Start org.eclipse.emf.common [2.15.0.v20180914-1817]
2019-03-28 18:01:32.089 - > Start org.eclipse.emf.ecore [2.16.0.v20181124-0637]
2019-03-28 18:01:32.167 - > Start org.eclipse.emf.ecore.xmi [2.15.0.v20180706-1146]
2019-03-28 18:01:32.308 - > Start org.eclipse.core.filesystem [1.7.200.v20180828-0158]
2019-03-28 18:01:32.355 - > Start org.eclipse.core.resources [3.13.200.v20181121-1020]
2019-03-28 18:01:32.480 - > Start org.eclipse.e4.ui.workbench.addons.swt [1.3.300.v20181102-1042]
2019-03-28 18:01:32.496 - > Start org.eclipse.core.expressions [3.6.200.v20180817-1401]
2019-03-28 18:01:32.527 - > Start org.eclipse.e4.ui.workbench.renderers.swt [0.14.400.v20181112-1716]
2019-03-28 18:01:32.621 - > Start org.eclipse.e4.ui.bindings [0.12.300.v20180913-1535]
2019-03-28 18:01:32.667 - > Start org.eclipse.e4.core.di.extensions [0.15.200.v20180817-1215]
2019-03-28 18:01:32.983 - > Start org.eclipse.e4.ui.css.swt [0.13.300.v20181030-1443]
2019-03-28 18:01:33.057 - > Start org.eclipse.e4.ui.css.swt.theme [0.12.100.v20180828-0227]
2019-03-28 18:01:33.791 - Initializing DBeaver 6.0.1
2019-03-28 18:01:33.791 - Host plugin: org.jkiss.dbeaver.core.application 6.0.1.201903251040
2019-03-28 18:01:33.791 - Initialize Core...
2019-03-28 18:01:33.791 - Can't find BC security provider. Use default JCE.
2019-03-28 18:01:33.791 - BouncyCastle not registered, using the default JCE provider
2019-03-28 18:01:33.900 - > Start org.eclipse.team.core [3.8.400.v20181109-0825]
2019-03-28 18:01:33.916 - > Start org.jkiss.dbeaver.ui.navigator [1.0.5.201903251040]
2019-03-28 18:01:34.010 - Total database drivers: 71 (71)
2019-03-28 18:01:34.025 - > Start org.eclipse.equinox.security [1.3.0.v20181115-0746]
2019-03-28 18:01:34.041 - > Start org.eclipse.ui.net [1.3.300.v20180827-1041]
2019-03-28 18:01:34.041 - Proxy service 'org.eclipse.core.net.proxy.IProxyService' loaded
2019-03-28 18:01:34.041 - Core initialized (250ms)
2019-03-28 18:01:34.041 - Configure workbench window
2019-03-28 18:01:34.041 - > Start org.eclipse.core.net [1.3.400.v20181030-1645]
2019-03-28 18:01:34.057 - > Start org.eclipse.help [3.8.200.v20180821-0700]
2019-03-28 18:01:34.088 - Create actions
2019-03-28 18:01:34.088 - Disable Eclipse action set 'org.eclipse.ui.edit.text.actionSet.annotationNavigation'
2019-03-28 18:01:34.104 - Disable Eclipse action set 'org.eclipse.ui.WorkingSetActionSet'
2019-03-28 18:01:34.135 - > Start org.eclipse.ui.editors [3.11.300.v20180914-0606]
2019-03-28 18:01:34.135 - > Start org.eclipse.core.filebuffers [3.6.400.v20181028-0633]
2019-03-28 18:01:34.603 - > Start org.eclipse.search [3.11.400.v20181028-0633]
2019-03-28 18:01:34.619 - > Start org.eclipse.ui.workbench.texteditor [3.11.200.v20181108-1458]
2019-03-28 18:01:34.641 - Initialize workbench window
2019-03-28 18:01:34.641 - Finish initialization
2019-03-28 18:01:34.672 - > Start org.jkiss.dbeaver.ui.editors.sql [1.0.5.201903251040]
2019-03-28 18:01:34.782 - > Start org.jkiss.dbeaver.ext.erd [2.0.107.201903251040]
2019-03-28 18:01:34.875 - > Start org.jkiss.dbeaver.ui.editors.base [1.0.5.201903251040]
2019-03-28 18:01:35.657 - > Start org.eclipse.equinox.p2.core [2.5.100.v20180822-1532]
2019-03-28 18:01:35.672 - > Start org.eclipse.equinox.p2.operations [2.5.200.v20180928-1359]
2019-03-28 18:01:35.688 - > Start org.eclipse.equinox.p2.engine [2.6.100.v20180822-1302]
2019-03-28 18:01:35.688 - > Start org.eclipse.equinox.p2.metadata [2.4.200.v20181102-0649]
2019-03-28 18:01:35.703 - > Start org.eclipse.equinox.p2.ui.sdk.scheduler [1.4.200.v20181102-0649]
2019-03-28 18:01:35.703 - > Start org.eclipse.equinox.p2.updatechecker [1.2.100.v20180827-1122]
2019-03-28 18:01:35.719 - > Start org.eclipse.equinox.p2.metadata.repository [1.3.100.v20180822-1302]
2019-03-28 18:01:35.719 - > Start org.eclipse.equinox.p2.repository [2.4.200.v20181005-1131]
2019-03-28 18:01:35.750 - > Start org.jkiss.dbeaver.ui.editors.data [1.0.5.201903251040]
2019-03-28 18:01:35.844 - > Start org.eclipse.equinox.p2.ui [2.5.400.v20181113-1303]
2019-03-28 18:01:35.907 - > Start org.jkiss.dbeaver.ext.sample.database [1.0.42.201903251040]
2019-03-28 18:01:35.907 - > Start org.jkiss.dbeaver.ext.ui.tipoftheday [1.0.11.201903251040]
2019-03-28 18:01:42.622 - > Start org.jkiss.dbeaver.ext.generic [2.3.91.201903251040]
2019-03-28 18:01:49.375 - Connect with 'jdbc:odbc:FOSDATA' (odbc-169c689bcaf-601dcda38da69361)
2019-03-28 18:01:49.515 - Connection failed (odbc-169c689bcaf-601dcda38da69361)
2019-03-28 18:01:49.515 - org.jkiss.dbeaver.model.exec.DBCConnectException: [PSQL][ODBC Client Interface]Parameter number out of range.
org.jkiss.dbeaver.model.exec.DBCConnectException: [PSQL][ODBC Client Interface]Parameter number out of range.
	at org.jkiss.dbeaver.model.impl.jdbc.JDBCDataSource.openConnection(JDBCDataSource.java:179)
	at org.jkiss.dbeaver.ext.generic.model.GenericDataSource.openConnection(GenericDataSource.java:124)
	at org.jkiss.dbeaver.model.impl.jdbc.JDBCExecutionContext.connect(JDBCExecutionContext.java:89)
	at org.jkiss.dbeaver.model.impl.jdbc.JDBCRemoteInstance.initializeMainContext(JDBCRemoteInstance.java:86)
	at org.jkiss.dbeaver.model.impl.jdbc.JDBCRemoteInstance.<init>(JDBCRemoteInstance.java:54)
	at org.jkiss.dbeaver.model.impl.jdbc.JDBCDataSource.initializeRemoteInstance(JDBCDataSource.java:105)
	at org.jkiss.dbeaver.ext.generic.model.GenericDataSource.<init>(GenericDataSource.java:106)
	at org.jkiss.dbeaver.ext.generic.model.meta.GenericMetaModel.createDataSourceImpl(GenericMetaModel.java:67)
	at org.jkiss.dbeaver.ext.generic.GenericDataSourceProvider.openDataSource(GenericDataSourceProvider.java:95)
	at org.jkiss.dbeaver.registry.DataSourceDescriptor.connect(DataSourceDescriptor.java:770)
	at org.jkiss.dbeaver.runtime.jobs.ConnectJob.run(ConnectJob.java:70)
	at org.jkiss.dbeaver.ui.dialogs.connection.ConnectionWizard$ConnectionTester.run(ConnectionWizard.java:232)
	at org.jkiss.dbeaver.model.runtime.AbstractJob.run(AbstractJob.java:102)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: java.sql.SQLException: [PSQL][ODBC Client Interface]Parameter number out of range.
	at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6964)
	at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7121)
	at sun.jdbc.odbc.JdbcOdbc.SQLGetDataInteger(JdbcOdbc.java:3818)
	at sun.jdbc.odbc.JdbcOdbcResultSet.getDataInteger(JdbcOdbcResultSet.java:5637)
	at sun.jdbc.odbc.JdbcOdbcResultSet.getInt(JdbcOdbcResultSet.java:582)
	at sun.jdbc.odbc.JdbcOdbcConnection.buildTypeInfo(JdbcOdbcConnection.java:1513)
	at sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection.java:381)
	at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:174)
	at org.jkiss.dbeaver.model.impl.jdbc.JDBCDataSource.lambda$0(JDBCDataSource.java:148)
	at org.jkiss.dbeaver.model.impl.jdbc.JDBCDataSource.openConnection(JDBCDataSource.java:157)
	... 13 more
2019-03-28 18:01:58.835 - DBeaver is stopping
2019-03-28 18:01:58.835 - Stop RMI server

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:16 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
strider72commented, Apr 1, 2019

The following worked for me! Pervasive JDBC connection

4reactions
serge-ridercommented, Apr 2, 2019

@Lonniebiz driver configuration will be added in 6.0.2.

Read more comments on GitHub >

github_iconTop Results From Across the Web

When Trying to connect to ODBC Data Source from 64 Bit ...
In the Create New Data Source window, selected Pervasive ODBC Client Interface and clicked Finish. 2. The Pervasive ODBC Client DSN Setup window...
Read more >
64-bit DBeaver can't connect to ODBC source - Stack Overflow
I have a program on a server running Pervasive SQL. I can connect to it via an ODBC connection running the Pervasive ODBC...
Read more >
Connecting 64-bit Pervasive Server to 64-bit SQL Server via ...
I am trying to utilize a 32-bit ODBC Client Interface Driver to connect a 64-bit Pervasive SQL Server to a 64-bit MS SQL...
Read more >
How do I set up an ODBC Pervasive DSN for Purchasing and ...
Resolution · From the Windows taskbar, click Start and then select Programs, Administrative Tools, Data Sources (ODBC). · Click the System DSN tab...
Read more >
Creating an ODBC Data Source for Actian PSQL
(Again, if you don't see this name, you may be in the 64-bit ODBC Administrator.) 4. In the Pervasive ODBC Engine DSN Setup...
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