Issue Details (XML | Word | Printable)

Key: SM-7
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Matt Raible
Reporter: Matt Raible
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Struts Menu

NPE at net.sf.navigator.taglib.DisplayMenuTag.setLocation (DisplayMenuTag.java:176)

Created: 05/Mar/06 09:23 PM   Updated: 07/Mar/07 06:22 PM   Resolved: 09/May/06 11:24 PM
Component/s: None
Affects Version/s: 2.3
Fix Version/s: 2.4


 Description  « Hide
I'm unable to reproduce this problem when clicking through the sample app, but I am able to reproduce it when using WAPT (under semi high load).

java.lang.NullPointerException
       at net.sf.navigator.taglib.DisplayMenuTag.setLocation
(DisplayMenuTag.java:176)
       at net.sf.navigator.taglib.DisplayMenuTag.setPageLocation
(DisplayMenuTag.java:140)
       at net.sf.navigator.taglib.DisplayMenuTag.setPageLocation
(DisplayMenuTag.java:168)
       at net.sf.navigator.taglib.DisplayMenuTag.doStartTag
(DisplayMenuTag.java:92)
       at _jsp._index__jsp._jspService(index.jsp:26)
       at com.caucho.jsp.JavaPage.service(JavaPage.java:60)
       at com.caucho.jsp.Page.pageservice(Page.java:570)
       at com.caucho.server.dispatch.PageFilterChain.doFilter
(PageFilterChain.java:159)
       at com.caucho.server.webapp.WebAppFilterChain.doFilter
(WebAppFilterChain.java:163)
       at com.caucho.server.dispatch.ServletInvocation.service
(ServletInvocation.java:208)
       at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:
259)
       at com.caucho.server.port.TcpConnection.run(TcpConnection.java:363)
       at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:490)
       at com.caucho.util.ThreadPool.run(ThreadPool.java:423)
       at java.lang.Thread.run(Thread.java:595)

Sort Order: Ascending order - Click to sort in descending order

Matt Raible added a comment - 09/May/06 11:24 PM
Fixed by changing menuComponents to synchronized list.

protected List menuComponents = Collections.synchronizedList(new ArrayList());