Skip to main content

problem using tooltip widget

3 replies [Last post]
vchopr1
Offline
Joined: 2006-12-05

Hi,
I am using tooltip widget in my Struts project, and am running into errors. Since each label has a specific tip, I use the ajax tag for each label. It calls a jsp page where I create tips based on the parameter passed.
I have pasted the code and the error.

I think it is due to using the same tag twice in the same Jsp page.

Code:

error:

[11:31:42.140] java.lang.NullPointerException
[11:31:42.140] at com.sun.jmaki.AjaxCommon.doProcess(AjaxCommon.java:289)
[11:31:42.140] at com.sun.jmaki.AjaxTag.doEndTag(AjaxTag.java:131)
[11:31:42.140] at _jsp._tiles._content._newjob__jsp._jspService(_newjob__jsp.java:224)
[11:31:42.140] at com.caucho.jsp.JavaPage.service(JavaPage.java:60)
[11:31:42.140] at com.caucho.jsp.Page.pageservice(Page.java:570)
[11:31:42.140] at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:179)
[11:31:42.140] at com.caucho.server.webapp.DispatchFilterChain.doFilter(DispatchFilterChain.java:115)
[11:31:42.140] at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:229)
[11:31:42.140] at com.caucho.server.webapp.RequestDispatcherImpl.include(RequestDispatcherImpl.java:485)
[11:31:42.140] at com.caucho.server.webapp.RequestDispatcherImpl.include(RequestDispatcherImpl.java:350)
[11:31:42.140] at com.caucho.jsp.PageContextImpl.include(PageContextImpl.java:927)
[11:31:42.140] at com.caucho.jsp.PageContextImpl.include(PageContextImpl.java:864)
[11:31:42.140] at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:99)
[11:31:42.140] at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:135)
[11:31:42.140] at org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:760)
[11:31:42.140] at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:892)
[11:31:42.140] at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:462)
[11:31:42.140] at _jsp._tiles._layout._mainLayout__jsp._jspService(_mainLayout__jsp.java:247)
[11:31:42.140] at com.caucho.jsp.JavaPage.service(JavaPage.java:60)
[11:31:42.140] at com.caucho.jsp.Page.pageservice(Page.java:570)
[11:31:42.140] at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:179)
[11:31:42.140] at com.caucho.server.webapp.DispatchFilterChain.doFilter(DispatchFilterChain.java:115)
[11:31:42.140] at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:229)
[11:31:42.140] at com.caucho.server.webapp.RequestDispatcherImpl.include(RequestDispatcherImpl.java:485)
[11:31:42.140] at com.caucho.server.webapp.RequestDispatcherImpl.include(RequestDispatcherImpl.java:350)
[11:31:42.140] at com.caucho.jsp.PageContextImpl.include(PageContextImpl.java:927)
[11:31:42.140] at com.caucho.jsp.PageContextImpl.include(PageContextImpl.java:864)
[11:31:42.140] at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:99)
[11:31:42.140] at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:135)
[11:31:42.140] at org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:760)
[11:31:42.140] at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:892)
[11:31:42.140] at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:462)
[11:31:42.140] at _jsp._addjob__jsp._jspService(_addjob__jsp.java:38)
[11:31:42.140] at com.caucho.jsp.JavaPage.service(JavaPage.java:60)
[11:31:42.140] at com.caucho.jsp.Page.pageservice(Page.java:570)
[11:31:42.140] at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:179)
[11:31:42.140] at com.caucho.server.webapp.DispatchFilterChain.doFilter(DispatchFilterChain.java:115)
[11:31:42.140] at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:229)
[11:31:42.140] at com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:277)
[11:31:42.140] at com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:106)
[11:31:42.140] at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085)
[11:31:42.140] at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:263)
[11:31:42.140] at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:398)
[11:31:42.140] at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:318)
[11:31:42.140] at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:241)
[11:31:42.140] at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
[11:31:42.140] at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
[11:31:42.140] at javax.servlet.http.HttpServlet.service(HttpServlet.java:115)
[11:31:42.140] at javax.servlet.http.HttpServlet.service(HttpServlet.java:92)
[11:31:42.140] at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:106)
[11:31:42.140] at com.caucho.server.webapp.DispatchFilterChain.doFilter(DispatchFilterChain.java:115)
[11:31:42.140] at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:229)
[11:31:42.140] at com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:277)
[11:31:42.140] at com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:106)
[11:31:42.140] at org.tuckey.web.filters.urlrewrite.RewrittenUrl.doRewrite(RewrittenUrl.java:168)
[11:31:42.140] at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:289)
[11:31:42.140] at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70)
[11:31:42.140] at com.aaxistechnologies.webapp.filters.ProfileFilter.doFilter(ProfileFilter.java:142)
[11:31:42.140] at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70)
[11:31:42.140] at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:173)
[11:31:42.140] at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:229)
[11:31:42.140] at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:274)
[11:31:42.140] at com.caucho.server.port.TcpConnection.run(TcpConnection.java:511)
[11:31:42.140] at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:516)
[11:31:42.140] at com.caucho.util.ThreadPool.run(ThreadPool.java:442)
[11:31:42.140] at java.lang.Thread.run(Thread.java:613)

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
daveraikar
Offline
Joined: 2007-02-14

Can you please share a sample or skeleton of Jmaki with Struts ?

Thanks,
-Dave

gmurray71
Offline
Joined: 2003-07-31

I've added an issue that we can now track for this.

We had started on an example but we need to get this in our samples.

https://ajax.dev.java.net/issues/show_bug.cgi?id=120

gmurray71
Offline
Joined: 2003-07-31

Are you sure that the URL created by the service:

"/Tool/Type,${theType}/" is valid.

You can do a view source on the page and look for the URL in the