This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 51882 - ArrayIndexOutOfBoundsException
Summary: ArrayIndexOutOfBoundsException
Status: CLOSED FIXED
Alias: None
Product: qa
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P1 blocker (vote)
Assignee: _ mriem
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-27 20:18 UTC by Tim Lebedkov
Modified: 2011-02-17 09:34 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Lebedkov 2004-11-27 20:18:05 UTC
You probably assume that all columns are visible
and not rearranged

org.netbeans.jemmy.operators.JTableOperator.findCell

uses checkCell and calls it with model indexes.
But checkCell uses view indexes.

java.lang.ArrayIndexOutOfBoundsException: 10 >= 10
	at java.util.Vector.elementAt(Vector.java:431)
	at
javax.swing.table.DefaultTableColumnModel.getColumn(DefaultTableColumnModel.java:277)
	at
javax.swing.JTable.convertColumnIndexToModel(JTable.java:1680)
	at javax.swing.JTable.getValueAt(JTable.java:1771)
	at
org.netbeans.jemmy.operators.JTableOperator$BySubStringTableCellChooser.checkCell(JTableOperator.java:1959)
	at
org.netbeans.jemmy.operators.JTableOperator.findCell(JTableOperator.java:820)
	at
org.netbeans.jemmy.operators.JTableOperator.findCell(JTableOperator.java:786)
	at
org.netbeans.jemmy.operators.JTableOperator.findCell(JTableOperator.java:412)
	at
org.netbeans.modules.tasklist.usertasks.test.TestTable.testStartTaskFillsOwner(TestTable.java:104)
	at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at
junit.framework.TestCase.runTest(TestCase.java:154)
	at
junit.framework.TestCase.runBare(TestCase.java:127)
	at
org.netbeans.jellytools.JellyTestCase.runBare(JellyTestCase.java:112)
	at
junit.framework.TestResult$1.protect(TestResult.java:106)
	at
junit.framework.TestResult.runProtected(TestResult.java:124)
	at
junit.framework.TestResult.run(TestResult.java:109)
	at junit.framework.TestCase.run(TestCase.java:118)
	at
org.netbeans.junit.NbTestCase.run(NbTestCase.java:119)
	at
junit.framework.TestSuite.runTest(TestSuite.java:208)
	at junit.framework.TestSuite.run(TestSuite.java:203)
	at
org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:176)
	at
org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:127)
	at
org.netbeans.xtest.plugin.ide.MainWithExec.run(MainWithExec.java:196)
	at
org.netbeans.xtest.plugin.ide.Main$2.run(Main.java:313)
	at java.lang.Thread.run(Thread.java:534)
Comment 1 Alexandre Iline 2004-11-29 05:22:35 UTC
Any test case ready which I can use for dubugging?
 
Comment 3 Tim Lebedkov 2006-04-04 20:30:59 UTC
will this ever be fixed?
Comment 4 _ mriem 2006-04-13 17:58:49 UTC
I'll be taking this one for Jemmy release 2.2.7
Comment 5 _ mriem 2006-04-21 14:03:06 UTC
Can you provide the table you have displayed (the data in it) so that I can 
create a test without having to checkout the entire NetBeans source?
Comment 6 Tim Lebedkov 2006-04-21 15:15:31 UTC
No. The data comes from an .ics file test14.ics under tasklist/usertasks.
Comment 7 _ mriem 2006-04-21 18:15:27 UTC
I think I have fixed it. Can you check if your test now works. I noticed that 
you used:

Point p = t.findCell("R", 
            new Operator.DefaultStringComparator(true, true), 1);

Shouldn't the last parameter be 0?
Comment 8 _ mriem 2006-04-21 18:15:28 UTC
I think I have fixed it. Can you check if your test now works. I noticed that 
you used:

Point p = t.findCell("R", 
            new Operator.DefaultStringComparator(true, true), 1);

Shouldn't the last parameter be 0?
Comment 9 _ mriem 2006-04-21 18:15:29 UTC
I think I have fixed it. Can you check if your test now works. I noticed that 
you used:

Point p = t.findCell("R", 
            new Operator.DefaultStringComparator(true, true), 1);

Shouldn't the last parameter be 0?
Comment 10 _ mriem 2006-04-21 18:15:52 UTC
I think I have fixed it. Can you check if your test now works. I noticed that 
you used:

Point p = t.findCell("R", 
            new Operator.DefaultStringComparator(true, true), 1);

Shouldnt the last parameter be 0?
Comment 11 _ mriem 2006-04-24 17:00:15 UTC
Fixed in 2.2.7
Comment 12 Tim Lebedkov 2007-09-19 19:03:50 UTC
ok