java.lang.AssertionError

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

Check your pattern declaration or check your assert declaration.


rafael

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • 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}
    via by Peter Lynch,
  • Test failing in kyro-serializer
    via GitHub by mocleiri
    ,
  • Failed: YARN-249 PreCommit Build #207
    via by Apache Jenkins Server,
  • Failed: YARN-249 PreCommit Build #208
    via by Apache Jenkins Server,
  • GitHub comment 344#224106221
    via GitHub by xiahome
    ,
  • Problem shadowing non-static inner classes
    via by Michael Portuesi,
    • 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)

    Users with the same issue

    odd
    1 times, last one,
    Axelo
    2 times, last one,
    jf-ast
    1 times, last one,
    rocday
    1 times, last one,
    andyglick
    2 times, last one,
    94 more bugmates