java.lang.AssertionError: Expected: (response status to indicate success status 200) but: response status to indicate success status 200 Bad Request (400) - Bad Requestnull

Sonatype JIRA | Peter Lynch | 5 years ago
  1. 0

    https://builds.sonatype.org/view/nexus/job/nexus-oss-its/129/jdk=java-6x,label=linux/testReport/junit/org.sonatype.nexus.integrationtests.nexus3082/Nexus3082GenerateProblemReportIT/generateReport/ {noformat} Error Message Expected: (response status to indicate success status 200) but: response status to indicate success status 200 Bad Request (400) - Bad Requestnull Stacktrace java.lang.AssertionError: Expected: (response status to indicate success status 200) but: response status to indicate success status 200 Bad Request (400) - Bad Requestnull at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20) at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:8) at org.sonatype.nexus.integrationtests.NexusRestClient.sendMessage(NexusRestClient.java:574) at org.sonatype.nexus.integrationtests.NexusRestClient.sendMessage(NexusRestClient.java:549) at org.sonatype.nexus.integrationtests.NexusRestClient.doPutForText(NexusRestClient.java:363) at org.sonatype.nexus.integrationtests.RequestFacade.doPutForText(RequestFacade.java:214) at org.sonatype.nexus.test.utils.ErrorReportUtil.matchProblemResponse(ErrorReportUtil.java:83) at org.sonatype.nexus.test.utils.ErrorReportUtil.generateProblemReport(ErrorReportUtil.java:62) at org.sonatype.nexus.test.utils.ErrorReportUtil.generateProblemReport(ErrorReportUtil.java:53) at org.sonatype.nexus.integrationtests.nexus3082.Nexus3082GenerateProblemReportIT.generateReport(Nexus3082GenerateProblemReportIT.java:34) at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:70) at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMulti(TestNGDirectoryTestSuite.java:158) at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:98) at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:111) at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164) at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110) at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175) at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68) ... Removed 26 stack frames {noformat}

    Sonatype JIRA | 5 years ago | Peter Lynch
    java.lang.AssertionError: Expected: (response status to indicate success status 200) but: response status to indicate success status 200 Bad Request (400) - Bad Requestnull
  2. 0

    2.0.x branch! Regression org.sonatype.nexus.integrationtests.nexus3082.Nexus3082GenerateProblemReportIT.generateReport https://builds.sonatype.org/job/nexus-oss-its-2.0.x/20/jdk=java-6x,label=win/testReport/junit/org.sonatype.nexus.integrationtests.nexus3082/Nexus3082GenerateProblemReportIT/generateReport/ {code} Error Message Expected: (response status to indicate success status 200) but: response status to indicate success status 200 Bad Request (400) - Bad Requestnull Stacktrace java.lang.AssertionError: Expected: (response status to indicate success status 200) but: response status to indicate success status 200 Bad Request (400) - Bad Requestnull at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20) at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:8) at org.sonatype.nexus.integrationtests.NexusRestClient.sendMessage(NexusRestClient.java:568) at org.sonatype.nexus.integrationtests.NexusRestClient.sendMessage(NexusRestClient.java:543) at org.sonatype.nexus.integrationtests.NexusRestClient.doPutForText(NexusRestClient.java:357) at org.sonatype.nexus.integrationtests.RequestFacade.doPutForText(RequestFacade.java:208) at org.sonatype.nexus.test.utils.ErrorReportUtil.matchProblemResponse(ErrorReportUtil.java:77) at org.sonatype.nexus.test.utils.ErrorReportUtil.generateProblemReport(ErrorReportUtil.java:56) at org.sonatype.nexus.test.utils.ErrorReportUtil.generateProblemReport(ErrorReportUtil.java:47) at org.sonatype.nexus.integrationtests.nexus3082.Nexus3082GenerateProblemReportIT.generateReport(Nexus3082GenerateProblemReportIT.java:28) at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:70) at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMulti(TestNGDirectoryTestSuite.java:158) at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:98) at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:111) at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164) at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110) at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175) at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68) ... Removed 26 stack frames {code}

    Sonatype JIRA | 5 years ago | Benjamin Hanzelmann
    java.lang.AssertionError: Expected: (response status to indicate success status 200) but: response status to indicate success status 200 Bad Request (400) - Bad Requestnull
  3. 0

    Build fails during :sagan-site:integTest

    GitHub | 2 years ago | as1s
    java.lang.AssertionError: Expected: "Spring Tool Suiteâ„¢ Downloads" but: was "Spring Tool Suite™ Downloads"
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    RiverMongoInitialTimestampTest fails in isolation

    GitHub | 3 years ago | kdkeck
    java.lang.AssertionError: Expected: <0L> but: was <1L>
  6. 0

    installing allure jenkins plugin (v2.1) fails on latest jenkins build 1.576

    GitHub | 2 years ago | psura
    java.lang.AssertionError: Expected: is <2> but: was <1>

  1. davidvanlaatum 7 times, last 3 weeks ago
  2. cesarnog 1 times, last 2 months ago
  3. tfr 1 times, last 3 months ago
  4. qoomon 1 times, last 4 months ago
  5. andyglick 5 times, last 8 months ago
3 unregistered visitors
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. java.lang.AssertionError

    Expected: (response status to indicate success status 200) but: response status to indicate success status 200 Bad Request (400) - Bad Requestnull

    at org.hamcrest.MatcherAssert.assertThat()
  2. Hamcrest
    MatcherAssert.assertThat
    1. org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
    2. org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:8)
    2 frames
  3. org.sonatype.nexus
    Nexus3082GenerateProblemReportIT.generateReport
    1. org.sonatype.nexus.integrationtests.NexusRestClient.sendMessage(NexusRestClient.java:574)
    2. org.sonatype.nexus.integrationtests.NexusRestClient.sendMessage(NexusRestClient.java:549)
    3. org.sonatype.nexus.integrationtests.NexusRestClient.doPutForText(NexusRestClient.java:363)
    4. org.sonatype.nexus.integrationtests.RequestFacade.doPutForText(RequestFacade.java:214)
    5. org.sonatype.nexus.test.utils.ErrorReportUtil.matchProblemResponse(ErrorReportUtil.java:83)
    6. org.sonatype.nexus.test.utils.ErrorReportUtil.generateProblemReport(ErrorReportUtil.java:62)
    7. org.sonatype.nexus.test.utils.ErrorReportUtil.generateProblemReport(ErrorReportUtil.java:53)
    8. org.sonatype.nexus.integrationtests.nexus3082.Nexus3082GenerateProblemReportIT.generateReport(Nexus3082GenerateProblemReportIT.java:34)
    8 frames
  4. org.apache.maven
    TestNGProvider.invoke
    1. org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:70)
    2. org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMulti(TestNGDirectoryTestSuite.java:158)
    3. org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:98)
    4. org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:111)
    4 frames
  5. SureFire
    ForkedBooter.main
    1. org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
    2. org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
    3. org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
    4. org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)
    5. org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)
    5 frames