Date Created: Sun 13-Mar-2011

Related Document Categories:


    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

Middleware Mentor - Steven Charles Robinson

About Me

Steve Robinson has been working in IT for over 15 years and has provided solutions for many large-enterprise corporate companies across the world. Steve specialises in Java and Middleware consulting. Steve comes from both an administration and development background.

Before moving to JEE, Steve was an accomplished developer and consultant for both IBM Lotus Notes and Microsoft .NET Technologies.

Follow Steve as @stevencrobinson on twitter.

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

Oracle WebLogic Categories

JBoss Categories

Other Categories