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 155719 - ArrayOutOfBoundsException when tabbing through fields in data entry mode
Summary: ArrayOutOfBoundsException when tabbing through fields in data entry mode
Status: RESOLVED INCOMPLETE
Alias: None
Product: db
Classification: Unclassified
Component: Show Data (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-17 23:25 UTC by David Vancouvering
Modified: 2009-08-21 14:15 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack trace (6.97 KB, text/plain)
2008-12-17 23:25 UTC, David Vancouvering
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Vancouvering 2008-12-17 23:25:01 UTC
- select * from app.customer in sample db
- Choose toolbar to add rows
- Double-click in customer id
- tab, tab, tab all the way to the end
- at the end of the row you get this exception
Comment 1 David Vancouvering 2008-12-17 23:25:59 UTC
Created attachment 75116 [details]
Stack trace
Comment 2 David Vancouvering 2008-12-17 23:31:42 UTC
Also, the next action I do pops up a very strange dialog that just says "2".  I looked at the stack trace, and this
appears to be the value of getMessage() for the AOOBE:

java.lang.ArrayIndexOutOfBoundsException: 2
Comment 3 David Vancouvering 2008-12-17 23:33:13 UTC
More info: it seems to happen when I tab past the last row.  So say I have three rows, I tab through all of them fine,
but when I get to the end of the last row, I get the AOOBE.  In this case the value is 3, which makes sense, since the
existing three rows probably have indexes 0, 1, and 2.
Comment 4 David Vancouvering 2008-12-17 23:35:00 UTC
More information.  Now I get this every time I double-click into a field, enter a value, and exit the field, either with
the mouse or with a tab.  Completely unusable, upgrading the priority...
Comment 5 _ ahimanikya 2008-12-18 19:13:57 UTC
I don't see any of these issues reported here, can someone else also try this?
Comment 6 _ ahimanikya 2008-12-18 19:19:46 UTC
In latest dev build it does not through AOOBE, so downgrading this...

If you don't this anymore, please close this, may be this was fixed part of some other fix.
Comment 7 David Vancouvering 2008-12-18 19:22:31 UTC
Did you try it on a Mac?
Comment 8 David Vancouvering 2008-12-18 19:23:04 UTC
Product Version: NetBeans IDE Dev (Build 081217)
Java: 1.5.0_16; Java HotSpot(TM) Client VM 1.5.0_16-133
System: Mac OS X version 10.5.5 running on i386; MacRoman; en_US (nb)
Comment 9 David Vancouvering 2008-12-18 19:53:22 UTC
I'll try to verify next time I do a pull.  
Comment 10 _ ahimanikya 2008-12-18 19:59:45 UTC
I am using Mac for my regular development. 
Comment 11 _ ahimanikya 2008-12-19 11:39:10 UTC
I tested this many and I don't see this issue.
Comment 12 David Vancouvering 2008-12-19 17:12:16 UTC
Hi, Ahi.  Please, when someone reports an exception which they can regularly reproduce, don't close it as WORKSFORME. 
It implicitly communicates a message "there must be something wrong with you if you get this, because I don't get it" :)
I can take it, but it's been known to annoy our users no end.

Instead, mark it as INCOMPLETE, say "I can't seem to reproduce this.  Can you try again and give me more information? 
Here is what I did to try to reproduce..."

An issue marked INCOMPLETE will be closed after 30 days if nobody clears out the INCOMPLETE keyword.

Thanks!

David
Comment 13 David Vancouvering 2008-12-19 17:13:19 UTC
Marking as INCOMPLETE - David needs to see if he can still reproduce this and work with Ahi to get a reproduction.

By the way, Ahi, given the stack trace, can you figure out by looking at the code what the problem might be?
Comment 14 _ ahimanikya 2008-12-19 17:46:34 UTC
Got it! Good concept. 

No the stack trace does not tell me much, but I will ask Shankari to see if she can find something. There seems some
change of after you tested. Are you still able to reproduce this?
Comment 15 Jiri Rechtacek 2009-07-01 07:43:52 UTC
NB6.7 was released already - http://www.netbeans.org/community/releases/67/
Postpone fixing this issue on the next release.
Comment 16 martinhavle 2009-08-21 14:15:27 UTC
Please, could you provide more informations about this issue? Is it reproducible on the latest version of IDE? I tried
to reproduce it on Ubuntu 9,04 with latest build (200908210201) with jdk6u15 and this definitely works for me. 
Thanks!