on 2017 Jun 19 2:19 PM
Hi Everyone,
I am receiving a Sybase error message in Java, I will explain in details if it helps to find a solution to the problem. The Sybase database is wrapped around a third party software called Wincati developed by Sawtooth technologies( http://www.sawtooth.com/ ). This software has has a number of studies loaded and is primarily used in Survey Labs to interview and gather data. Each study folder has <studyname>.db file which can be accessed from the SQL Anywhere ISQL 2 prompt. Once the sybase connection is successful, queries can be executed.
We have an internal Java software which makes a connection to the Sybase Database to gather data which is thereby used in displaying different performance reports. We are currently in the process of switching from Wincati version 4 (backend Sybase version 9) to Wincati version 6 (backend Sybase version 11.0.1.2627).
Wincati 4 has been running for a long time and our internal Java software never had issues making a successful database connection with Sybase. However, with Wincati 6 version, it errors out in while creating the connection, as below-
Exception in thread "main" com.sybase.jdbc3.jdbc.SybSQLException: SQL Anywhere Error -141: Table 'attempt' not found at com.sybase.jdbc3.tds.Tds.a(Unknown Source) at com.sybase.jdbc3.tds.Tds.nextResult(Unknown Source) at com.sybase.jdbc3.jdbc.ResultGetter.nextResult(Unknown Source) at com.sybase.jdbc3.jdbc.SybStatement.nextResult(Unknown Source) at com.sybase.jdbc3.jdbc.SybStatement.nextResult(Unknown Source) at com.sybase.jdbc3.jdbc.SybStatement.queryLoop(Unknown Source) at com.sybase.jdbc3.jdbc.SybStatement.executeQuery(Unknown Source) at com.sybase.jdbc3.jdbc.SybStatement.executeQuery(Unknown Source) at example.SybaseConnectivity.makeConnection(SybaseConnectivity.java:30) at example.SybaseConnectivity.main(SybaseConnectivity.java:50)
The credentials, IP, port and database name are set correctly. We are using the jconn3 JDBC library to create the connection between Java & Sybase.
It gives a "Table not found" error for all tables with the Sybase version 11 DB when trying to run a query in Java. But running the same query directly from the sybase console returns the results correctly.
Maybe it has to do something with the JDBC library which may not be compatible with Sybase version 11? (The same queries run fine with Sybase version 9 inside the Java source code)
Any help will be greatly appreciated! Please let me know, if you have any queries regarding the information provided.
Warm Regards,
-Rajarshi.
User | Count |
---|---|
66 | |
11 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.