java.lang.AssertionError: [{"self":"https://issues.sonatype.org/rest/api/2/attachment/55186","id":"55186","filename":"1337561606381.png","author":{"self":"https://issues.sonatype.org/rest/api/2/user?username=sonatype_problem_reporting","name":"sonatype_problem_reporting","emailAddress":"problem_reporting@sonatype.com","avatarUrls":{"16x16":"https://issues.sonatype.org/secure/useravatar?size=small&avatarId=10152","48x48":"https://issues.sonatype.org/secure/useravatar?avatarId=10152"},"displayName":"Sonatype Problem Reporting","active":true},"created":"2012-05-20T19:53:26.781-0500","size":178313,"mimeType":"image/png","content":"https://issues.sonatype.org/secure/attachment/55186/1337561606381.png","thumbnail":"https://issues.sonatype.org/secure/thumbnail/55186/_thumb_55186.png"}] expected:<204> but was:<200>

Sonatype JIRA | Peter Lynch | 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

    AttachmentTest fails in code paths triggered by older Nexus versions. Seems mediator has trouble scraping the issueKey and IssueID from Jira. https://builds.sonatype.org/view/nexus-libs/job/sisu-jira-mediator/40/jdk=java-6x,label=linux/testReport/junit/org.sonatype.jira.internal/AttachmentTest/ {noformat} org.sonatype.jira.internal.AttachmentTest.testAttachJIRARest (from AttachmentTest) Failing for the past 18 builds (Since #23 ) Took 0.59 sec. add description Error Message [{"self":"https://issues.sonatype.org/rest/api/2/attachment/55186","id":"55186","filename":"1337561606381.png","author":{"self":"https://issues.sonatype.org/rest/api/2/user?username=sonatype_problem_reporting","name":"sonatype_problem_reporting","emailAddress":"problem_reporting@sonatype.com","avatarUrls":{"16x16":"https://issues.sonatype.org/secure/useravatar?size=small&avatarId=10152","48x48":"https://issues.sonatype.org/secure/useravatar?avatarId=10152"},"displayName":"Sonatype Problem Reporting","active":true},"created":"2012-05-20T19:53:26.781-0500","size":178313,"mimeType":"image/png","content":"https://issues.sonatype.org/secure/attachment/55186/1337561606381.png","thumbnail":"https://issues.sonatype.org/secure/thumbnail/55186/_thumb_55186.png"}] expected:<204> but was:<200> Stacktrace java.lang.AssertionError: [{"self":"https://issues.sonatype.org/rest/api/2/attachment/55186","id":"55186","filename":"1337561606381.png","author":{"self":"https://issues.sonatype.org/rest/api/2/user?username=sonatype_problem_reporting","name":"sonatype_problem_reporting","emailAddress":"problem_reporting@sonatype.com","avatarUrls":{"16x16":"https://issues.sonatype.org/secure/useravatar?size=small&avatarId=10152","48x48":"https://issues.sonatype.org/secure/useravatar?avatarId=10152"},"displayName":"Sonatype Problem Reporting","active":true},"created":"2012-05-20T19:53:26.781-0500","size":178313,"mimeType":"image/png","content":"https://issues.sonatype.org/secure/attachment/55186/1337561606381.png","thumbnail":"https://issues.sonatype.org/secure/thumbnail/55186/_thumb_55186.png"}] expected:<204> but was:<200> at org.junit.Assert.fail(Assert.java:91) at org.junit.Assert.failNotEquals(Assert.java:645) at org.junit.Assert.assertEquals(Assert.java:126) at org.junit.Assert.assertEquals(Assert.java:470) at org.sonatype.jira.internal.AttachmentTest.testAttachJIRARest(AttachmentTest.java:175) 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.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) at org.junit.runners.ParentRunner.run(ParentRunner.java:236) at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:35) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:115) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:97) 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.ProviderFactory$ClassLoaderProxy.invoke(ProviderFactory.java:103) at $Proxy0.invoke(Unknown Source) at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:150) at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:91) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:69) {noformat} {noformat} org.sonatype.jira.internal.AttachmentTest.testScrapeIssueKeyJIRARest (from AttachmentTest) Failing for the past 18 builds (Since #23 ) Took 0.23 sec. add description Error Message Could not scrape issue key from comment page for id 375250 Stacktrace java.io.IOException: Could not scrape issue key from comment page for id 375250 at org.sonatype.jira.internal.AbstractAttachmentHandler.resolveIssueKey(AbstractAttachmentHandler.java:116) at org.sonatype.jira.internal.AttachmentTest.testScrapeIssueKeyJIRARest(AttachmentTest.java:195) 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.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) at org.junit.runners.ParentRunner.run(ParentRunner.java:236) at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:35) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:115) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:97) 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.ProviderFactory$ClassLoaderProxy.invoke(ProviderFactory.java:103) at $Proxy0.invoke(Unknown Source) at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:150) at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:91) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:69) Caused by: java.io.IOException: Could not scrape issue key from comment page for id 375250, no match. at org.sonatype.jira.internal.AbstractAttachmentHandler.resolveIssueKey(AbstractAttachmentHandler.java:112) ... 29 more {noformat}

    Sonatype JIRA | 5 years ago | Peter Lynch
    java.lang.AssertionError: [{"self":"https://issues.sonatype.org/rest/api/2/attachment/55186","id":"55186","filename":"1337561606381.png","author":{"self":"https://issues.sonatype.org/rest/api/2/user?username=sonatype_problem_reporting","name":"sonatype_problem_reporting","emailAddress":"problem_reporting@sonatype.com","avatarUrls":{"16x16":"https://issues.sonatype.org/secure/useravatar?size=small&avatarId=10152","48x48":"https://issues.sonatype.org/secure/useravatar?avatarId=10152"},"displayName":"Sonatype Problem Reporting","active":true},"created":"2012-05-20T19:53:26.781-0500","size":178313,"mimeType":"image/png","content":"https://issues.sonatype.org/secure/attachment/55186/1337561606381.png","thumbnail":"https://issues.sonatype.org/secure/thumbnail/55186/_thumb_55186.png"}] expected:<204> but was:<200>
  2. 0

    Test failing in kyro-serializer

    GitHub | 6 years ago | mocleiri
    java.lang.AssertionError: The produced data should not be null! expected:<437> but was:<432>
  3. 0

    [Camel-users] Build break in camel-jetty - Grokbase

    grokbase.com | 1 year ago
    java.lang.AssertionError: Get a wrong response status expected:<200> but was:<500>
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [HDFS-issues] [jira] [Created] (HDFS-2434) TestNameNodeMetrics.testCorruptBlock fails intermittently - Grokbase

    grokbase.com | 1 year ago
    java.lang.AssertionError: Bad value for metric CorruptBlocks expected:<1> but was:<0>
  6. 0

    Failed: YARN-249 PreCommit Build #207

    hadoop-yarn-dev | 4 years ago | Apache Jenkins Server
    java.lang.AssertionError: incorrect number of elements expected:<20> but was:<21>

  1. odd 1 times, last 1 day ago
  2. jf-ast 2 times, last 3 days ago
  3. rsprangemeijer 1 times, last 3 weeks ago
  4. aldrinleal 1 times, last 3 weeks ago
  5. treefolk 3 times, last 1 month ago
