Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-8280

Bamboo throws NPE when JIRA tries to make a trusted app call

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Highest
    • 3.1 M2, 3.1
    • 3.1 M1
    • None
    • None

    Description

      This started happening when a gadget on JDOG tries to make a call to JBAC after JBAC was upgraded to 3.1-m1 last week.

      Not sure what's going on, but I'm pretty sure Bamboo shouldn't throw a NPE.

      Raised it as a blocker 'cause we need these gadgets to work to figure out who broke the build!

      throw 1; < don't be evil' >{"https://jira.bamboo.atlassian.com/rest/api/1.0/currentUser?cacheBuster=1300657914211":{"headers":{},"body":"<html>\r\n<head>\r\n    <title>Internal server error<\/title>\r\n    <meta name=\"decorator\" content=\"install\" />    \r\n<\/head>\r\n\r\n<body>\r\n    <h1>Internal server error<\/h1>\r\n\r\n\r\n    <h4>Go to...<\/h4>\r\n    <ul>\r\n        <li><a href=\"/\">Site Homepage<\/a><\/li>\r\n    <\/ul>\r\n    A system error has occurred - our apologies!\r\n    <p>\r\n        Please create a problem report on our <b>support system<\/b> at <a href=\"https://support.atlassian.com/secure/CreateIssue.jspa?pid=10060&issuetype=1\">http://support.atlassian.com<\/a> with the following information:\r\n        <ol class=\"standard\">\r\n        <li>a description of your problem and what you were doing at the time it occurred\r\n        <li>cut &amp; paste the error and system information found below\r\n        <li>attach the <strong>atlassian-bamboo.log<\/strong> log file found in your application home.\r\n        <\/ol>\r\n        We will respond as promptly as possible.<br/>Thank you!\r\n    <\/p>\r\n\r\n    <p>\r\n        <b>Version:<\/b> 3.1-m1<br>\r\n        <b>Build:<\/b> 2403<br>\r\n        <b>Build Date:<\/b> 10 Mar 2011\r\n    <\/p>\r\n\r\n     <h4>Request Information:<\/h4>\r\n     <ul class=\"standard\">\r\n        <li>Request URL: https://jira.bamboo.atlassian.com/500.action<\/li>\r\n        <li>Scheme: https<\/li>\r\n        <li>Server: jira.bamboo.atlassian.com<\/li>\r\n        <li>Port: 443<\/li>\r\n        <li>URI: /500.action<\/li>\r\n        <li>Context Path: <\/li>\r\n        <li>Servlet Path: /500.action<\/li>\r\n        <li>Path Info: <\/li>\r\n        <li>Query String: cacheBuster=1300657914211<\/li>\r\n    <\/ul>\r\n\r\n\r\n    <p>\r\n        <b>Stack Trace:<\/b>\r\n<pre>\r\njava.lang.NullPointerException\n\tat com.atlassian.bamboo.security.trustedapplications.BambooTrustedApplicationUtils.convert(BambooTrustedApplicationUtils.java:25)\n\tat com.atlassian.bamboo.security.trustedapplications.BambooTrustedApplicationsManager.getTrustedApplication(BambooTrustedApplicationsManager.java:38)\n\tat com.atlassian.security.auth.trustedapps.filter.TrustedApplicationFilterAuthenticator.authenticate(TrustedApplicationFilterAuthenticator.java:86)\n\tat com.atlassian.security.auth.trustedapps.filter.TrustedApplicationsFilter.authenticate(TrustedApplicationsFilter.java:113)\n\tat com.atlassian.security.auth.trustedapps.filter.TrustedApplicationsFilter.doFilter(TrustedApplicationsFilter.java:95)\n\tat com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74)\n\tat com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42)\n\tat com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66)\n\tat com.atlassian.plugins.rest.module.servlet.RestSeraphFilter.doFilter(RestSeraphFilter.java:40)\n\tat com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74)\n\tat com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42)\n\tat com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77)\n\tat com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63)\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)\n\tat org.springframework.orm.hibernate.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:170)\n\tat com.atlassian.bamboo.persistence.BambooSessionInViewFilter.doFilterInternal(BambooSessionInViewFilter.java:31)\n\tat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)\n\tat com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46)\n\tat com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77)\n\tat com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63)\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)\n\tat org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)\n\tat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)\n\tat org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)\n\tat org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)\n\tat org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)\n\tat org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)\n\tat org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)\n\tat org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)\n\tat org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200)\n\tat org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)\n\tat org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773)\n\tat org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703)\n\tat org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:895)\n\tat org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)\n\tat java.lang.Thread.run(Thread.java:619)\n\r\n<\/pre>\r\n    <\/p>\r\n<\/body>\r\n<\/html>","rc":500}}
      

      Attachments

        Issue Links

          Activity

            People

              bwoskow Ben Woskow (Inactive)
              andreask@atlassian.com Andreas Knecht (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: