NPE in TC 1.2 (TC does not check who is logged in)

I did following:
1. logged in as an admin
2. from another tab in Mozzila I logged out and logged in as a guest
3. from the previous tab I pressed 'Settings' (which does not exist for guests but since I had logged there as an admin, it was there)
4. Following exception appeared:

Unexpected Error

Error message: none available
Show stacktrace

java.lang.NullPointerException
at jetbrains.buildServer.controllers.profile.PluginSectionImpl.]]>(PluginSectionImpl.java:15)
at jetbrains.buildServer.controllers.profile.ProfileForm.getPluginSections(ProfileForm.java:14)
at jetbrains.buildServer.controllers.profile.ProfileForm.loadNotificatorPluginSections(ProfileForm.java:13)
at jetbrains.buildServer.controllers.profile.EditPersonalProfileForm.newInstance(EditPersonalProfileForm.java:2)
at jetbrains.buildServer.controllers.profile.ModifyProfileController.getProfileForm(ModifyProfileController.java:2)
at jetbrains.buildServer.controllers.profile.ModifyProfileController.getDefaultView(ModifyProfileController.java:9)
at jetbrains.buildServer.controllers.BaseAjaxXmlController.doHandle(BaseAjaxXmlController.java:4)
at jetbrains.buildServer.controllers.BaseController.handleRequestInternal(BaseController.java:6)
at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:44)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:723)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:663)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:394)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:348)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)

1 comment
Comment actions Permalink

Hello,

That's a bit unusual usage of TeamCity. Mozilla shares same session for all
opened tabs and windows (same cookies are sent to server from all mozilla
windows). So when you logged in as guest you became guest in any windows.
Anyway please submit this issue in JIRA.

--
Pavel Sher

"PePan" <no_reply@jetbrains.com> wrote in message
news:5868073.1172147473952.JavaMail.itn@is.intellij.net...
>I did following:

1. logged in as an admin
2. from another tab in Mozzila I logged out and logged in as a guest
3. from the previous tab I pressed 'Settings' (which does not exist for
guests but since I had logged there as an admin, it was there)
4. Following exception appeared:

>

Unexpected Error

>

Error message: none available
Show stacktrace

>

java.lang.NullPointerException
at
jetbrains.buildServer.controllers.profile.PluginSectionImpl.<init>(PluginSectionImpl.java:15)
at
jetbrains.buildServer.controllers.profile.ProfileForm.getPluginSections(ProfileForm.java:14)
at
jetbrains.buildServer.controllers.profile.ProfileForm.loadNotificatorPluginSections(ProfileForm.java:13)
at
jetbrains.buildServer.controllers.profile.EditPersonalProfileForm.newInstance(EditPersonalProfileForm.java:2)
at
jetbrains.buildServer.controllers.profile.ModifyProfileController.getProfileForm(ModifyProfileController.java:2)
at
jetbrains.buildServer.controllers.profile.ModifyProfileController.getDefaultView(ModifyProfileController.java:9)
at
jetbrains.buildServer.controllers.BaseAjaxXmlController.doHandle(BaseAjaxXmlController.java:4)
at
jetbrains.buildServer.controllers.BaseController.handleRequestInternal(BaseController.java:6)
at
org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
at
org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:44)
at
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:723)
at
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:663)
at
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:394)
at
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:348)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)



0

Please sign in to leave a comment.