Opened 14 years ago

Closed 14 years ago

#753 closed defect (fixed)

NullPointerException in plugin configuration list

Reported by: Johan Enell Owned by: Nicklas Nordborg
Priority: major Milestone: BASE 2.4.2
Component: web Version: 2.4.0
Keywords: Cc:

Description (last modified by Nicklas Nordborg)

If I try to list plugin configurations (with the definition column) and I lack READ permission on the plugin definition I get a NullPointerException?:

11:24:10,643 ERROR [jsp]:253 - Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
        at net.sf.basedb.clients.web.util.NameablePluginAdaptor.getName(NameablePluginAdaptor.java:62)
        at net.sf.basedb.clients.web.Base.getLinkedName(Base.java:1120)
        at org.apache.jsp.admin.pluginconfigurations.list_005fconfigurations_jsp._jspService(org.apache.jsp.admin.pluginconfigurations.list_005fconfigurations_jsp:1073)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
        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 net.sf.basedb.clients.web.servlet.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:72)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        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:667)
        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(Thread.java:595)

Change History (5)

comment:1 Changed 14 years ago by Johan Enell

(In [3718]) References #753

Added null check in the NameablePluginAdaptor?

comment:2 Changed 14 years ago by Johan Enell

I think the exception comes from line 492 in the file list_configurations.jsp

comment:3 Changed 14 years ago by Nicklas Nordborg

Description: modified (diff)
Status: newassigned
Summary: Logged out when wrong permissionsNullPointerException in plugin configuration list

comment:4 Changed 14 years ago by Nicklas Nordborg

The same problem also appears on the single-item view page and on the single-item view page for Job agents.

comment:5 Changed 14 years ago by Nicklas Nordborg

Resolution: fixed
Status: assignedclosed

(In [3743]) Fixes #753: NullPointerException? in plugin configuration list

Note: See TracTickets for help on using tickets.