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 110178 - 0716: cannot add arguments in Run property
Summary: 0716: cannot add arguments in Run property
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: App Client (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Tomas Mysik
URL:
Keywords: RANDOM
: 108780 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-07-18 16:12 UTC by nouar38
Modified: 2007-09-26 09:16 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Producer app-client project from java ee turorial (15.03 KB, application/octet-stream)
2007-07-20 15:27 UTC, nouar38
Details

Note You need to log in before you can comment on or make changes to this bug.
Description nouar38 2007-07-18 16:12:44 UTC
NB 6.0 200707161200 & GF v2 b55 & jdk 1.6u1

Cannot add in Property/Run Arguments for app-client (Producer from javaee tutorial), getting the Exception:

SEVERE [global]

java.lang.AssertionError: Some of the customizer panels has written the changed data before OK Button was pressed.
Please file it as bug.

        at
org.netbeans.modules.j2ee.clientproject.ui.customizer.CustomizerProviderImpl$OptionListener.actionPerformed(CustomizerProviderImpl.java:120)

        at org.netbeans.modules.project.uiapi.CustomizerDialog$OptionListener$1.run(CustomizerDialog.java:182)

        at org.openide.util.Mutex.writeAccess(Mutex.java:321)

        at org.netbeans.modules.project.uiapi.CustomizerDialog$OptionListener.actionPerformed(CustomizerDialog.java:180)

        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)

        at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)

        at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)

        at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)

        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)

        at java.awt.Component.processMouseEvent(Component.java:6038)

        at javax.swing.JComponent.processMouseEvent(JComponent.java:3260)

        at java.awt.Component.processEvent(Component.java:5803)

        at java.awt.Container.processEvent(Container.java:2058)

        at java.awt.Component.dispatchEventImpl(Component.java:4410)

        at java.awt.Container.dispatchEventImpl(Container.java:2116)

        at java.awt.Component.dispatchEvent(Component.java:4240)

        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)

        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)

        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)

        at java.awt.Container.dispatchEventImpl(Container.java:2102)

        at java.awt.Window.dispatchEventImpl(Window.java:2429)

        at java.awt.Component.dispatchEvent(Component.java:4240)

        at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)

[catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)

        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)

        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)

        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)

        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)

        at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Comment 1 nouar38 2007-07-18 16:35:59 UTC
same issue with Nb 6.0 200707171200 on solaris-sparc
Comment 2 Tomas Mysik 2007-07-20 09:08:36 UTC
It's weird - I'm not able to reproduce it... I will more investigate.

Product Version: NetBeans IDE Dev (Build 070720)
Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b05
System: Linux version 2.6.22-ck1 running on i386; UTF-8; cs_CZ (nb)
GlassFish V2 b41d
Comment 3 nouar38 2007-07-20 14:07:59 UTC
thanks a lot, I'll download the 200707200000 and try over it (did not see this level, this morning 10am french time)
may be some one has fix it between 0717 and 0720.
Comment 4 Tomas Mysik 2007-07-20 14:50:27 UTC
I'm really not sure...It would be helpful to provide exact steps to reproduce it - is it standalone ApplClient of EAR 
module? How do you add arguments to the AppClient? Do you just Run the application or do you use any other way? Could 
you attach your project, messages.log file? Thanks.
Comment 5 nouar38 2007-07-20 15:00:40 UTC
tried again with 200707200000: on my windows xp

With an existing app-client project (jms/Producer from java 2ee tutorial) that had been opened with the previous
dailies:

when I add the Arguments and OK ==>>> exception java.lang.AssertionError shown below ;
the except happens in Properties/Run even if I don't add any value.
It happens also if I add a compiler arg (-Xlint)

With a New app-client project created with 200707200000 there is no problem when setting in the Properties/Run
Arguments, or in Compiler -Xlint.


SEVERE [global]

java.lang.AssertionError: Some of the customizer panels has written the changed data before OK Button was pressed.
Please file it as bug.

        at
