net.sourceforge.jwebunit.exception.TestingEngineResponseException: The server return 400 HTTP code.

Atlassian JIRA | Tim Moore [Atlassian] | 6 years ago
  1. 0

    Can this be made more robust, for example by retrying after a failure? https://bamboo.extranet.atlassian.com/browse/AGMP-FULLITEST-481/test/case/133765554 {noformat} net.sourceforge.jwebunit.exception.TestingEngineResponseException: The server return 400 HTTP code. at net.sourceforge.jwebunit.htmlunit.HtmlUnitTestingEngineImpl.submit(HtmlUnitTestingEngineImpl.java:1513) at net.sourceforge.jwebunit.junit.WebTester.submit(WebTester.java:2439) at com.atlassian.agmp.integration.jira.WebTestEngine.doGoogleOpenIdLogin(WebTestEngine.java:136) at com.atlassian.agmp.integration.jira.WebTestEngine.loginWith(WebTestEngine.java:611) at com.atlassian.agmp.integration.jira.WebTestEngine.loginWith(WebTestEngine.java:590) at it.com.atlassian.agmp.integration.jira.AGMPLogoutTest.assertOpenIdUserLoggedOutProperly(AGMPLogoutTest.java:35) at it.com.atlassian.agmp.integration.jira.AGMPLogoutTest.testOpenIdUserLogout(AGMPLogoutTest.java:29) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at junit.framework.TestCase.runTest(TestCase.java:168) at com.atlassian.agmp.integration.jira.AGMPTestBase.runTest(AGMPTestBase.java:52) at junit.framework.TestCase.runBare(TestCase.java:134) at net.sourceforge.jwebunit.junit.WebTestCase.runBare(WebTestCase.java:79) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at junit.framework.TestSuite.runTest(TestSuite.java:232) at junit.framework.TestSuite.run(TestSuite.java:227) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:91) at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127) at org.apache.maven.surefire.Surefire.run(Surefire.java:177) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009) Caused by: com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException: 400 Bad Request for https://www.google.com/a/atl-paid-test.com/o8/ud?st=EbsOt4JU9sDfjrm7wE_E&be=o8&auth=DQAAAKwAAAAD640VihwJV2Rftng0ArY_nZddG9aYgxoXSpt4W8dyUCYTTQLSa_w9Un89cADEMnW75RE-xY0AgPnIwbMrwMtz_331FvhE9qCbn2nOqbeCRbUoWqdIrVEB4siiP9jRO0nS9Lw6HbxcrtDxlLV3kUipR2vaVk201GA8pxqkKIbs14ps8onMEuqUotdyZPqbkJwbaHapBxQNDozsgeJC75rOoZWbstTj-4Qm6jIxf7p8ew at com.gargoylesoftware.htmlunit.WebClient.throwFailingHttpStatusCodeExceptionIfNecessary(WebClient.java:530) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:330) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:354) at com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:179) at com.gargoylesoftware.htmlunit.html.HtmlSubmitInput.doClickAction(HtmlSubmitInput.java:82) at com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1329) at com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1288) at com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1257) at net.sourceforge.jwebunit.htmlunit.HtmlUnitTestingEngineImpl.submit(HtmlUnitTestingEngineImpl.java:1495) ... 31 more {noformat}

    Atlassian JIRA | 6 years ago | Tim Moore [Atlassian]
    net.sourceforge.jwebunit.exception.TestingEngineResponseException: The server return 400 HTTP code.
  2. 0

    Can this be made more robust, for example by retrying after a failure? https://bamboo.extranet.atlassian.com/browse/AGMP-FULLITEST-481/test/case/133765554 {noformat} net.sourceforge.jwebunit.exception.TestingEngineResponseException: The server return 400 HTTP code. at net.sourceforge.jwebunit.htmlunit.HtmlUnitTestingEngineImpl.submit(HtmlUnitTestingEngineImpl.java:1513) at net.sourceforge.jwebunit.junit.WebTester.submit(WebTester.java:2439) at com.atlassian.agmp.integration.jira.WebTestEngine.doGoogleOpenIdLogin(WebTestEngine.java:136) at com.atlassian.agmp.integration.jira.WebTestEngine.loginWith(WebTestEngine.java:611) at com.atlassian.agmp.integration.jira.WebTestEngine.loginWith(WebTestEngine.java:590) at it.com.atlassian.agmp.integration.jira.AGMPLogoutTest.assertOpenIdUserLoggedOutProperly(AGMPLogoutTest.java:35) at it.com.atlassian.agmp.integration.jira.AGMPLogoutTest.testOpenIdUserLogout(AGMPLogoutTest.java:29) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at junit.framework.TestCase.runTest(TestCase.java:168) at com.atlassian.agmp.integration.jira.AGMPTestBase.runTest(AGMPTestBase.java:52) at junit.framework.TestCase.runBare(TestCase.java:134) at net.sourceforge.jwebunit.junit.WebTestCase.runBare(WebTestCase.java:79) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at junit.framework.TestSuite.runTest(TestSuite.java:232) at junit.framework.TestSuite.run(TestSuite.java:227) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:91) at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127) at org.apache.maven.surefire.Surefire.run(Surefire.java:177) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009) Caused by: com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException: 400 Bad Request for https://www.google.com/a/atl-paid-test.com/o8/ud?st=EbsOt4JU9sDfjrm7wE_E&be=o8&auth=DQAAAKwAAAAD640VihwJV2Rftng0ArY_nZddG9aYgxoXSpt4W8dyUCYTTQLSa_w9Un89cADEMnW75RE-xY0AgPnIwbMrwMtz_331FvhE9qCbn2nOqbeCRbUoWqdIrVEB4siiP9jRO0nS9Lw6HbxcrtDxlLV3kUipR2vaVk201GA8pxqkKIbs14ps8onMEuqUotdyZPqbkJwbaHapBxQNDozsgeJC75rOoZWbstTj-4Qm6jIxf7p8ew at com.gargoylesoftware.htmlunit.WebClient.throwFailingHttpStatusCodeExceptionIfNecessary(WebClient.java:530) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:330) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:354) at com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:179) at com.gargoylesoftware.htmlunit.html.HtmlSubmitInput.doClickAction(HtmlSubmitInput.java:82) at com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1329) at com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1288) at com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1257) at net.sourceforge.jwebunit.htmlunit.HtmlUnitTestingEngineImpl.submit(HtmlUnitTestingEngineImpl.java:1495) ... 31 more {noformat}

    Atlassian JIRA | 6 years ago | Tim Moore [Atlassian]
    net.sourceforge.jwebunit.exception.TestingEngineResponseException: The server return 400 HTTP code.
  3. 0

    HtmlUnit unable to sign in through OpenID

    Stack Overflow | 3 years ago | Frido1
    com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException: 400 Bad Request for https://accounts.google.com/o/openid2/auth?zt=ChQ0RExRRjBINXZvd0hfNE5UcjcyYhIfMHZ2TXYtTkpsc2tiTXFUbUhqeVRGR1BxejBfTmlBSQ%E2%88%99APsBz4gAAAAAUwv0r-GHODUgm8z7qyiJMR2n6vRkrQQZ&from_login=1&hl=en-US&as=5c29d1e6186004c9&auth=DQAAAIcAAABmwdTaHvzgHJvQiSH_InslYqP05WKBypJv8wOtm2SHdHFtu2zIgPBMmbExjpNNoZYg07HK-PD4jITMIvgyStIol1-lMt4RQEahUlGEhXTmwO8CftNVp82jLofISVva2cyqhnvX2AvMRp7Dztg8IdobV05DukBIX2vtLgx1WPR8Qie7ehjIKvcot-ugd945ZlA
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Click() Function Not Working HtmlUnit

    Stack Overflow | 3 years ago | jthort
    com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException: 404 Not Found for http://forums.bukkit.org/threads/plugin-idea-to-get-tons-of-downloads.271185/members/jthort.90885864/post
  6. 0

    GitHub comment 148#181784225

    GitHub | 10 months ago | yuriyz
    com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException: Too much redirect for https://ce-dev.gluu.org/oxauth-rp/home.seam?cid=119

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException

      400 Bad Request for https://www.google.com/a/atl-paid-test.com/o8/ud?st=EbsOt4JU9sDfjrm7wE_E&be=o8&auth=DQAAAKwAAAAD640VihwJV2Rftng0ArY_nZddG9aYgxoXSpt4W8dyUCYTTQLSa_w9Un89cADEMnW75RE-xY0AgPnIwbMrwMtz_331FvhE9qCbn2nOqbeCRbUoWqdIrVEB4siiP9jRO0nS9Lw6HbxcrtDxlLV3kUipR2vaVk201GA8pxqkKIbs14ps8onMEuqUotdyZPqbkJwbaHapBxQNDozsgeJC75rOoZWbstTj-4Qm6jIxf7p8ew

      at com.gargoylesoftware.htmlunit.WebClient.throwFailingHttpStatusCodeExceptionIfNecessary()
    2. HtmlUnit
      HtmlElement.click
      1. com.gargoylesoftware.htmlunit.WebClient.throwFailingHttpStatusCodeExceptionIfNecessary(WebClient.java:530)
      2. com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:330)
      3. com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:354)
      4. com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:179)
      5. com.gargoylesoftware.htmlunit.html.HtmlSubmitInput.doClickAction(HtmlSubmitInput.java:82)
      6. com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1329)
      7. com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1288)
      8. com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1257)
      8 frames
    3. HtmlUnit Plugin
      HtmlUnitTestingEngineImpl.submit
      1. net.sourceforge.jwebunit.htmlunit.HtmlUnitTestingEngineImpl.submit(HtmlUnitTestingEngineImpl.java:1495)
      1 frame
    4. Core - API
      WebTester.submit
      1. net.sourceforge.jwebunit.junit.WebTester.submit(WebTester.java:2439)
      1 frame
    5. com.atlassian.agmp
      WebTestEngine.loginWith
      1. com.atlassian.agmp.integration.jira.WebTestEngine.doGoogleOpenIdLogin(WebTestEngine.java:136)
      2. com.atlassian.agmp.integration.jira.WebTestEngine.loginWith(WebTestEngine.java:611)
      3. com.atlassian.agmp.integration.jira.WebTestEngine.loginWith(WebTestEngine.java:590)
      3 frames
    6. it.com.atlassian
      AGMPLogoutTest.testOpenIdUserLogout
      1. it.com.atlassian.agmp.integration.jira.AGMPLogoutTest.assertOpenIdUserLoggedOutProperly(AGMPLogoutTest.java:35)
      2. it.com.atlassian.agmp.integration.jira.AGMPLogoutTest.testOpenIdUserLogout(AGMPLogoutTest.java:29)
      2 frames
    7. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    8. JUnit
      TestCase.runTest
      1. junit.framework.TestCase.runTest(TestCase.java:168)
      1 frame
    9. com.atlassian.agmp
      AGMPTestBase.runTest
      1. com.atlassian.agmp.integration.jira.AGMPTestBase.runTest(AGMPTestBase.java:52)
      1 frame
    10. JUnit
      TestCase.runBare
      1. junit.framework.TestCase.runBare(TestCase.java:134)
      1 frame
    11. Core - API
      WebTestCase.runBare
      1. net.sourceforge.jwebunit.junit.WebTestCase.runBare(WebTestCase.java:79)
      1 frame
    12. JUnit
      JUnit38ClassRunner.run
      1. junit.framework.TestResult$1.protect(TestResult.java:110)
      2. junit.framework.TestResult.runProtected(TestResult.java:128)
      3. junit.framework.TestResult.run(TestResult.java:113)
      4. junit.framework.TestCase.run(TestCase.java:124)
      5. junit.framework.TestSuite.runTest(TestSuite.java:232)
      6. junit.framework.TestSuite.run(TestSuite.java:227)
      7. org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:91)
      7 frames
    13. JUnit4 Provider
      JUnit4TestSet.execute
      1. org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
      1 frame
    14. SureFire
      Surefire.run
      1. org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
      2. org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
      3. org.apache.maven.surefire.Surefire.run(Surefire.java:177)
      3 frames
    15. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    16. SureFire
      SurefireBooter.main
      1. org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
      2. org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
      2 frames