IBM Support

AdminConfig.modify() fails with WASX7123E: Unexpected "]" found error

Troubleshooting


Problem

Your attempts to execute the Jython command AdminConfig.modify() using square brackets "[" at the beginning of value fails.

Symptom

When attempting to create or update a J2EEResourceProperty using wsadmin Jython command: AdminConfig.modify(), a java.lang.IllegalArgumentException exception is returned, if the value of the property begins with the "[" character.

For example, this command:

AdminConfig.modify('(cells/ebzCell01|resources.xml#J2EEResourceProperty_1327700267852)', '[[name "test"] [type "java.lang.String"] [description ""] [value "[]"] [required "false"]]')

produces this output:

WASX7015E: Exception running command: "AdminConfig.modify('(cells/ebzCell01|resources.xml#J2EEResourceProperty_1327700267852)', '[[name "test"] [type "java.lang.String"] [description ""] [value "[]"][required "false"]]')"; exception information:

 java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: WASX7123E: Unexpected "]" found.

Attribute= had invalid value= for input parameter=]

[{"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Administrative Scripting Tools (for example: wsadmin or ANT)","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"8.5;8.0;7.0","Edition":"Developer;Express;Network Deployment","Line of Business":{"code":"LOB77","label":"Automation Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
03 March 2025

UID

swg21587193