IBM Support

JR43221: ERROR ENCOUNTERED WHEN PREVIEWING COACH WITH DOCUMENT ATTACHMENT CONTROL

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • If document attachment control is inside of a coach, when
    previewing the coach, will get message:
    An Error occurred while rendering the HTML for this coach.
    
    Check ae.log, found error messages:
    org.mozilla.javascript.EcmaError: TypeError: Cannot call
    property encrypt in object [JavaPackage
    teamworks.CoachDesignerUtils]. It is not a function, it is
    "object". (html#148)
     at
    org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntim
    e.java:3658)
     at
    org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntim
    e.java:3636)
     at
    org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.jav
    a:3664)
     at
    org.mozilla.javascript.ScriptRuntime.typeError3(ScriptRuntime.ja
    va:3690)
     at
    org.mozilla.javascript.ScriptRuntime.notFunctionError(ScriptRunt
    ime.java:3750)
     at
    org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThisHelpe
    r(ScriptRuntime.java:2247)
     at
    org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(Scri
    ptRuntime.java:2214)
     at
    org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.jav
    a:3143)
     at script(html:148)
     at
    org.mozilla.javascript.Interpreter.interpret(Interpreter.java:24
    87)
     at
    org.mozilla.javascript.InterpretedFunction.call(InterpretedFunct
    ion.java:164)
     at
    org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.j
    ava:398)
     at
    org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.jav
    a:3070)
     at
    org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunct
    ion.java:175)
     at
    org.mozilla.javascript.Context.evaluateString(Context.java:1104)
     at
    com.lombardisoftware.client.ae.forms.coachDesigner.pages.Preview
    CoachPage.renderHtml(PreviewCoachPage.java:210)
     at
    com.lombardisoftware.client.ae.forms.coachDesigner.pages.Preview
    CoachPage.updateHtml(PreviewCoachPage.java:149)
     at
    com.lombardisoftware.client.ae.forms.coachDesigner.pages.DesignP
    age$4.widgetSelected(DesignPage.java:246)
     at
    org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.
    java:234)
     at
    org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
     at
    org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:774)
     at
    org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:2
    743)
     at
    org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1429)
     at
    org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:
    257)
     at
    org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
     at
    org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4
    066)
     at
    org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:365
    7)
     at
    org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:26
    29)
     at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2593)
     at
    org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2427)
     at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:670)
     at
    org.eclipse.core.databinding.observable.Realm.runWithDefault(Rea
    lm.java:332)
     at
    org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbenc
    h.java:663)
     at
    org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:
    149)
     at
    teamworks.ae.product.TWApplication.start(TWApplication.java:63)
     at
    org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseApp
    Handle.java:196)
     at
    org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.run
    Application(EclipseAppLauncher.java:110)
     at
    org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.sta
    rt(EclipseAppLauncher.java:79)
     at
    org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStart
    er.java:369)
     at
    org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStart
    er.java:179)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessor
    Impl.java:48)
     at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod
    AccessorImpl.java:37)
     at java.lang.reflect.Method.invoke(Method.java:600)
     at
    org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
     at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
     at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
     at org.eclipse.equinox.launcher.Main.main(Main.java:1383)
    

Local fix

  • n/a
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  Users of BPM Express, BPM Standard, and     *
    *                  BPM Advanced.                               *
    ****************************************************************
    * PROBLEM DESCRIPTION: Coach containing either Document        *
    *                      Attachment/Viewer control, when         *
    *                      previewing the coach results in HTML    *
    *                      rendering error.                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    Code did not catch error when handling the user id and
    password associated with document attachment/viewer controls.
    Exception is thrown because at preview time user id and
    password is not yet available.
    

Problem conclusion

  • To correct this functionality, a "try/catch" clause was added
    to the code to properly handle these variables.
    

Temporary fix

Comments

APAR Information

  • APAR number

    JR43221

  • Reported component name

    BPM ADVANCED

  • Reported component ID

    5725C9400

  • Reported release

    751

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-06-25

  • Closed date

    2012-08-24

  • Last modified date

    2012-08-24

  • 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

    BPM ADVANCED

  • Fixed component ID

    5725C9400

Applicable component levels

  • R750 PSY

       UP

[{"Line of Business":{"code":"LOB45","label":"Automation"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSFTN5","label":"IBM Business Process Manager Advanced"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.5.1"}]

Document Information

Modified date:
07 October 2021