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 10280 - [3.2-3] argument type mismatch when changing default debugger/executor
Summary: [3.2-3] argument type mismatch when changing default debugger/executor
Status: CLOSED DUPLICATE of bug 9043
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P1 blocker (vote)
Assignee: issues@platform
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-03-14 09:49 UTC by navneet
Modified: 2008-12-22 18:40 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 navneet 2001-03-14 09:49:38 UTC
Steps to reproduce:
1. Open the Project Settings dialog
2. Right Click on the Debugger Types and select New/Default Debugger
3. Fill in the details for the JDK 1.2.2 compiler on your machine
4. Select the Java Sources Node
5. Select Default Debugger and try to change it to the newly added node. 

(Note: This was also observed for the Default Executor setting )

The following Exception occurs:

Wed Mar 14 15:22:01 GMT+05:30 
2001org.openide.explorer.propertysheet.PropertyDetails$ExceptionHack: 
java.lang.IllegalArgumentException: argument type mismatch
        at java.lang.reflect.Method.invoke(Native Method)
        at org.openide.nodes.PropertySupport$Reflection.setValue
(PropertySupport.java:205)
        at org.openide.explorer.propertysheet.PropertyDetails.setPropertyValue
(PropertyDetails.java:185)
        at org.openide.explorer.propertysheet.PropertyDisplayer.setPropertyValue
(PropertyDisplayer.java:823)
        at org.openide.explorer.propertysheet.PropertyDisplayer.setAsText
(PropertyDisplayer.java:792)
        at 
org.openide.explorer.propertysheet.PropertyDisplayer$3.actionPerformed
(PropertyDisplayer.java:548)
        at javax.swing.JComboBox.fireActionEvent(JComboBox.java:870)
        at javax.swing.JComboBox.selectedItemChanged(JComboBox.java:894)
        at javax.swing.JComboBox.contentsChanged(JComboBox.java:946)
        at javax.swing.AbstractListModel.fireContentsChanged
(AbstractListModel.java:79)
        at javax.swing.DefaultComboBoxModel.setSelectedItem
(DefaultComboBoxModel.java:86)
        at javax.swing.JComboBox.setSelectedItem(JComboBox.java:415)
        at javax.swing.JComboBox.setSelectedIndex(JComboBox.java:455)
        at javax.swing.plaf.basic.BasicComboPopup$ListMouseHandler.mouseReleased
(BasicComboPopup.java:582)
[catch] at java.awt.AWTEventMulticaster.mouseReleased
(AWTEventMulticaster.java:231)
        at java.awt.Component.processMouseEvent(Component.java:3717)
        at java.awt.Component.processEvent(Component.java:3546)
        at java.awt.Container.processEvent(Container.java:1164)
        at java.awt.Component.dispatchEventImpl(Component.java:2595)
        at java.awt.Container.dispatchEventImpl(Container.java:1213)
        at java.awt.Component.dispatchEvent(Component.java:2499)
        at java.awt.LightweightDispatcher.retargetMouseEvent
(Container.java:2451)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2216)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125)
        at java.awt.Container.dispatchEventImpl(Container.java:1200)
        at java.awt.Window.dispatchEventImpl(Window.java:912)
        at java.awt.Component.dispatchEvent(Component.java:2499)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:319)
        at java.awt.EventDispatchThread.pumpOneEvent
(EventDispatchThread.java:103)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:84)
Comment 1 Jaroslav Tulach 2001-03-19 08:23:08 UTC
Something wrong with the bean (JavaSettings?), wrong beaninfo?
Comment 2 Jan Becicka 2001-03-19 13:36:55 UTC
I cannot reproduce this bug...
Comment 3 Marian Petras 2001-03-19 18:08:22 UTC
I tried 3.2-b7 with redhat Linux 6.2, Sun JDK 1.2.2. It was OK. I do not think
this error is platform-dependent. Please try it with the latest beta and reopen
this bug if it still makes problems.
Comment 4 navneet 2001-03-20 06:23:33 UTC
I got the following message when trying to set the default compiler to JDK 
1.2.2 in release 32 build 7. Setting the debugger seems to be working though.

Tue Mar 20 11:59:45 GMT+05:30 
2001org.openide.explorer.propertysheet.PropertyDetails$ExceptionHack: 
java.lang.IllegalArgumentException: argument type mismatch
        at java.lang.reflect.Method.invoke(Native Method)
        at org.openide.nodes.PropertySupport$Reflection.setValue
(PropertySupport.java:205)
        at org.openide.explorer.propertysheet.PropertyDetails.setPropertyValue
(PropertyDetails.java:185)
        at org.openide.explorer.propertysheet.PropertyDisplayer.setPropertyValue
(PropertyDisplayer.java:823)
        at org.openide.explorer.propertysheet.PropertyDisplayer.setAsText
(PropertyDisplayer.java:792)
        at 
org.openide.explorer.propertysheet.PropertyDisplayer$3.actionPerformed
(PropertyDisplayer.java:548)
        at javax.swing.JComboBox.fireActionEvent(JComboBox.java:870)
        at javax.swing.JComboBox.selectedItemChanged(JComboBox.java:894)
        at javax.swing.JComboBox.contentsChanged(JComboBox.java:950)
        at javax.swing.AbstractListModel.fireContentsChanged
(AbstractListModel.java:79)
        at javax.swing.DefaultComboBoxModel.setSelectedItem
