Date Created: Sun 13-Mar-2011

Related Document Categories:

Get my WebSphere Application Server course here >> http://www.themiddlewareshop.com/products/


WebSphere wsadmin Jython error

WASX7209I: Connected to process "server01" on node node01 using SOAP connector; The type of process is: UnManagedProcess
WASX7017E: Exception received while running file "/root/scripts/was/disableMQ.py"; exception information: com.ibm.bsf.BSFException: exception from Jython:
Traceback (innermost last):
File "<string>", line 19, in ?
File "<string>", line 16, in disableMQ

TypeError: manageWMQ(): 1st arg can't be coerced to String

Change

AdminTask.manageWMQ(["-disableWMQ true"])

to

AdminTask.manageWMQ('"WebSphere MQ Resource Adapter(cells/s15418557Node01Cell/nodes/node01/servers/server01|resources.xml#J2CResourceAdapter_1299445909935)"', '[-nativePath -disableWMQ true ]')

You can see that the first target object is now a string

Get my WebSphere Application Server course here >> http://www.themiddlewareshop.com/products/


Steve Robinson - IBM Champion 2013

About Me

Steve Robinson has been working in IT for over 20 years and has provided solutions for many large-enterprise corporate companies across the world. Steve specialises in Java and Middleware.

In January 2013, I was awarded the prestigous 'IBM Champion' accolade.


  • Linked In
  • Twitter
  • About Me
  • My Blog
  • Contact Me

Read my books?

IBM WebSphere Application Server 8.0 Administration Guide

IBM WebSphere Application Server 8.0 Administration Guide

WebSphere Application Server 7.0 Administration Guide

WebSphere Application Server 7.0 Administration Guide

WebSphere Categories

Other Categories