method equalsIgnoreCase raise java.lang.StackOverflowError

Is anyone encountered the following? is it an encodiong problem (java.lang.CharacterDataLatin1 etc.)? thanks, david.

executing:

public int getColumnIndex(String column)

{

int col_id = 0;

String col_name = null;

int count = 0;

try

{

if (columns != null)

count = columns.length;

for (int i = 0; i < count; i++)

{

col_name = columns;

if (col_name.equalsIgnoreCase(column))

{

col_id = i;

break;

}

}

}

catch(Exception e)

{

col_id = 0;

e.printStackTrace();

}

return col_id;

}

raise:

Exception in thread "Thread-5" java.lang.StackOverflowError

at java.lang.CharacterDataLatin1.getProperties(CharacterDataLatin1.java:58)

at java.lang.CharacterDataLatin1.toUpperCase(CharacterDataLatin1.java:156)

at java.lang.Character.toUpperCase(Character.java:4307)

at java.lang.Character.toUpperCase(Character.java:4274)

at java.lang.String.regionMatches(String.java:1214)

at java.lang.String.equalsIgnoreCase(String.java:950)

at model.DataEntity.getColumnIndex(DataEntity.java:118)

[1200 byte] By [davniza] at [2007-10-2 14:19:18]
# 1
That's probably not the full stack trace? I'd say that you have an infinitive recursive call some where.Kaj
kajbja at 2007-7-13 12:36:43 > top of Java-index,Desktop,I18N...