This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Websphere and the fly likes Jython and Websphere wsadmin escape issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Websphere
Bookmark "Jython and Websphere wsadmin escape issue" Watch "Jython and Websphere wsadmin escape issue" New topic
Author

Jython and Websphere wsadmin escape issue

Vlada Stankovic
Greenhorn

Joined: Feb 18, 2010
Posts: 10

I have problem setting namespace binding properties from Jython using wsadmin. I read properties from xyz.properties file and set those values to websphere Problem occurs when my .properties file contains special characters like ], [, ", '

Example xyz.properties

vlada2=asd'" vlada3=asd[

WASX7017E: Exception received while running file "blabla.py"; exception information: java.lang.IllegalArgumentException:

java.lang.IllegalArgumentException: WASX7122E: Expected "]" not found.

Attribute=stringToBind had invalid value=asd\ for input parameter=[stringToBind asd\'"] [nameInNameSpace "vlada1"] [name "vlada1"]

Script source code

 
GeeCON Prague 2014
 
subject: Jython and Websphere wsadmin escape issue