javax.servlet.jsp.JspException

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 happens when a user has permission to a project, however does not have permission to the default repository in that project. After talking to [~tim@atlassian.com], this could be fixed by checking the isAuthorized() flag on the source object returned by sourceFactory.getSource in this method in UserTextRendererTag: {code} protected Linker getLinker() { Source source = null; if (!StringUtils.isEmpty(repname)) { SourceFactory sourceFactory = SpringContext.getComponent(SourceFactory.class, "sourceFactory"); EffectiveUserProvider effectiveUserProvider = SpringContext.getComponent(EffectiveUserProvider.class, "effectiveUserProvider"); source = sourceFactory.getSource(repname, effectiveUserProvider.getEffectivePrincipal()); } return getLinkerService().getLinker(source, project); } {code} ie. getLinkerService().getLinker() should never be called with a source instance that the current user is not authorised to view. Also investigate why UserTextRendererTag sets the repname when rendering a project. Note; the check may be better placed in the linker service's getLinker() method. Actual stack trace is: {code} [java] 2012-05-07 15:44:02,696 WARN - Nested in javax.servlet.ServletException: javax.servlet.jsp.JspException: java.lang.IllegalArgumentException: No local entity with key 'FE-HG' and type 'class com.atlassian.applinks.application.fecru.FishEyeRepositoryEntityTypeImpl' exists: [java] javax.servlet.jsp.JspException: java.lang.IllegalArgumentException: No local entity with key 'FE-HG' and type 'class com.atlassian.applinks.application.fecru.FishEyeRepositoryEntityTypeImpl' exists [java] at org.apache.jsp.tag.web.review.reviewResultListView_tag.doTag(org.apache.jsp.tag.web.review.reviewResultListView_tag:230) [java] at org.apache.jsp.tag.web.cru.reviewTable_tag._jspx_meth_rev_reviewResultListView_0(org.apache.jsp.tag.web.cru.reviewTable_tag:644) [java] at org.apache.jsp.tag.web.cru.reviewTable_tag._jspx_meth_c_forEach_0(org.apache.jsp.tag.web.cru.reviewTable_tag:608) [java] at org.apache.jsp.tag.web.cru.reviewTable_tag.doTag(org.apache.jsp.tag.web.cru.reviewTable_tag:210) [java] at org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp._jspx_meth_rend_reviewTable_0(org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp:751) [java] at org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp._jspx_meth_c_otherwise_1(org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp:718) [java] at org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp._jspx_meth_c_choose_1(org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp:658) [java] at org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp.access$11(org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp:641) [java] at org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp$dashboard_jspHelper.invoke8(org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp:974) [java] at org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp$dashboard_jspHelper.invoke(org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp:1032) [java] at org.apache.jsp.tag.web.cru.threePanelPageContent_tag.doTag(org.apache.jsp.tag.web.cru.threePanelPageContent_tag:689) [java] at org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp._jspx_meth_rend_threePanelPageContent_0(org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp:210) [java] at org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp._jspService(org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp:145) [java] at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109) [java] at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) [java] at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:389) [java] at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:486) [java] at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380) [java] at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) [java] at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) [java] at org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1272) [java] at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46) [java] at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66) [java] at com.atlassian.applinks.core.rest.context.ContextFilter.doFilter(ContextFilter.java:25) [java] at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74) [java] at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42) [java] at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77) [java] at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63) [java] at org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1264) [java] at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46) {code}
    via by Nick Pellow [Atlassian],
  • This happens when a user has permission to a project, however does not have permission to the default repository in that project. After talking to [~tim@atlassian.com], this could be fixed by checking the isAuthorized() flag on the source object returned by sourceFactory.getSource in this method in UserTextRendererTag: {code} protected Linker getLinker() { Source source = null; if (!StringUtils.isEmpty(repname)) { SourceFactory sourceFactory = SpringContext.getComponent(SourceFactory.class, "sourceFactory"); EffectiveUserProvider effectiveUserProvider = SpringContext.getComponent(EffectiveUserProvider.class, "effectiveUserProvider"); source = sourceFactory.getSource(repname, effectiveUserProvider.getEffectivePrincipal()); } return getLinkerService().getLinker(source, project); } {code} ie. getLinkerService().getLinker() should never be called with a source instance that the current user is not authorised to view. Also investigate why UserTextRendererTag sets the repname when rendering a project. Note; the check may be better placed in the linker service's getLinker() method. Actual stack trace is: {code} [java] 2012-05-07 15:44:02,696 WARN - Nested in javax.servlet.ServletException: javax.servlet.jsp.JspException: java.lang.IllegalArgumentException: No local entity with key 'FE-HG' and type 'class com.atlassian.applinks.application.fecru.FishEyeRepositoryEntityTypeImpl' exists: [java] javax.servlet.jsp.JspException: java.lang.IllegalArgumentException: No local entity with key 'FE-HG' and type 'class com.atlassian.applinks.application.fecru.FishEyeRepositoryEntityTypeImpl' exists [java] at org.apache.jsp.tag.web.review.reviewResultListView_tag.doTag(org.apache.jsp.tag.web.review.reviewResultListView_tag:230) [java] at org.apache.jsp.tag.web.cru.reviewTable_tag._jspx_meth_rev_reviewResultListView_0(org.apache.jsp.tag.web.cru.reviewTable_tag:644) [java] at org.apache.jsp.tag.web.cru.reviewTable_tag._jspx_meth_c_forEach_0(org.apache.jsp.tag.web.cru.reviewTable_tag:608) [java] at org.apache.jsp.tag.web.cru.reviewTable_tag.doTag(org.apache.jsp.tag.web.cru.reviewTable_tag:210) [java] at org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp._jspx_meth_rend_reviewTable_0(org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp:751) [java] at org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp._jspx_meth_c_otherwise_1(org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp:718) [java] at org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp._jspx_meth_c_choose_1(org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp:658) [java] at org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp.access$11(org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp:641) [java] at org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp$dashboard_jspHelper.invoke8(org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp:974) [java] at org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp$dashboard_jspHelper.invoke(org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp:1032) [java] at org.apache.jsp.tag.web.cru.threePanelPageContent_tag.doTag(org.apache.jsp.tag.web.cru.threePanelPageContent_tag:689) [java] at org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp._jspx_meth_rend_threePanelPageContent_0(org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp:210) [java] at org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp._jspService(org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp:145) [java] at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109) [java] at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) [java] at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:389) [java] at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:486) [java] at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380) [java] at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) [java] at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) [java] at org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1272) [java] at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46) [java] at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66) [java] at com.atlassian.applinks.core.rest.context.ContextFilter.doFilter(ContextFilter.java:25) [java] at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74) [java] at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42) [java] at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77) [java] at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63) [java] at org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1264) [java] at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46) {code}
    via by Nick Pellow [Atlassian],
    • javax.servlet.jsp.JspException: java.lang.IllegalArgumentException: No local entity with key 'FE-HG' and type 'class com.atlassian.applinks.application.fecru.FishEyeRepositoryEntityTypeImpl' exists at org.apache.jsp.tag.web.review.reviewResultListView_tag.doTag(org.apache.jsp.tag.web.review.reviewResultListView_tag:230) at org.apache.jsp.tag.web.cru.reviewTable_tag._jspx_meth_rev_reviewResultListView_0(org.apache.jsp.tag.web.cru.reviewTable_tag:644) at org.apache.jsp.tag.web.cru.reviewTable_tag._jspx_meth_c_forEach_0(org.apache.jsp.tag.web.cru.reviewTable_tag:608) at org.apache.jsp.tag.web.cru.reviewTable_tag.doTag(org.apache.jsp.tag.web.cru.reviewTable_tag:210) at org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp._jspx_meth_rend_reviewTable_0(org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp:751) at org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp._jspx_meth_c_otherwise_1(org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp:718) at org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp._jspx_meth_c_choose_1(org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp:658) at org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp.access$11(org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp:641) at org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp$dashboard_jspHelper.invoke8(org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp:974) at org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp$dashboard_jspHelper.invoke(org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp:1032) at org.apache.jsp.tag.web.cru.threePanelPageContent_tag.doTag(org.apache.jsp.tag.web.cru.threePanelPageContent_tag:689) at org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp._jspx_meth_rend_threePanelPageContent_0(org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp:210) at org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp._jspService(org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp:145) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:389) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:486) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) at org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1272) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46) at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66) at com.atlassian.applinks.core.rest.context.ContextFilter.doFilter(ContextFilter.java:25) 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.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1264) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46)
    No Bugmate found.