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 171880 - IllegalStateException: The combo-box must be empty.
Summary: IllegalStateException: The combo-box must be empty.
Status: VERIFIED FIXED
Alias: None
Product: connecteddeveloper
Classification: Unclassified
Component: Issuetracking Framework (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Marian Petras
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-10 09:30 UTC by Jaromir Uhrik
Modified: 2009-12-15 08:39 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 158201


Attachments
stacktrace (6.75 KB, text/plain)
2009-09-10 09:30 UTC, Jaromir Uhrik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaromir Uhrik 2009-09-10 09:30:47 UTC
Build: NetBeans IDE Dev (Build cdev-1376-on-090910)
VM: Java HotSpot(TM) Client VM, 1.5.0_20-141, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_20-b02-315
OS: Mac OS X, 10.5.8, i386

User Comments:
juhrik: I have modified source of kenai project (with subversion repository). Then invoked Subversion|Commit from the context menu of the project node. In Commit dialog I typed a message and then (wanted to close issue) I clicked on "Update Issue" node -->> The exception dialog appeared...



Stacktrace: 
java.lang.IllegalStateException: The combo-box must be empty.
        at org.netbeans.modules.bugtracking.util.RepositoryComboSupport.checkOldComboBoxModel(RepositoryComboSupport.java:193)
        at org.netbeans.modules.bugtracking.util.RepositoryComboSupport.<init>(RepositoryComboSupport.java:175)
        at org.netbeans.modules.bugtracking.util.RepositoryComboSupport.setup(RepositoryComboSupport.java:161)
        at org.netbeans.modules.bugtracking.vcs.SvnHookImpl.createComponent(SvnHookImpl.java:214)
        at org.netbeans.modules.subversion.ui.commit.CommitPanel.initHooksPanel(CommitPanel.java:272)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:0)
Comment 1 Jaromir Uhrik 2009-09-10 09:30:52 UTC
Created attachment 87411 [details]
stacktrace
Comment 2 Jaromir Uhrik 2009-09-10 09:35:34 UTC
For it is not possible to update issue during commits, i am increasing the priority to P2.
Comment 3 Marian Petras 2009-09-10 11:14:18 UTC
Fixed.

The combo-box in question was not empty, indeed. It was pre-filled with sample items ("Item 1", "Item 2", Item 3", Item
4") by the form editor. I simply removed the code that added these items.

Changeset:
7de2fba845c1
Comment 4 Jaromir Uhrik 2009-09-11 09:26:29 UTC
Verified in:
Product Version: NetBeans IDE Dev (Build cdev-1385-on-090911)
Java: 1.5.0_20; Java HotSpot(TM) Client VM 1.5.0_20-141
System: Mac OS X version 10.5.8 running on i386; MacRoman; en_US (nb)
Comment 5 Quality Engineering 2009-09-11 21:52:29 UTC
Integrated into 'main-golden', will be available in build *200909111401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/7de2fba845c1
User: Marian Petras <mpetras@netbeans.org>
Log: fixed bug #171880 - "IllegalStateException: The combo-box must be empty."
Comment 6 _ tboudreau 2009-09-15 20:04:18 UTC
Reproducible with today's sources.  I fixed a few bugs in the SVN sources for http://kenai.com/simplevalidation

In the commit dialog, simply click the 

[+] Update Issue

turner and the exception is thrown.  See http://statistics.netbeans.org/analytics/exception.do?id=262103
Comment 7 _ tboudreau 2009-09-15 20:05:13 UTC
> Reproducible with today's sources.

(that is, fresh clone of main/ from 15 hours ago)
Comment 8 Marian Petras 2009-09-16 14:33:47 UTC
Tim, the bug is fixed.

I verified the fix has been published to main-golden and main-silver.
I searched the sources for a possible cause and did not find any.
I ran NetBeans with JDK 1.7.0-ea b57 to verify that JDK 7 does not cause the difference in behaviour and it worked well.

Do not you have some binary patches in <nb-home>/ide12/modules/patches?
Comment 9 Tomas Stupka 2009-09-24 13:12:37 UTC
any update on this? does it work now, or do you still run into the problem?

thanks
Comment 10 Jaromir Uhrik 2009-12-15 08:39:12 UTC
The issue is fixed which I have verified in:
Product Version: NetBeans IDE Dev (Build 200912150200)
Java: 1.6.0_17; Java HotSpot(TM) 64-Bit Server VM 14.3-b01-101
System: Mac OS X version 10.5.8 running on x86_64; MacRoman; en_US (nb)