IBM Support

PI83051: ADMINJDBC.PY SCRIPT LIBRARY TO CREATE A DATASOURCE FAILS ON 'CONVERTPARAMLISTTOSTRING'

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Attempt to run AdminJDBC.py from the scriptLibraries to create
    a datasource fails with the following error on WebSphere
    Application Server v9.0.0.3
    
    Exception: <type 'exceptions.AttributeError'> 'module' object
    has no attribute 'convertParamListToString'
    WASX7017E: Exception received while running file
    "/mnt/software/WebSphere/buildenv/scripts/config/
    createJDBCDataSource.py"; exception information:
    com.ibm.bsf.BSFException: exceptionf rom Jython:
    Traceback (most recent call last):
      File "<string>", line 37, in <module>
      File "/usr/IBM/WebSphere/AppServer/scriptLibraries/
              resources/JDBC/V70/AdminJDBC.py", line 1331, in
              createDataSourceAtScope
        raise Exception("ScriptLibraryException: " + val)
    Exception: ScriptLibraryException: <type'
    exceptions.AttributeError'>
    'module' object has no attribute 'convertParamListToString'
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server                                      *
    ****************************************************************
    * PROBLEM DESCRIPTION: convertParamListToString is not         *
    *                      present                                 *
    *                      in AdminUtilities.py                    *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The following error is be seen:
    The function createDataSourceAtScope in AdminJDBC.py (at
    C:\IBM\WebSphere9\AppServer\scriptLibraries\resources\JDBC\V70\)
    calls
    the function AdminUtilities.convertParamListToString at line
    1307.
    AdminUtilities.py (at
    C:\IBM\WebSphere9\AppServer\scriptLibraries\utilities\V70) does
    not
    contain a method convertParamListToString, and
    createDataSourceAtScope
    therefore fails.
    ...
    This fix adds the method back into AdminUtilities.py
    

Problem conclusion

Temporary fix

  • As a workaround until the fix is published, the following code
    can be added to the bottom of AdminUtilities.py:
    
    # convert param list [-param1, value1, -param2, value2, ...] to
    def convertParamListToString(paramList):
        stringParam = "["
        for param in paramList:
            stringParam = stringParam + param + " "
        stringParam = stringParam + "]"
        return stringParam
    #endDef
    

Comments

APAR Information

  • APAR number

    PI83051

  • Reported component name

    WEBS APP SERV N

  • Reported component ID

    5724H8800

  • Reported release

    900

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2017-06-14

  • Closed date

    2017-10-25

  • Last modified date

    2017-12-07

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    WEBS APP SERV N

  • Fixed component ID

    5724H8800

Applicable component levels

  • R900 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"9.0","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
02 December 2021