Message6610

Author amyhlin
Recipients amyhlin
Date 2011-08-22.21:00:15
SpamBayes Score 3.8589687e-12
Marked as misclassified No
Message-id <1314046816.33.0.288055605036.issue1792@psf.upfronthosting.co.za>
In-reply-to
Content
When issuing WebSphere Application Server wsadmin command to display a list of WebSphere configuration object identification such as node ID, it returns the jython unicode string (u'xxxx) instead of regular string in jython 2.5.2.  Does the behavior change in v2.5.2?  Is any way to prevent this?   

For example, it returns the list of the WebSphere node configuration object ids in jython unicode format (u'<config id string>) when issuing wsadmin AdminConfig.list('Node') command in Windows.

Using Jython 2.5.2:

c:\WebSphere\AppServer\profiles\Dmgr01\bin>wsadmin -lang jython
WASX7031I: For help, enter: "print Help.help()"
wsadmin>AdminConfig.list('Node')
u'AMYLINCellManager01(cells/AMYLINCell01/nodes/AMYLINCellManager01|node.xml#Node_1)\r\nAMYLINNode01(cells/AMYLINCell01/nodes/AMYLINNode01|node.xml#Node_1)'

It returns correctly if we issue jython print command or assign the output list to a variable.

wsadmin>print AdminConfig.list('Node')
AMYLINCellManager0(cells/AMYLINCell01/nodes/AMYLINCellManager01|node.xml#Node_1)AMYLINNode01(cells/AMYLINCell01/nodes/AMYLINNode01|node.xml#Node_1)'

wsadmin>nodes = AdminConfig.list('Node')
wsadmin>print nodes
AMYLINCellManager01(cells/AMYLINCell01/nodes/AMYLINCellManager01|node.xml#Node_1)AMYLINNode01(cells/AMYLINCell01/nodes/AMYLINNode01|node.xml#Node_1)

It display normally (non-unicode) when issuing same commnd in WebSphere Application Server V6.1 and V7.0 with jython version 2.1.

Using Jython 2.1:

wsadmin>AdminConfig.list('Node')
'AMYLINCellManager01(cells/AMYLINCell01/nodes/AMYLINCellManager01|node.xml#Node_1)\r\nAMYLINNode01(cells/AMYLINCell01/nodes/AMYLINNode01|node.xml#Node_1)'
History
Date User Action Args
2011-08-22 21:00:16amyhlinsetrecipients: + amyhlin
2011-08-22 21:00:16amyhlinsetmessageid: <1314046816.33.0.288055605036.issue1792@psf.upfronthosting.co.za>
2011-08-22 21:00:16amyhlinlinkissue1792 messages
2011-08-22 21:00:15amyhlincreate