javaserverfaces
  1. javaserverfaces
  2. JAVASERVERFACES-2859

admingui test fails with Mojarra 2.2.x on GlassFish 4.0

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.2.0-m14
    • Fix Version/s: 2.2.2
    • Component/s: build
    • Labels:
      None

      Description

      On April 25, the admingui automated test started failing when running Mojarra 2.2.x inside of GlassFish 4.0 trunk.

      Here is a stacktrace from the test output.

      Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 7.79 sec
      [junit]
      [junit] Testcase: testDeployExerciseUndeploy took 7.631 sec
      [junit] Caused an ERROR
      [junit] ReferenceError: "frameOnload" is not defined.
      [junit] ======= EXCEPTION START ========
      [junit] EcmaError: lineNumber=[0] column=[0] lineSource=[function () {] name=[ReferenceError] sourceName=[null] message=[ReferenceError: "frameOnload" is not defined.]
      [junit] com.gargoylesoftware.htmlunit.ScriptException: ReferenceError: "frameOnload" is not defined.
      [junit] at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:513)
      [junit] at org.mozilla.javascript.Context.call(Context.java:515)
      [junit] at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:507)
      [junit] at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:444)
      [junit] at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:961)
      [junit] at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeEventHandler(EventListenersContainer.java:152)
      [junit] at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeBubblingListeners(EventListenersContainer.java:165)
      [junit] at com.gargoylesoftware.htmlunit.javascript.host.Node.fireEvent(Node.java:586)
      [junit] at com.gargoylesoftware.htmlunit.html.HtmlElement$2.run(HtmlElement.java:916)
      [junit] at org.mozilla.javascript.Context.call(Context.java:515)
      [junit] at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:507)
      [junit] at com.gargoylesoftware.htmlunit.html.HtmlElement.fireEvent(HtmlElement.java:921)
      [junit] at com.gargoylesoftware.htmlunit.html.HtmlPage.executeEventHandlersIfNeeded(HtmlPage.java:1206)
      [junit] at com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:173)
      [junit] at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:445)
      [junit] at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:327)
      [junit] at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:384)
      [junit] at com.sun.faces.htmlunit.HtmlUnitFacesTestCase.getPage(HtmlUnitFacesTestCase.java:264)
      [junit] at com.sun.faces.regression.admingui.AdminGuiTestCase.testDeployExerciseUndeploy(AdminGuiTestCase.java:91)
      [junit] at com.sun.faces.htmlunit.HtmlUnitFacesTestCase.runTest(HtmlUnitFacesTestCase.java:633)
      [junit] Caused by: org.mozilla.javascript.EcmaError: ReferenceError: "frameOnload" is not defined.
      [junit] at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3654)
      [junit] at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3632)
      [junit] at org.mozilla.javascript.ScriptRuntime.notFoundError(ScriptRuntime.java:3717)
      [junit] at org.mozilla.javascript.ScriptRuntime.nameOrFunction(ScriptRuntime.java:1758)
      [junit] at org.mozilla.javascript.ScriptRuntime.name(ScriptRuntime.java:1697)
      [junit] at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3410)
      [junit] at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2487)
      [junit] at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
      [junit] at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:398)
      [junit] at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:192)
      [junit] at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3065)
      [junit] at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162)
      [junit] at com.gargoylesoftware.htmlunit.javascript.host.EventHandler.call(EventHandler.java:82)
      [junit] at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:472)
      [junit] at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$6.doRun(JavaScriptEngine.java:437)
      [junit] at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:507)
      [junit] Enclosed exception:
      [junit] org.mozilla.javascript.EcmaError: ReferenceError: "frameOnload" is not defined.
      [junit] at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3654)
      [junit] at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3632)
      [junit] at org.mozilla.javascript.ScriptRuntime.notFoundError(ScriptRuntime.java:3717)
      [junit] at org.mozilla.javascript.ScriptRuntime.nameOrFunction(ScriptRuntime.java:1758)
      [junit] at org.mozilla.javascript.ScriptRuntime.name(ScriptRuntime.java:1697)
      [junit] at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3410)
      [junit] at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2487)
      [junit] at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
      [junit] at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:398)
      [junit] at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:192)
      [junit] at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3065)
      [junit] at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162)
      [junit] at com.gargoylesoftware.htmlunit.javascript.host.EventHandler.call(EventHandler.java:82)
      [junit] at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:472)
      [junit] at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$6.doRun(JavaScriptEngine.java:437)
      [junit] at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:507)
      [junit] at org.mozilla.javascript.Context.call(Context.java:515)
      [junit] at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:507)
      [junit] at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:444)
      [junit] at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:961)
      [junit] at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeEventHandler(EventListenersContainer.java:152)
      [junit] at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeBubblingListeners(EventListenersContainer.java:165)
      [junit] at com.gargoylesoftware.htmlunit.javascript.host.Node.fireEvent(Node.java:586)
      [junit] at com.gargoylesoftware.htmlunit.html.HtmlElement$2.run(HtmlElement.java:916)
      [junit] at org.mozilla.javascript.Context.call(Context.java:515)
      [junit] at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:507)
      [junit] at com.gargoylesoftware.htmlunit.html.HtmlElement.fireEvent(HtmlElement.java:921)
      [junit] at com.gargoylesoftware.htmlunit.html.HtmlPage.executeEventHandlersIfNeeded(HtmlPage.java:1206)
      [junit] at com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:173)
      [junit] at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:445)
      [junit] at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:327)
      [junit] at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:384)
      [junit] at com.sun.faces.htmlunit.HtmlUnitFacesTestCase.getPage(HtmlUnitFacesTestCase.java:264)
      [junit] at com.sun.faces.regression.admingui.AdminGuiTestCase.testDeployExerciseUndeploy(AdminGuiTestCase.java:91)
      [junit] at com.sun.faces.htmlunit.HtmlUnitFacesTestCase.runTest(HtmlUnitFacesTestCase.java:633)
      [junit] == CALLING JAVASCRIPT ==
      [junit] function ()

      { [junit] [native code, arity=0] [junit] }

      [junit]
      [junit] ======= EXCEPTION END ========
      [junit]
      [echo] Error in trycatch block:
      [echo] /scratch/hudson_local/.hudson/jobs/MOJARRA_TRUNK_GLASSFISH_4_0_NO_CLUSTER/workspace/trunk/build.xml:227: The following error occurred while executing this line:
      [echo] /scratch/hudson_local/.hudson/jobs/MOJARRA_TRUNK_GLASSFISH_4_0_NO_CLUSTER/workspace/trunk/build.xml:164: The following error occurred while executing this line:
      [echo] /scratch/hudson_local/.hudson/jobs/MOJARRA_TRUNK_GLASSFISH_4_0_NO_CLUSTER/workspace/trunk/jsf-test/build.xml:134: The following error occurred while executing this line:
      [echo] /scratch/hudson_local/.hudson/jobs/MOJARRA_TRUNK_GLASSFISH_4_0_NO_CLUSTER/workspace/trunk/jsf-test/build.xml:146: The following error occurred while executing this line:
      [echo] /scratch/hudson_local/.hudson/jobs/MOJARRA_TRUNK_GLASSFISH_4_0_NO_CLUSTER/workspace/trunk/jsf-test/admingui/build.xml:86: Task [sequential] failed after [15] attempts; giving up.
      [echo] Error messages:
      [echo] The following error occurred while executing this line:
      [echo] /scratch/hudson_local/.hudson/jobs/MOJARRA_TRUNK_GLASSFISH_4_0_NO_CLUSTER/workspace/trunk/common/ant/common.xml:315: Test com.sun.faces.regression.admingui.AdminGuiTestCase failed
      [echo] The following error occurred while executing this line:
      [echo] /scratch/hudson_local/.hudson/jobs/MOJARRA_TRUNK_GLASSFISH_4_0_NO_CLUSTER/workspace/trunk/common/ant/common.xml:315: Test com.sun.faces.regression.admingui.AdminGuiTestCase failed
      [echo] The following error occurred while executing this line:
      [echo] /scratch/hudson_local/.hudson/jobs/MOJARRA_TRUNK_GLASSFISH_4_0_NO_CLUSTER/workspace/trunk/common/ant/common.xml:315: Test com.sun.faces.regression.admingui.AdminGuiTestCase failed
      [echo] The following error occurred while executing this line:
      [echo] /scratch/hudson_local/.hudson/jobs/MOJARRA_TRUNK_GLASSFISH_4_0_NO_CLUSTER/workspace/trunk/common/ant/common.xml:315: Test com.sun.faces.regression.admingui.AdminGuiTestCase failed
      [echo] The following error occurred while executing this line:
      [echo] /scratch/hudson_local/.hudson/jobs/MOJARRA_TRUNK_GLASSFISH_4_0_NO_CLUSTER/workspace/trunk/common/ant/common.xml:315: Test com.sun.faces.regression.admingui.AdminGuiTestCase failed
      [echo] The following error occurred while executing this line:
      [echo] /scratch/hudson_local/.hudson/jobs/MOJARRA_TRUNK_GLASSFISH_4_0_NO_CLUSTER/workspace/trunk/common/ant/common.xml:315: Test com.sun.faces.regression.admingui.AdminGuiTestCase failed
      [echo] The following error occurred while executing this line:
      [echo] /scratch/hudson_local/.hudson/jobs/MOJARRA_TRUNK_GLASSFISH_4_0_NO_CLUSTER/workspace/trunk/common/ant/common.xml:315: Test com.sun.faces.regression.admingui.AdminGuiTestCase failed
      [echo] The following error occurred while executing this line:
      [echo] /scratch/hudson_local/.hudson/jobs/MOJARRA_TRUNK_GLASSFISH_4_0_NO_CLUSTER/workspace/trunk/common/ant/common.xml:315: Test com.sun.faces.regression.admingui.AdminGuiTestCase failed
      [echo] The following error occurred while executing this line:
      [echo] /scratch/hudson_local/.hudson/jobs/MOJARRA_TRUNK_GLASSFISH_4_0_NO_CLUSTER/workspace/trunk/common/ant/common.xml:315: Test com.sun.faces.regression.admingui.AdminGuiTestCase failed
      [echo] The following error occurred while executing this line:
      [echo] /scratch/hudson_local/.hudson/jobs/MOJARRA_TRUNK_GLASSFISH_4_0_NO_CLUSTER/workspace/trunk/common/ant/common.xml:315: Test com.sun.faces.regression.admingui.AdminGuiTestCase failed
      [echo] The following error occurred while executing this line:
      [echo] /scratch/hudson_local/.hudson/jobs/MOJARRA_TRUNK_GLASSFISH_4_0_NO_CLUSTER/workspace/trunk/common/ant/common.xml:315: Test com.sun.faces.regression.admingui.AdminGuiTestCase failed
      [echo] The following error occurred while executing this line:
      [echo] /scratch/hudson_local/.hudson/jobs/MOJARRA_TRUNK_GLASSFISH_4_0_NO_CLUSTER/workspace/trunk/common/ant/common.xml:315: Test com.sun.faces.regression.admingui.AdminGuiTestCase failed
      [echo] The following error occurred while executing this line:
      [echo] /scratch/hudson_local/.hudson/jobs/MOJARRA_TRUNK_GLASSFISH_4_0_NO_CLUSTER/workspace/trunk/common/ant/common.xml:315: Test com.sun.faces.regression.admingui.AdminGuiTestCase failed
      [echo] The following error occurred while executing this line:
      [echo] /scratch/hudson_local/.hudson/jobs/MOJARRA_TRUNK_GLASSFISH_4_0_NO_CLUSTER/workspace/trunk/common/ant/common.xml:315: Test com.sun.faces.regression.admingui.AdminGuiTestCase failed
      [echo] The following error occurred while executing this line:
      [echo] /scratch/hudson_local/.hudson/jobs/MOJARRA_TRUNK_GLASSFISH_4_0_NO_CLUSTER/workspace/trunk/common/ant/common.xml:315: Test com.sun.faces.regression.admingui.AdminGuiTestCase failed
      [echo] The following error occurred while executing this line:
      [echo] /scratch/hudson_local/.hudson/jobs/MOJARRA_TRUNK_GLASSFISH_4_0_NO_CLUSTER/workspace/trunk/common/ant/common.xml:315: Test com.sun.faces.regression.admingui.AdminGuiTestCase failed
      [echo] About to stop container.
      [echo]
      [echo]
      [echo] "------------ create-virtual-server: false ------------"

        Issue Links

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              Manfred Riem
              Reporter:
              Ed Burns
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: