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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Sonatype JIRA by Peter Lynch, 1 year ago
Expected: (response status to indicate success status 200) but: response status to indicate success status 200 Bad Request (400) - Bad Requestnull
via Sonatype JIRA by Benjamin Hanzelmann, 1 year ago
Expected: (response status to indicate success status 200) but: response status to indicate success status 200 Bad Request (400) - Bad Requestnull
via GitHub by JordanMartinez
, 10 months ago
Expected: "keyReleased" but: was "keyPressed"
via GitHub by JordanMartinez
, 2 months ago
Expected: is <javafx.stage.Stage@29e55e60> but: was <javafx.stage.Stage@6fe8dcec>
via GitHub by drewr
, 1 year ago
Expected: searchHit id should be "ultimate1" but: was "24" at __randomizedtesting.SeedInfo.seed([C3DC091D23C57091:CBFC75455976FFFC]:0)
via Google Groups by hudson, 2 years ago
Expected: "XHTML Test Page" got: ""
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)

Users with the same issue

8 times, 6 months ago
2 times, 1 year ago
8 times, 10 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
2 times, 4 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.