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 | Benjamin Hanzelmann | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 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
  2. 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
  3. 0

    Build not working in Windows

    GitHub | 2 years ago | hypery2k
    java.lang.AssertionError: Expected: iterable containing ["some-component/specs/image.png"] but: item 0: was "some-component/specs\image.png"
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Build fails during :sagan-site:integTest

    GitHub | 3 years ago | as1s
    java.lang.AssertionError: Expected: "Spring Tool Suiteâ„¢ Downloads" but: was "Spring Tool Suite™ Downloads"
  6. 0

    RiverMongoInitialTimestampTest fails in isolation

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

  1. olle.hallin 2 times, last 3 days ago
  2. marcbouvierdav 1 times, last 2 weeks ago
  3. rsprangemeijer 1 times, last 2 weeks ago
  4. Dunmer 4 times, last 3 weeks ago
  5. aldrinleal 2 times, last 2 months ago
8 more registered users
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:568)
    2. org.sonatype.nexus.integrationtests.NexusRestClient.sendMessage(NexusRestClient.java:543)
    3. org.sonatype.nexus.integrationtests.NexusRestClient.doPutForText(NexusRestClient.java:357)
    4. org.sonatype.nexus.integrationtests.RequestFacade.doPutForText(RequestFacade.java:208)
    5. org.sonatype.nexus.test.utils.ErrorReportUtil.matchProblemResponse(ErrorReportUtil.java:77)
    6. org.sonatype.nexus.test.utils.ErrorReportUtil.generateProblemReport(ErrorReportUtil.java:56)
    7. org.sonatype.nexus.test.utils.ErrorReportUtil.generateProblemReport(ErrorReportUtil.java:47)
    8. org.sonatype.nexus.integrationtests.nexus3082.Nexus3082GenerateProblemReportIT.generateReport(Nexus3082GenerateProblemReportIT.java:28)
    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