[GLASSFISH-18107] error message appearing after 'save' of new jdbc connection pool or resource Created: 30/Dec/11  Updated: 20/Dec/16  Resolved: 03/Jan/12

Status: Resolved
Project: glassfish
Component/s: admin_gui
Affects Version/s: 3.1.2_dev
Fix Version/s: 3.1.2_dev, 4.0_dev

Type: Bug Priority: Major
Reporter: pbelbin Assignee: Anissa Lam
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

windows 7, jdk 7u2, x64.

Attachments: File server_.7z    
Issue Links:
is duplicated by GLASSFISH-18129 Modifying values in LB Config throws ... Resolved
is duplicated by GLASSFISH-18136 Blocking: RuntimeException modifying ... Closed
Tags: 3_1_2-review, 3_1_x-exclude


did a fresh install of glassfish 3.1.2 b16.

manually added the latest jdbc4 driver jar for postgresql to the domain


/lib directory then started the domain.

proceeded to add a JDBC Connection Pool, and after the initial 'save' button usage, was presented with (in the right hand pane) 'class java.lang.RuntimeException'.

I did find that the settings had been saved, however.

I proceeded to add a JDBC Resource for the newly added pool, and, upon using the 'save' button, was again rewarded with the same message being displayed.

Again, the pool definition did appear to have been saved.

I have attached the log file.

Comment by Anissa Lam [ 02/Jan/12 ]
  • What is the impact on the customer of the bug?
    User will not be able to save any property tables.
  • What is the cost/risk of fixing the bug?
    2 hours. Test and ensure the object type is a Map.
  • Is there an impact on documentation or message strings?
  • Which tests should QA (re)run to verify the fix did not destabilize GlassFish?
    Test to ensure that password is still masked when logged in server.log. Also verify that page with Property table can be saved properly.
  • Which is the targeted build of 3.1.2 for this fix?

Index: src/main/java/org/glassfish/admingui/common/util/RestUtil.java
— src/main/java/org/glassfish/admingui/common/util/RestUtil.java (revision 51836)
+++ src/main/java/org/glassfish/admingui/common/util/RestUtil.java (working copy)
@@ -220,6 +220,9 @@

private static Map maskOffPassword(Map<String, Object> attrs){
Map masked = new HashMap();
+ if (attrs == null)

{ + return masked; + }

for(String key : attrs.keySet()){
if (pswdAttrList.contains(key.toLowerCase())){
@@ -307,7 +310,10 @@
// Parse the response
String message = "";
ExitCode exitCode = ExitCode.FAILURE;

  • Map maskedAttr = maskOffPassword((Map<String, Object>)attrs);
    + Object maskedAttr = attrs;
    + if ((attrs != null) && (attrs instanceof Map)) { + maskedAttr = maskOffPassword((Map<String, Object>)attrs); + }

    if (response != null) {
    try {
    int status = response.getResponseCode();

Comment by Anissa Lam [ 03/Jan/12 ]

28) svn commit
Sending common/src/main/java/org/glassfish/admingui/common/util/RestUtil.java
Transmitting file data .
Committed revision 51859.

Comment by Anissa Lam [ 20/Jan/12 ]

Also fixed in the trunk.

Modified Paths:

Generated at Sun Jan 22 23:04:14 UTC 2017 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.