I get the following Error when running a Jython script


C:\scripts>"C:/Program Files/IBM/WebSphere7/AppServer1/profiles/Dmgr01/bin/wsadmin.bat" -username wasadmin -password wasadmin -lang jython -f "C:/scripts/clusterAndServer_test.py"
WASX7209I: Connected to process "dmgr" on node myCellManager01 using SOAP connector;  The type of process is: DeploymentManager
DEBUG ON
WASX7017E: Exception received while running file "C:/scripts/clusterAndServer_test.py"; exception information: com.ibm.bsf.BSFException: exception from Jython:
Traceback (innermost last):
File "<string>", line 41, in ?
File "C:\scripts\.\clusterAndServer.py", line 151, in isClusterRunning
TypeError: unbound method log() must be called with instance as first argument

Error: In my code I had reference the Debug method statically, I should have declares the method first.

 

Solution:

 

Facebooktwittergoogle_plusredditpinterestlinkedinmail

Leave a Reply