472,328 Members | 1,662 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

Mysql 4.1 meta.getColumns throws StringIndexOutOfBoundsException

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:
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
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
Jul 19 '05 #1
0 1531

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

Similar topics

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...
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 ...
by: jackiu | last post by:
------=_NextPart_000_0001_01C35286.10843160 Content-Type: multipart/alternative; boundary="----=_NextPart_001_0002_01C35286.10843160" ...
by: Alcyone Oliveira | last post by:
------=_NextPart_000_000D_01C36572.F6480CE0 Content-Type: multipart/alternative; boundary="----=_NextPart_001_000E_01C36572.F6480CE0" ...
by: Jairam Panickssery | last post by:
I have a simple JDBC 2.0(app driver) code snippet like: ########################### cSQL = DriverManager.getConnection(sDBURL, sDBUser, sDBPasswd);...
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...
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...
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...
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 )...
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
by: CD Tom | last post by:
This happens in runtime 2013 and 2016. When a report is run and then closed a toolbar shows up and the only way to get it to go away is to right...
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...

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.