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 242632 - IndexOutOfBoundsException: Index: 0, Size: 0
Summary: IndexOutOfBoundsException: Index: 0, Size: 0
Status: RESOLVED FIXED
Alias: None
Product: connecteddeveloper
Classification: Unclassified
Component: Jira (show other bugs)
Version: 8.0
Hardware: All All
: P1 normal with 4 votes (vote)
Assignee: Tomas Stupka
URL:
Keywords:
: 243771 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-03-06 21:22 UTC by heapifyman
Modified: 2014-07-22 17:18 UTC (History)
11 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 207156


Attachments
stacktrace (1.63 KB, text/plain)
2014-03-06 21:22 UTC, heapifyman
Details
stacktrace (1.63 KB, text/plain)
2014-03-07 18:58 UTC, Exceptions Reporter
Details
nightly reproduce logs (16.64 KB, application/octet-stream)
2014-07-22 10:58 UTC, williescholtz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description heapifyman 2014-03-06 21:22:07 UTC
Build: NetBeans IDE 8.0 RC1 (Build 201402242200)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.51-b03, Java(TM) SE Runtime Environment, 1.7.0_51-b13
OS: Mac OS X

User Comments:
jvissers-nl: I'm able to collect JIRA (v6.0.7) tasks via the JIRA plugin. However activating them - opening them in netbeans results to an 'empty' page being displayed. Some placeholder (dummy) are there - but almost all information is not displayed. The notification area then shows an error message.

This was working in NB8 beta.

GUEST: While JIRA plugin was collecting information from various queries, I opened up a JIRA task from within Netbeans that was already loaded.

heapifyman: Opening Jira issue (from atlassian hosted jira instance)

pvm: JIRA Plugin - It happens when I try to open detail info of issue and only when I use the Jira Connector 5.0+. If I use the old connector with newer JIRA tracker I have no problem to open detailed info of an issue. But when I use the older...I can't use the search by text functionality.

GUEST: Starting and stopping old jetty based projects via Maven jetty:run

TimKack: I have added a 5.0+ JIRA repository.
In the Tasks view it lists my filters. I doubleclick the ticket and the ticket document apprears, but are missing information. I noticed the exception in the notifications area.




Stacktrace: 
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
   at java.util.ArrayList.RangeCheck(ArrayList.java:635)
   at java.util.ArrayList.get(ArrayList.java:411)
   at java.util.Collections$UnmodifiableList.get(Collections.java:1211)
   at org.netbeans.modules.jira.issue.IssuePanel.reloadCustomFields(IssuePanel.java:954)
   at org.netbeans.modules.jira.issue.IssuePanel.reloadForm(IssuePanel.java:699)
   at org.netbeans.modules.jira.issue.IssuePanel.reloadFormInAWT(IssuePanel.java:1279)
Comment 1 heapifyman 2014-03-06 21:22:10 UTC
Created attachment 145818 [details]
stacktrace
Comment 2 Exceptions Reporter 2014-03-07 18:58:02 UTC
Created attachment 145855 [details]
stacktrace

committing changes using JIRA plugin
Comment 3 heapifyman 2014-03-10 14:05:39 UTC
For me this only happens with issues from a Jira instance hosted by Atlassian (Atlassian on demand). Issues from an iinstance running on our network are displayed just fine.
Comment 4 Quality Engineering 2014-03-11 03:04:59 UTC
Integrated into 'main-silver', will be available in build *201403110001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/c887129ac854
User: Tomas Stupka <tstupka@netbeans.org>
Log: Issue #242632 - IndexOutOfBoundsException: Index: 0, Size: 0
Comment 5 Tomas Stupka 2014-03-11 10:14:56 UTC
added some logging and a possible workaround, please reproduce and attach your messages.log

thanks
Comment 6 Exceptions Reporter 2014-03-24 14:18:42 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=207156
Comment 7 Tomas Stupka 2014-04-18 09:28:45 UTC
*** Bug 243771 has been marked as a duplicate of this bug. ***
Comment 8 markiewb 2014-05-06 13:33:47 UTC
Happens also using our JIRA

