When running a Jython script you get the WASX7025E: Error found in String “”; cannot create ObjectName for example:

Example Error:

C:\scripts>"C:/Program Files/IBM/WebSphere7/AppServer1/profiles/Dmgr01/bin/wsadmin.bat" -username wasadmin -password wasadmin -lang jython -f "C:/scripts/clusterAndServer.py"
WASX7209I: Connected to process "dmgr" on node myCellManager01 using SOAP connector;  The type of process is: DeploymentManager
WASX7017E: Exception received while running file "C:/scripts/clusterAndServer.py"; exception information: com.ibm.ws.scripting.ScriptingException: Wc.

Sample Code:

clusterMgr = AdminControl.completeObjectName("cell="+cellName+",type=ClusterMgr,*" )

Because the call requires cellName as a parameter, it is blank ie “” the command would not execute, hence the error


Leave a Reply