org.netbeans.modules.j2ee.clientproject.ui.customizer.CustomizerProviderImpl$OptionListener.actionPerformed(CustomizerProviderImpl.java:120)

        at org.netbeans.modules.project.uiapi.CustomizerDialog$OptionListener$1.run(CustomizerDialog.java:182)

        at org.openide.util.Mutex.writeAccess(Mutex.java:321)

        at org.netbeans.modules.project.uiapi.CustomizerDialog$OptionListener.actionPerformed(CustomizerDialog.java:180)

        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)

        at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)

        at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)

        at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)

        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)

        at java.awt.Component.processMouseEvent(Component.java:6038)

        at javax.swing.JComponent.processMouseEvent(JComponent.java:3260)

        at java.awt.Component.processEvent(Component.java:5803)

        at java.awt.Container.processEvent(Container.java:2058)

        at java.awt.Component.dispatchEventImpl(Component.java:4410)

        at java.awt.Container.dispatchEventImpl(Container.java:2116)

        at java.awt.Component.dispatchEvent(Component.java:4240)

        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)

        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)

        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)

        at java.awt.Container.dispatchEventImpl(Container.java:2102)

        at java.awt.Window.dispatchEventImpl(Window.java:2429)

        at java.awt.Component.dispatchEvent(Component.java:4240)

        at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)

[catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)

        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)

        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)

        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)

        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)

        at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Comment 6 nouar38 2007-07-20 15:27:20 UTC
Created attachment 45441 [details]
Producer app-client project from java ee turorial
Comment 7 nouar38 2007-07-20 15:40:23 UTC
Producer is a stand-alone project delivered as part of Java EE 5 Tutorial examples.

And I need to set 2 Arguments before launching this project with "Run" action as in main() it checks for two args: arg1
can be queue or topic, arg2 is int <nb of messages to be sent>

So, with IDE I open the project, and select <project>/"Properties" and then "Run" and put in Arguments field the
requested values.

Comment 8 Tomas Mysik 2007-07-24 13:25:42 UTC
Bad news... I'm still not able to reproduce it even if with the project you attached. I'm using linux but you wrote 
that this happens on Solaris as well so it's a little bit weird I think. I will try it on Windows and let you know.
Comment 9 nouar38 2007-07-24 14:30:54 UTC
I'm upgarding to 200707240000 on windows/xp and solaris-sparc, I'll download the java ee 5 tutorial examples
again to have clean environment for all the app-client projects inside, and let you know if can reproduce or not
with projects that had never been opened with NB 6.0 daily builds.

thank you very much for your help on this.

nouar.
Comment 10 nouar38 2007-07-24 15:46:02 UTC
with a fresh download of java ee tutorial examples on solaris-sparc and open the 2 app-client projects producer and
synchronous for the first time with NB 6.0 200707240000 & GF v2 b56, can add Arguments with success.

IDE launched without userdir set, /.netbeans/dev renamed to be as /.netbeans/dev_0722, /.netbeans-derby renamed to 
/.netbeans-derby-0722 to have more clean environment.

so, the previous existing app-client projects got corrupted while testing the different daily builds.
I'll do the same thing on my windows host.

Changing the priority P2 -> P3.
Comment 11 Tomas Mysik 2007-07-24 17:30:27 UTC
You're welcome.
BTW I've tried the project you had attached so I don't think it's corrupted. But I can be wrong, of course.
Comment 12 Tomas Mysik 2007-07-24 17:33:45 UTC
Marking as RANDOM.
Comment 13 Tomas Mysik 2007-08-31 13:36:08 UTC
Probably duplicate of issue 95952. I'm going to implement its solution as well.
Comment 14 Tomas Mysik 2007-08-31 14:05:40 UTC
Fixed in AppClient and EjbJar projects.

Checking in j2ee/clientproject/src/org/netbeans/modules/j2ee/clientproject/ui/customizer/CustomizerProviderImpl.java;
/cvs/j2ee/clientproject/src/org/netbeans/modules/j2ee/clientproject/ui/customizer/CustomizerProviderImpl.java,v  <--  
CustomizerProviderImpl.java
new revision: 1.8; previous revision: 1.7
done
Checking in j2ee/ejbjarproject/src/org/netbeans/modules/j2ee/ejbjarproject/ui/customizer/CustomizerProviderImpl.java;
/cvs/j2ee/ejbjarproject/src/org/netbeans/modules/j2ee/ejbjarproject/ui/customizer/CustomizerProviderImpl.java,v  <--  
CustomizerProviderImpl.java
new revision: 1.16; previous revision: 1.15
done
Comment 15 Tomas Mysik 2007-09-26 09:16:31 UTC
*** Issue 108780 has been marked as a duplicate of this issue. ***