473,396 Members | 2,087 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Mysql 4.1 meta.getColumns throws StringIndexOutOfBoundsException

Hi,
I am connecting to a mysql 4.1 db with mysql connectorJ 3.0.7 and when
I run a meta.getColumns(null, null, tableName, "%") on one particular
table the following exception is thrown.

Exception occurred during event dispatching:
java.lang.StringIndexOutOfBoundsException: String index out of range:
-1
at java.lang.String.substring(String.java:1497)
at com.mysql.jdbc.DatabaseMetaData.getColumns(Databas eMetaData.java:877)
I can perform SELECT statements when connected (via connector J) the
only time an exception is thrown is when I call
DatabaseMetaData.getColumns.
To make matters stranger, if I set up an ODBC connection (on Windows
2000) to the same database the exception is not thrown and I can see
all columns.
The table is myIsam and I can send a copy of the frm MYD and MYI files
if required.

Thanks in advance
Paul.
Jul 19 '05 #1
0 1576

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Torsten Schmidt | last post by:
Hi, I'm trying to connect to a mysql-Server using PHP's mysql-function mysql_connect. The host on which the mysql-server is running is not the same as the host apache and php are running on. The...
2
by: Jon Dellaria | last post by:
I have been using MySql as the database using JSP's and JavaBeans but recently I have wanted to start using the database connection pooling mechanism built into TomCat. I think I am having a...
0
by: jackiu | last post by:
------=_NextPart_000_0001_01C35286.10843160 Content-Type: multipart/alternative; boundary="----=_NextPart_001_0002_01C35286.10843160" ------=_NextPart_001_0002_01C35286.10843160 Content-Type:...
0
by: Alcyone Oliveira | last post by:
------=_NextPart_000_000D_01C36572.F6480CE0 Content-Type: multipart/alternative; boundary="----=_NextPart_001_000E_01C36572.F6480CE0" ------=_NextPart_001_000E_01C36572.F6480CE0 Content-Type:...
0
by: Jairam Panickssery | last post by:
I have a simple JDBC 2.0(app driver) code snippet like: ########################### cSQL = DriverManager.getConnection(sDBURL, sDBUser, sDBPasswd); DatabaseMetaData dmd = cSQL.getMetaData(); //rs...
6
by: joerg | last post by:
Hello world, my program connects to a db2 database and needs to find out the column names and data types for a specific table. The code works fine with mysql and derby, but returns an empty...
6
by: nrperry | last post by:
Hello, I have a question about this error: Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -2 I am doing my java development in IBM Rationale...
3
by: hcarlens | last post by:
Hi all, I am having a problem with a vigenere decryption method I am writing. I have tried to solve this but really can't figure out why this is happening. I get a...
1
by: paulq182 | last post by:
PLEASE HELP ME WITH MY CODE?? import java.sql.*; import java.io.*; class min_filmdb_rel_mysql { public static void main (String args ) throws SQLException, IOException {
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.