Product Version: NetBeans IDE 8.0 (Build 201403101706)
Updates: Updates available to version , NetBeans 8.0 Patch 1
Java: 1.8.0; Java HotSpot(TM) 64-Bit Server VM 25.0-b70
Runtime: Java(TM) SE Runtime Environment 1.8.0-b132
System: Windows 7 version 6.1 running on amd64; Cp1252; de_DE (nb)
User directory: C:\Users\markiewb\AppData\Roaming\NetBeans\8.0
Cache directory: C:\Users\markiewb\AppData\Local\NetBeans\Cache\8.0
Comment 9 heapifyman 2014-06-11 08:20:48 UTC
Does not seem to happen when selecting "JIRA 3.13+" as JIRA connector type in Options -> Team -> Tasks.
Comment 10 markiewb 2014-06-11 10:28:06 UTC
(In reply to heapifyman from comment #9)
> Does not seem to happen when selecting "JIRA 3.13+" as JIRA connector type
> in Options -> Team -> Tasks.

You are right.  JIRA v5.2.11 now "works" with 3.13+ connector. At least no exception anymore and I can view the issue
Comment 11 chrislovsund 2014-06-11 11:33:29 UTC
JIRA (v6.0.8#6109-sha1:57cf099) now "works" with 3.13+ connector.
Comment 12 Tomas Stupka 2014-07-21 12:22:05 UTC
no reports after 8.0

closing.
Comment 13 williescholtz 2014-07-21 12:50:49 UTC
Hi Tomas

This is definitely not fixed, I am running 8.0 and this still occurs for me with connector 5.0+. It seems like an issue with that connector.
Comment 14 locutus 2014-07-21 12:55:53 UTC
Same situation here and I can't use the workaround to get along :(
Comment 15 Tomas Stupka 2014-07-21 13:00:54 UTC
could anybody able to reproduce try an actual dev build?

thanks
Comment 16 williescholtz 2014-07-21 13:05:29 UTC
I will try and re-create for using dev
Comment 17 williescholtz 2014-07-22 06:39:25 UTC
Hi

Just to let everyone know, I could not re-create with nightly:

  Product Version         = NetBeans IDE Dev (Build 201407210001) (#77b3122f0984)
  Operating System        = Windows 7 version 6.1 running on amd64
  Java; VM; Vendor        = 1.7.0_25; Java HotSpot(TM) 64-Bit Server VM 23.25-b01; Oracle Corporation
  Runtime                 = Java(TM) SE Runtime Environment 1.7.0_25-b17
  Java Home               = C:\Program Files\Java\jdk1.7.0_25\jre

It seems to be fixed, however the fix should be identified and pushed out with an update, thanks :)
Comment 18 locutus 2014-07-22 07:48:32 UTC
Cool! Thanks for testing it :)
Hope update for release version will arrive soon.
Comment 19 Tomas Stupka 2014-07-22 09:36:52 UTC
like mentioned in comment 5 - i've added a possible workaround 

i've also added some logging and would like to see the output

willie - could you please do one more thing:
- go through the steps that lead to the problem
- and attach your messages.log

thanks
Comment 20 williescholtz 2014-07-22 10:58:39 UTC
Created attachment 148199 [details]
nightly reproduce logs

Attached are my reproduction step messages.log, a very weird thing i've noticed though, is that now my original netbeans 8 (non-dev) version has started working, i.e. no bug anymore, which suggests somehow the dev version fixed it?

this seems very strange, but I'm just reporting what Ive experienced
Comment 21 Tomas Stupka 2014-07-22 17:17:38 UTC
> now my original netbeans 8 (non-dev) version has
> started working, i.e. no bug anymore, which suggests somehow the dev version
> fixed it?
not sure, might be somehow related to the client cached repository metadata, which got overwritten by the dev build version. Anyway - good to know, thanks for the info ...