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.
NB Build:NB6.5 RC2 GFV2.1:b60b(http://javaweb.sfbay.sun.com/java/re/glassfish_branch/9.1.1/nightly/) JDK:jdk1.5.0_07 Steps to reproduce: -Instaall IDE and start IDE -Register GFV2.1 server and start. -Create a simple web application(Hello World) -Right click on the application, select New/Other/GlassFish/JMS Resources. -Provide the JNDI name and set Admin Object Resource type javax.jms.Queue as and select Next. -In the JMS properties wizard Enater Name :DestinationName and Value:(), Click Finish. -Right click on the application select Build/Deploy/Run. -Right click on services/Server/Resources/JMS Resource/Destinarion Resources/jms/myQueue and select Properties. -Edit properties from the jms/myQueue properties Wizard and click OK. Issue: On clicking OK button getting error.
What property did you edit? What value did you provide? What error did you get?
-While creating JMS resource, in the bottom of the JMS properties wizard there is a message that says " Properties should have non-empty Name and Value.Use '()'to indicate that the value is empty string ". -So I set the Name field as Name=Destination and Value=(). -After that I deployed the application. -In the server right click on the deployed JMS resources and select properties.(Server/GFV2.1/Resources/JMS Resource/Destination Resource/) -In the JMS properties wizard edit the properties to add some property. -Don't enter any property and just click on OK button. Issue: The properties of the deployed JMS resource in the server does not recognize the empty string which is when set to'()'while creating JMS resource.
Created attachment 74889 [details] Edit properties
Created attachment 74890 [details] Error screen shot
Created attachment 74891 [details] Error screen shot
The NameValue property editor seems to be calling a save on the properties even when no change has been made. And it tries to save an empty string. The editor should not making calls to server if no change has been made & should also use '()'
Assigned engineer: please correct the tm value. nb 6.7 has shipped, so a tm of 6.7 is invalid at this point
fixed in web-main http://hg.netbeans.org/web-main/rev/8e84a0f972ee
Integrated into 'main-golden', will be available in build *200909270201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/8e84a0f972ee User: nityad@netbeans.org Log: #154080 : Extend setProperty in NameValue editor to handle empty properties values