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 154080 - Unexpected setProperty on[jms/myQueue]resource failure! null
Summary: Unexpected setProperty on[jms/myQueue]resource failure! null
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 9 (show other bugs)
Version: 6.x
Hardware: Sun All
: P3 blocker (vote)
Assignee: Nitya Doraisamy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-28 10:23 UTC by dpkumar
Modified: 2009-09-27 22:36 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Edit properties (92.16 KB, image/gif)
2008-12-12 09:05 UTC, dpkumar
Details
Error screen shot (89.70 KB, text/plain)
2008-12-12 09:06 UTC, dpkumar
Details
Error screen shot (89.70 KB, image/gif)
2008-12-12 09:08 UTC, dpkumar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dpkumar 2008-11-28 10:23:28 UTC
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.
Comment 1 Nitya Doraisamy 2008-12-08 20:52:18 UTC
What property did you edit? What value did you provide?
What error did you get?

Comment 2 dpkumar 2008-12-12 09:04:52 UTC
-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.
Comment 3 dpkumar 2008-12-12 09:05:58 UTC
Created attachment 74889 [details]
Edit properties
Comment 4 dpkumar 2008-12-12 09:06:40 UTC
Created attachment 74890 [details]
Error screen shot
Comment 5 dpkumar 2008-12-12 09:08:24 UTC
Created attachment 74891 [details]
Error screen shot
Comment 6 Nitya Doraisamy 2008-12-12 19:36:55 UTC
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
'()'
Comment 7 Vince Kraemer 2009-09-16 23:55:29 UTC
Assigned engineer: please correct the tm value.  nb 6.7 has shipped, so a tm of
6.7  is invalid at this point
Comment 8 Nitya Doraisamy 2009-09-25 17:43:13 UTC
fixed in web-main
http://hg.netbeans.org/web-main/rev/8e84a0f972ee
Comment 9 Quality Engineering 2009-09-27 22:36:51 UTC
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