njava.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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! {noformat} 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}} {noformat}
    via by Andreas Knecht,
  • 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! {noformat} 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}} {noformat}
    via by Andreas Knecht,
    • njava.lang.NullPointerException at com.atlassian.bamboo.security.trustedapplications.BambooTrustedApplicationUtils.convert(BambooTrustedApplicationUtils.java:25) at com.atlassian.bamboo.security.trustedapplications.BambooTrustedApplicationsManager.getTrustedApplication(BambooTrustedApplicationsManager.java:38) at com.atlassian.security.auth.trustedapps.filter.TrustedApplicationFilterAuthenticator.authenticate(TrustedApplicationFilterAuthenticator.java:86) at com.atlassian.security.auth.trustedapps.filter.TrustedApplicationsFilter.authenticate(TrustedApplicationsFilter.java:113) at com.atlassian.security.auth.trustedapps.filter.TrustedApplicationsFilter.doFilter(TrustedApplicationsFilter.java:95) at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42) at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66) at com.atlassian.plugins.rest.module.servlet.RestSeraphFilter.doFilter(RestSeraphFilter.java:40) at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.springframework.orm.hibernate.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:170) at com.atlassian.bamboo.persistence.BambooSessionInViewFilter.doFilterInternal(BambooSessionInViewFilter.java:31) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:895) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
    No Bugmate found.