java.lang.RuntimeException: java.security.spec.InvalidKeySpecException: java.io.EOFException: EOF encountered in middle of object

Atlassian JIRA | Michael Tokar | 8 years ago
  1. 0

    [JRA-16871] Attempting to trust https://confluence.atlassian.com results in 500 page - Atlassian JIRA

    atlassian.com | 1 year ago
    java.lang.RuntimeException: java.security.spec.InvalidKeySpecException: java.io.EOFException: EOF encountered in middle of object
  2. 0

    While investigating a support case, where the customer had difficulty establishing a trusted relationship between JIRA and Confluence listening on HTTPS, I attempted to add a relationship between my instance of 3.13.2 and https://confluence.atlassian.com/ . The UI threw back a 500 page with this stacktrace: {noformat}java.lang.RuntimeException: java.security.spec.InvalidKeySpecException: java.io.EOFException: EOF encountered in middle of object at com.atlassian.security.auth.trustedapps.ListApplicationRetriever.getApplicationProtocolV0(ListApplicationRetriever.java:90) at com.atlassian.security.auth.trustedapps.ListApplicationRetriever.getApplicationProtocolV1(ListApplicationRetriever.java:49) at com.atlassian.security.auth.trustedapps.ListApplicationRetriever.getApplication(ListApplicationRetriever.java:43) at com.atlassian.security.auth.trustedapps.ReaderApplicationRetriever.getApplication(ReaderApplicationRetriever.java:27) at com.atlassian.security.auth.trustedapps.URLApplicationRetriever.getApplication(URLApplicationRetriever.java:40) at com.atlassian.security.auth.trustedapps.BaseEncryptionProvider.getApplicationCertificate(BaseEncryptionProvider.java:12) at com.atlassian.jira.web.action.admin.trustedapps.ViewTrustedApplications.requestTrustedApplication(ViewTrustedApplications.java:133) at com.atlassian.jira.web.action.admin.trustedapps.ViewTrustedApplications.doRequest(ViewTrustedApplications.java:77) {noformat} When you attempt to view the certificate manually via https://confluence.atlassian.com/admin/appTrustCertificate , you can see that CAC redirects you to the non-HTTP version of the file (ie http://confluence.atlassian.com/admin/appTrustCertificate). It appears that CAC is sending a "page has been moved" response back to JIRA, which is mistakenly consumed as the actual trusted app certificate.

    Atlassian JIRA | 8 years ago | Michael Tokar
    java.lang.RuntimeException: java.security.spec.InvalidKeySpecException: java.io.EOFException: EOF encountered in middle of object
  3. 0

    While investigating a support case, where the customer had difficulty establishing a trusted relationship between JIRA and Confluence listening on HTTPS, I attempted to add a relationship between my instance of 3.13.2 and https://confluence.atlassian.com/ . The UI threw back a 500 page with this stacktrace: {noformat}java.lang.RuntimeException: java.security.spec.InvalidKeySpecException: java.io.EOFException: EOF encountered in middle of object at com.atlassian.security.auth.trustedapps.ListApplicationRetriever.getApplicationProtocolV0(ListApplicationRetriever.java:90) at com.atlassian.security.auth.trustedapps.ListApplicationRetriever.getApplicationProtocolV1(ListApplicationRetriever.java:49) at com.atlassian.security.auth.trustedapps.ListApplicationRetriever.getApplication(ListApplicationRetriever.java:43) at com.atlassian.security.auth.trustedapps.ReaderApplicationRetriever.getApplication(ReaderApplicationRetriever.java:27) at com.atlassian.security.auth.trustedapps.URLApplicationRetriever.getApplication(URLApplicationRetriever.java:40) at com.atlassian.security.auth.trustedapps.BaseEncryptionProvider.getApplicationCertificate(BaseEncryptionProvider.java:12) at com.atlassian.jira.web.action.admin.trustedapps.ViewTrustedApplications.requestTrustedApplication(ViewTrustedApplications.java:133) at com.atlassian.jira.web.action.admin.trustedapps.ViewTrustedApplications.doRequest(ViewTrustedApplications.java:77) {noformat} When you attempt to view the certificate manually via https://confluence.atlassian.com/admin/appTrustCertificate , you can see that CAC redirects you to the non-HTTP version of the file (ie http://confluence.atlassian.com/admin/appTrustCertificate). It appears that CAC is sending a "page has been moved" response back to JIRA, which is mistakenly consumed as the actual trusted app certificate.

    Ecosystem JIRA | 2 years ago | Michael Tokar
    java.lang.RuntimeException: java.security.spec.InvalidKeySpecException: java.io.EOFException: EOF encountered in middle of object
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    While investigating a support case, where the customer had difficulty establishing a trusted relationship between JIRA and Confluence listening on HTTPS, I attempted to add a relationship between my instance of 3.13.2 and https://confluence.atlassian.com/ . The UI threw back a 500 page with this stacktrace: {noformat}java.lang.RuntimeException: java.security.spec.InvalidKeySpecException: java.io.EOFException: EOF encountered in middle of object at com.atlassian.security.auth.trustedapps.ListApplicationRetriever.getApplicationProtocolV0(ListApplicationRetriever.java:90) at com.atlassian.security.auth.trustedapps.ListApplicationRetriever.getApplicationProtocolV1(ListApplicationRetriever.java:49) at com.atlassian.security.auth.trustedapps.ListApplicationRetriever.getApplication(ListApplicationRetriever.java:43) at com.atlassian.security.auth.trustedapps.ReaderApplicationRetriever.getApplication(ReaderApplicationRetriever.java:27) at com.atlassian.security.auth.trustedapps.URLApplicationRetriever.getApplication(URLApplicationRetriever.java:40) at com.atlassian.security.auth.trustedapps.BaseEncryptionProvider.getApplicationCertificate(BaseEncryptionProvider.java:12) at com.atlassian.jira.web.action.admin.trustedapps.ViewTrustedApplications.requestTrustedApplication(ViewTrustedApplications.java:133) at com.atlassian.jira.web.action.admin.trustedapps.ViewTrustedApplications.doRequest(ViewTrustedApplications.java:77) {noformat} When you attempt to view the certificate manually via https://confluence.atlassian.com/admin/appTrustCertificate , you can see that CAC redirects you to the non-HTTP version of the file (ie http://confluence.atlassian.com/admin/appTrustCertificate). It appears that CAC is sending a "page has been moved" response back to JIRA, which is mistakenly consumed as the actual trusted app certificate.

    Atlassian JIRA | 8 years ago | Michael Tokar
    java.lang.RuntimeException: java.security.spec.InvalidKeySpecException: java.io.EOFException: EOF encountered in middle of object
  6. 0

    Problem with running the sample code first time

    Google Groups | 6 years ago | Riasat Abir
    java.lang.RuntimeException: WARNING: Blocked recursive attempt to close part org.eclipse.jdt.ui.CompilationUnitEditor while still in the middle of activating it

    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.RuntimeException

      java.security.spec.InvalidKeySpecException: java.io.EOFException: EOF encountered in middle of object

      at com.atlassian.security.auth.trustedapps.ListApplicationRetriever.getApplicationProtocolV0()
    2. com.atlassian.security
      BaseEncryptionProvider.getApplicationCertificate
      1. com.atlassian.security.auth.trustedapps.ListApplicationRetriever.getApplicationProtocolV0(ListApplicationRetriever.java:90)
      2. com.atlassian.security.auth.trustedapps.ListApplicationRetriever.getApplicationProtocolV1(ListApplicationRetriever.java:49)
      3. com.atlassian.security.auth.trustedapps.ListApplicationRetriever.getApplication(ListApplicationRetriever.java:43)
      4. com.atlassian.security.auth.trustedapps.ReaderApplicationRetriever.getApplication(ReaderApplicationRetriever.java:27)
      5. com.atlassian.security.auth.trustedapps.URLApplicationRetriever.getApplication(URLApplicationRetriever.java:40)
      6. com.atlassian.security.auth.trustedapps.BaseEncryptionProvider.getApplicationCertificate(BaseEncryptionProvider.java:12)
      6 frames
    3. com.atlassian.jira
      ViewTrustedApplications.doRequest
      1. com.atlassian.jira.web.action.admin.trustedapps.ViewTrustedApplications.requestTrustedApplication(ViewTrustedApplications.java:133)
      2. com.atlassian.jira.web.action.admin.trustedapps.ViewTrustedApplications.doRequest(ViewTrustedApplications.java:77)
      2 frames