IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  JavaScript errors in views

    Posted Tue September 21, 2010 03:14 PM

    Hi,

    We are getting a lot of JavaScript errors from the SAG js files.
    Most are coming from file wm_cafshared/dyn/base.js. The errors are :

    ‘CAF.model(…)’ is null or not an object
    ‘m._body().firstChild’ is null or not an object
    ‘addEventListener’ is null or not an object

    Does anyone know how we could find the source/fix these errors?
    We already checked our JavaScript and it’s not generating errors. Also, all the CAF components we are using have id’s, either default either manually set.

    We are using webMethods 7.1.3 and we already has several service requests and engineering fixes regarding JavaScript.

    Thank you.


    #webMethods-BPMS
    #MWS-CAF-Task-Engine
    #webMethods


  • 2.  RE: JavaScript errors in views

    Posted Thu September 30, 2010 07:21 AM

    hi,

    have you resolved this issue…?
    since, I am also facing the same…


    #MWS-CAF-Task-Engine
    #webMethods
    #webMethods-BPMS


  • 3.  RE: JavaScript errors in views

    Posted Wed October 06, 2010 12:50 PM

    Unfortunately no.

    From investigating we found that some of the errors come from modal dialogs and hideable panels components, from the internal SAG handling of the components.

    The only solution we have and was suggested to us was a Service Request to SAG.


    #MWS-CAF-Task-Engine
    #webMethods
    #webMethods-BPMS


  • 4.  RE: JavaScript errors in views

    Posted Thu October 07, 2010 06:13 AM

    Hi,
    Some times these JS errors comes up when you navigate between different views.
    If this is the problem, then check if you are using an async command icon to navigate to other view in the same portlet. If yes then please change it to command icon.

    ‘CAF.model(…)’ is null or not an object – This error could be, if you are using any CAF.model API and you are referring to a control on the page and that control is not rendered on the page.

    Please let me know if the above are the causes of you are JS errors.

    Thanks,
    Sravan


    #MWS-CAF-Task-Engine
    #webMethods
    #webMethods-BPMS


  • 5.  RE: JavaScript errors in views

    Posted Thu September 15, 2011 11:28 AM

    Hi,

    I am also getting the error “addEventListener is null or not an object”.

    I am getting this error when i put the customscript control inside the table.

    If any one solved the “addEventListener is null or not an object” issue.Please reply me the solution.

    Thanks
    tmv


    #MWS-CAF-Task-Engine
    #webMethods-BPMS
    #webMethods


  • 6.  RE: JavaScript errors in views

    Posted Thu September 15, 2011 04:17 PM

    Is it possible to create a sample application that demonstrates this problem? I’m not sure what javascript you’ve added to the CustomScript control.


    #MWS-CAF-Task-Engine
    #webMethods
    #webMethods-BPMS