(DefaultComboBoxModel.java:86)
        at javax.swing.JComboBox.setSelectedItem(JComboBox.java:415)
        at javax.swing.JComboBox.setSelectedIndex(JComboBox.java:455)
        at javax.swing.plaf.basic.BasicComboPopup$ListMouseHandler.mouseReleased
(BasicComboPopup.java:582)
[catch] at java.awt.AWTEventMulticaster.mouseReleased
(AWTEventMulticaster.java:231)
        at java.awt.Component.processMouseEvent(Component.java:3717)
        at java.awt.Component.processEvent(Component.java:3546)
        at java.awt.Container.processEvent(Container.java:1164)
        at java.awt.Component.dispatchEventImpl(Component.java:2595)
        at java.awt.Container.dispatchEventImpl(Container.java:1213)
        at java.awt.Component.dispatchEvent(Component.java:2499)
        at java.awt.LightweightDispatcher.retargetMouseEvent
(Container.java:2451)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2216)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125)
        at java.awt.Container.dispatchEventImpl(Container.java:1200)
        at java.awt.Window.dispatchEventImpl(Window.java:912)
        at java.awt.Component.dispatchEvent(Component.java:2499)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:319)
        at java.awt.EventDispatchThread.pumpOneEvent
(EventDispatchThread.java:103)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:84)
Comment 5 navneet 2001-03-20 06:24:57 UTC
The following exception is got when setting the default executor in release32-
build 7:

Tue Mar 20 12:00:44 GMT+05:30 
2001org.openide.explorer.propertysheet.PropertyDetails$ExceptionHack: 
java.lang.IllegalArgumentException: argument type mismatch
        at java.lang.reflect.Method.invoke(Native Method)
        at org.openide.nodes.PropertySupport$Reflection.setValue
(PropertySupport.java:205)
        at org.openide.explorer.propertysheet.PropertyDetails.setPropertyValue
(PropertyDetails.java:185)
        at org.openide.explorer.propertysheet.PropertyDisplayer.setPropertyValue
(PropertyDisplayer.java:823)
        at org.openide.explorer.propertysheet.PropertyDisplayer.setAsText
(PropertyDisplayer.java:792)
        at 
org.openide.explorer.propertysheet.PropertyDisplayer$3.actionPerformed
(PropertyDisplayer.java:548)
        at javax.swing.JComboBox.fireActionEvent(JComboBox.java:870)
        at javax.swing.JComboBox.selectedItemChanged(JComboBox.java:894)
        at javax.swing.JComboBox.contentsChanged(JComboBox.java:950)
        at javax.swing.AbstractListModel.fireContentsChanged
(AbstractListModel.java:79)
        at javax.swing.DefaultComboBoxModel.setSelectedItem
(DefaultComboBoxModel.java:86)
        at javax.swing.JComboBox.setSelectedItem(JComboBox.java:415)
        at javax.swing.JComboBox.setSelectedIndex(JComboBox.java:455)
        at javax.swing.plaf.basic.BasicComboPopup$ListMouseHandler.mouseReleased
(BasicComboPopup.java:582)
        at java.awt.AWTEventMulticaster.mouseReleased
(AWTEventMulticaster.java:231)
        at java.awt.Component.processMouseEvent(Component.java:3717)
        at java.awt.Component.processEvent(Component.java:3546)
        at java.awt.Container.processEvent(Container.java:1164)
        at java.awt.Component.dispatchEventImpl(Component.java:2595)
        at java.awt.Container.dispatchEventImpl(Container.java:1213)
        at java.awt.Component.dispatchEvent(Component.java:2499)
        at java.awt.LightweightDispatcher.retargetMouseEvent
(Container.java:2451)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2216)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125)
        at java.awt.Container.dispatchEventImpl(Container.java:1200)
        at java.awt.Window.dispatchEventImpl(Window.java:912)
        at java.awt.Component.dispatchEvent(Component.java:2499)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:319)
        at java.awt.EventDispatchThread.pumpOneEvent
(EventDispatchThread.java:103)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:84)
Comment 6 navneet 2001-03-20 06:26:40 UTC
These errors occur only if i try to set the values using the combo box 
in the dialog. If I try to set it using the Property Editor, 
everything works fine.
Comment 7 Marian Petras 2001-03-28 17:47:44 UTC
Assigned to myself (Marian Petras).
Comment 8 Jesse Glick 2001-04-02 18:01:21 UTC
I cannot reproduce this with current release32 sources. In step #5, I select the
newly created debugger type and it is fine, no exception is thrown. This works
either from the combo box (from the propsheet for Java Sources) or after using
the "..." button to open an equivalent dialog.

By the way your comment: "These errors occur only if i try to set the values
using the combo box in the dialog. If I try to set it using the Property Editor,
everything works fine." is not quite clear, could you be more specific?

Also did you attempt to set the name of the newly created debugger type to the
same name as an existing debugger type (or other service listed under Project
Settings)? Exactly which name did you choose?

QA, please try to reproduce this one as well if you can...I am tempted to mark
WORKSFORME unless new information turns up.
Comment 9 Jaroslav Tulach 2001-04-03 16:02:30 UTC

*** This issue has been marked as a duplicate of 9043 ***
Comment 10 navneet 2001-07-11 12:17:26 UTC
Since this was marked as a duplicate.