Maximo

 View Only
  • 1.  Automation Scripting Error - SystemError: __getattribute__ not found on type

    Posted Fri July 30, 2021 08:42 AM
    Hello Experts,

    Getting below error in against scripts when triggered by background job like PMWOGEN. But works fine in next run for same PM.

    This has been observed in upgraded environment from 7609 to 7612. No such observation in 7609.

    Error is very random against any random script on lines like get/set/count operations on MBOs. Example below. 

    BMXAA3212E - Error while generating work order for PM 123456.
    BMXAA7837E - An error occured that prevented the test script for the test launch point from running.
    SystemError: __getattribute__ not found on type PlusGWO. See http://bugs.jython.org/issue2487 for details. in <script> at line number 7

    This error is pointing to some jython bug.

    Please advise.

    Thanks in advance.

    ------------------------------
    sandy s
    ------------------------------



    #Maximo
    #AssetandFacilitiesManagement
    #MaximoIntegrationandScripting


  • 2.  RE: Automation Scripting Error - SystemError: __getattribute__ not found on type

    IBM Champion
    Posted Mon August 02, 2021 04:12 AM
    Hi Sandy,

    The best thiing would be to raise a case with IBM Support.
    Reading the notes it appears there could be a "race condition" where data is still being prepared and another component tries to use that data. In that situation the second component (in your case a script) cannot access the data because it is still being prepared.

    IBM will be able to advise whether the fix mentioned in your link can be deployed against your Maximo system or if it is something else.
    Consider setting the autoscript logger to INFO to record details of the automation scripts that are running - this could help identify if two scripts could be processing the same records at the same time. IBM will probably want these details in the logs if you raise a case with them

    You mention that it occurs with automated processes (e.g. crontasks).

    You could try modifying the script to have a sleep before accessing the attributes - this may give the component preparing the data time to finish its work - even one second may make a differenceCode to add sleep
    import time
    sleepTimeSecs = 1
    time.sleep(sleepTimeSecs)

    Feel free to reach out to me privately. My contact details are in my profile

    ------------------------------
    Mark Robbins
    Support Lead/Technical Design Authority / IBM Champion 2017 & 2018 & 2019 & 2020 & 2021
    Vetasi Limited
    https://www.linkedin.com/pulse/maximo-support-advice-from-non-ibm-engineer-article-mark-robbins/
    ------------------------------



  • 3.  RE: Automation Scripting Error - SystemError: __getattribute__ not found on type

    Posted Mon August 02, 2021 12:18 PM
    Hi Mark,

    Thanks for your valuable inputs! Much Appreciated!

    Case has already been logged with IBM.

    Meanwhile, will try to add workaround of delay and seems should work.

    I will let you know on the outcome.

    Thanks again :).

    ------------------------------
    sandy s
    ------------------------------



  • 4.  RE: Automation Scripting Error - SystemError: __getattribute__ not found on type

    Posted Mon August 02, 2021 11:16 PM
    Hi Sandy,

    Our business partner downloaded jython 2.7.2 library, put it under \IBM\SMP\maximo\applications\maximo\lib  

    Then rebuild and redeploy ear
    The problem was resolved

    May be you can give it a go as well?

    Thanks
    May



    ------------------------------
    May On
    Tech Support
    IBM
    ------------------------------



  • 5.  RE: Automation Scripting Error - SystemError: __getattribute__ not found on type

    IBM Champion
    Posted Tue August 03, 2021 03:50 AM
    Hi Sandy,

    Upgrading the jython library may resolve the problem.

    However you need IBM Support to confirm that they will still support a customised installation. IBM Support's standard position in the past has been that they will only support the versions that were installed as per IBM software/technotes etc. The reason for this is that the software combinations are tested together and changing the version coud resolve one problem but introduce another one.

    Hopefully the sleep will introduce enough of a delay that the race condition will be avoided. Deveelopment will be able to figure out the best long term solution.

    best regards,
    Mark

    ------------------------------
    Mark Robbins
    Support Lead/Technical Design Authority / IBM Champion 2017 & 2018 & 2019 & 2020 & 2021
    Vetasi Limited
    https://www.linkedin.com/pulse/maximo-support-advice-from-non-ibm-engineer-article-mark-robbins/
    ------------------------------



  • 6.  RE: Automation Scripting Error - SystemError: __getattribute__ not found on type

    Posted Tue August 03, 2021 07:59 AM
    Hi Mark,

    Thanks for your suggestion. Yes, this need thorough testing.

    ------------------------------
    sandy s
    ------------------------------



  • 7.  RE: Automation Scripting Error - SystemError: __getattribute__ not found on type

    Posted Wed August 24, 2022 12:19 PM
    Hi Sandy,

    we are facing same issue after we upgraded to 7.6.1.2, please suggest how you resolved it.
    Also its just happenning in prod , do you have any replication steps, our assumption is we have to call at same time and creating this error,
    Query and update

    ------------------------------
    Aakansha Dangwal
    ------------------------------



  • 8.  RE: Automation Scripting Error - SystemError: __getattribute__ not found on type

    Posted Tue August 03, 2021 07:56 AM
    Hi May,

    Thanks for sharing. We will give a try.


    ------------------------------
    sandy s
    ------------------------------



  • 9.  RE: Automation Scripting Error - SystemError: __getattribute__ not found on type

    Posted Wed August 04, 2021 08:36 AM
    Hello Sandy,

    We too had raised this with IBM. the issue is with jython version as 2.7.1. The release of 7.6.1.3 is supposed to address this issue and have jython version as 2.7.2. They provided a workaround to replace the jython.jar in Maximo. Either replace, rebuild and redeploy jython jar version 2.7.2 in C:\IBM\SMP\maximo\applications\maximo\lib OR replace jython jar version 2.7.2 in WebSphere and restart Maximo.

    Thanks,
    Sujata


    ------------------------------
    Sujata Halder
    ------------------------------