java.io.IOException: Could not scrape issue key from comment page for id 375250

Sonatype JIRA | Peter Lynch | 4 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  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 | 4 years ago | Peter Lynch
    java.io.IOException: Could not scrape issue key from comment page for id 375250

    Root Cause Analysis

    1. java.io.IOException

      Could not scrape issue key from comment page for id 375250, no match.

      at org.sonatype.jira.internal.AbstractAttachmentHandler.resolveIssueKey()
    2. org.sonatype.jira
      AttachmentTest.testScrapeIssueKeyJIRARest
      1. org.sonatype.jira.internal.AbstractAttachmentHandler.resolveIssueKey(AbstractAttachmentHandler.java:112)
      2. org.sonatype.jira.internal.AttachmentTest.testScrapeIssueKeyJIRARest(AttachmentTest.java:195)
      2 frames
    3. 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
    4. 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
    5. 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
    6. 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
    7. SureFire
      ProviderFactory$ClassLoaderProxy.invoke
      1. org.apache.maven.surefire.booter.ProviderFactory$ClassLoaderProxy.invoke(ProviderFactory.java:103)
      1 frame
    8. Unknown
      $Proxy0.invoke
      1. $Proxy0.invoke(Unknown Source)
      1 frame
    9. 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