8 more registered users
33 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

    [{"self":"https://issues.sonatype.org/rest/api/2/attachment/55186","id":"55186","filename":"1337561606381.png","author":{"self":"https://issues.sonatype.org/rest/api/2/user?username=sonatype_problem_reporting","name":"sonatype_problem_reporting","emailAddress":"problem_reporting@sonatype.com","avatarUrls":{"16x16":"https://issues.sonatype.org/secure/useravatar?size=small&avatarId=10152","48x48":"https://issues.sonatype.org/secure/useravatar?avatarId=10152"},"displayName":"Sonatype Problem Reporting","active":true},"created":"2012-05-20T19:53:26.781-0500","size":178313,"mimeType":"image/png","content":"https://issues.sonatype.org/secure/attachment/55186/1337561606381.png","thumbnail":"https://issues.sonatype.org/secure/thumbnail/55186/_thumb_55186.png"}] expected:<204> but was:<200>

    at org.junit.Assert.fail()
  2. JUnit
    Assert.assertEquals
    1. org.junit.Assert.fail(Assert.java:91)
    2. org.junit.Assert.failNotEquals(Assert.java:645)
    3. org.junit.Assert.assertEquals(Assert.java:126)
    4. org.junit.Assert.assertEquals(Assert.java:470)
    4 frames
  3. org.sonatype.jira
    AttachmentTest.testAttachJIRARest
    1. org.sonatype.jira.internal.AttachmentTest.testAttachJIRARest(AttachmentTest.java:175)
    1 frame
  4. 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
  5. JUnit
    ParentRunner.run
    1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
    2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
    4. org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
    5. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
    6. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
    7. org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
    8. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
    9. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
    10. org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
    11. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
    12. org.junit.runners.ParentRunner.run(ParentRunner.java:236)
    12 frames
  6. JUnit4 Provider
    JUnit4Provider.invoke
    1. org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:35)
    2. org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:115)
    3. org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:97)
    3 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. SureFire
    ProviderFactory$ClassLoaderProxy.invoke
    1. org.apache.maven.surefire.booter.ProviderFactory$ClassLoaderProxy.invoke(ProviderFactory.java:103)
    1 frame
  9. Unknown
    $Proxy0.invoke
    1. $Proxy0.invoke(Unknown Source)
    1 frame
  10. SureFire
    ForkedBooter.main
    1. org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:150)
    2. org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:91)
    3. org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:69)
    3 frames