Re: getting a RuntimeException in Vector.add()



> Vector v=new Vector<String>();

I don't use java 5.0 and I cannot send a snippet that produces the
problem. It only happens sporadically.

The AppServer is a Bea WLS 8.1.

The exception is:
10:46:06/319221099::vo:T-.<E> java.lang.ArrayStoreException
at java.util.Vector.add(Vector.java:748)
at de.xxx.GutachtenTable.getLine(GutachtenTable.java:188)

The code is (GutachtenTable.java):

186: Vector lvZeile = new Vector();
187: for (int col = 0; col <= 8; col++) {
188: lvZeile.add(getValue(pvRow, col));
189: }
....
233: private Object getValue(int pvRowIndex, int pvDataColumnIndex)
{
234: Object lvValue = "";
....
274: return lvValue;
275: }


K

.



Relevant Pages

  • Work in progress, pretty printer
    ... It takes pre-parsed Java source snippets, ... All I will have to do to post Java code on my website is put the ... snippet in a special directory, and refer to it by name in my HTML ... window (or scrolling window), to view the source. ...
    (comp.lang.java.programmer)
  • Re: 406 Not Acceptable (was Re: "--All You Zombies--" title)
    ... making pointer puzzles with a snippet of C code, ... sometimes extremely bogus language C can be. ... Or even Java, which isn't all *that* simple (simpler than c, but ...
    (rec.arts.sf.written)
  • Re: 406 Not Acceptable (was Re: "--All You Zombies--" title)
    ... making pointer puzzles with a snippet of C code, ... sometimes extremely bogus language C can be. ... because the creators of Java went way out ...
    (rec.arts.sf.written)
  • Re: Welche IDE?
    ... wird meinem Empfinden nach auch etwas gehyped. ... GUI Builder, AppServer etc und 100% pure SUN Java) ...
    (de.comp.lang.java)
  • Re: emma error - while extracting coverage
    ... This is fixed by using appserverjava for extracting the ... appserver was using IBM Java, ...
    (comp.lang.java.programmer)