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 38098 - Clicking after ERROR OUTPUT throws IllegalArgumentException
Summary: Clicking after ERROR OUTPUT throws IllegalArgumentException
Status: RESOLVED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: vcscore (show other bugs)
Version: 3.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Richard Gregor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-15 04:51 UTC by _ gtzabari
Modified: 2003-12-17 16:08 UTC (History)
0 users

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 _ gtzabari 2003-12-15 04:51:47 UTC
dev build 200312141900

  If run you UPDATE and then click anywhere on the
dialog after the ERROR OUTPUT sub-tab, an
exception is thrown. I've tracked this issue to
http://developer.java.sun.com/developer/bugParade/bugs/4121153.html

 Aparently this issue was reported a long time ago
but was not reproducible so it was never closed. I
need the Netbeans team to do a couple of things:

1) Verify you can reproduce this on your end and
that this is indeed a JDK bug
2) Create a minimal testcase
3) File the bug with Sun or give the details to me
and I'll do it
4) Create a workaround for Netbeans

   Exception follows:

java.lang.IllegalArgumentException: cannot add to
layout: constraints must be a GridBagConstraint
	at
java.awt.GridBagLayout.addLayoutComponent(GridBagLayout.java:602)
	at java.awt.Container.addImpl(Container.java:664)
	at java.awt.Container.add(Container.java:320)
	at
javax.swing.plaf.basic.BasicToolBarUI.setFloating(BasicToolBarUI.java:804)
	at
javax.swing.plaf.basic.BasicToolBarUI.floatAt(BasicToolBarUI.java:1001)
	at
javax.swing.plaf.basic.BasicToolBarUI$DockingListener.mouseReleased(BasicToolBarUI.java:1218)
	at
java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
	at
java.awt.Component.processMouseEvent(Component.java:5100)
	at
java.awt.Component.processEvent(Component.java:4897)
	at
java.awt.Container.processEvent(Container.java:1569)
	at
java.awt.Component.dispatchEventImpl(Component.java:3615)
	at
java.awt.Container.dispatchEventImpl(Container.java:1627)
	at
java.awt.Component.dispatchEvent(Component.java:3477)
	at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
	at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
	at
java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
	at
java.awt.Container.dispatchEventImpl(Container.java:1613)
	at
java.awt.Window.dispatchEventImpl(Window.java:1606)
	at
java.awt.Component.dispatchEvent(Component.java:3477)
[catch] at
java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
	at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
	at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
	at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
	at
java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
Comment 1 Richard Gregor 2003-12-17 15:32:05 UTC
Fixed. There was problem that toolbar was set as floatable.

Checking in src/org/netbeans/modules/vcscore/ui/OutputPanel.form;
/cvs/vcscore/src/org/netbeans/modules/vcscore/ui/OutputPanel.form,v 
<--  OutputPanel.form
new revision: 1.5; previous revision: 1.4
done
Checking in src/org/netbeans/modules/vcscore/ui/OutputPanel.java;
/cvs/vcscore/src/org/netbeans/modules/vcscore/ui/OutputPanel.java,v 
<--  OutputPanel.java
new revision: 1.6; previous revision: 1.5
done
Checking in
src/org/netbeans/modules/vcs/profiles/cvsprofiles/visualizers/update/UpdateInfoPanel.form;
/cvs/vcsgeneric/profiles/cvsprofiles/src/org/netbeans/modules/vcs/profiles/cvsprofiles/visualizers/update/UpdateInfoPanel.form,v
 <--  UpdateInfoPanel.form
new revision: 1.8; previous revision: 1.7
done
Checking in
src/org/netbeans/modules/vcs/profiles/cvsprofiles/visualizers/update/UpdateInfoPanel.java;
/cvs/vcsgeneric/profiles/cvsprofiles/src/org/netbeans/modules/vcs/profiles/cvsprofiles/visualizers/update/UpdateInfoPanel.java,v
 <--  UpdateInfoPanel.java
new revision: 1.10; previous revision: 1.9
done
Comment 2 _ gtzabari 2003-12-17 16:08:18 UTC
Richard,

   Just a side-thought: Sun has had problems reproducing this bug
(which aparently still exists in the JDK). It would be good to provide
them a small testcase to finally fix it. Do you think you could write
one up based upon your work?