You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Curtney Jacobs <te...@attbi.com> on 2002/10/06 00:36:41 UTC
NullPointerException in TabsLayout??
Greetings!!
I am having problems viewing the tiles-documentation example, specifically the
tab examples. Everything else works fine except the tabs.
There was a similar question posted to the group on July 17, 2002,
titled "Struts Tabs Example Error" by Peggy Davidson. However, the problem was
not resolved or no one posted a fix to the problem. If anyone has encountered
a similar problem and found a solution, please advise me.
I am running tomcat version 4.1.12.
I am using jakarta-struts-1.1-b2
Below is the error message I am receiving.
(Sorry Cedric, I should have posted the error message earlier)
All help is greatly appreciated.
_CJ
----- Root Cause -----
java.lang.NullPointerException
at org.apache.jsp.tabsLayout_jsp._jspService(tabsLayout_jsp.java:121)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:204)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:575)
at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:498)
at
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:820)
at
org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:395)
at
org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:865)
at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:487)
at
org.apache.jsp.classicLayout_jsp._jspx_meth_tiles_insert_2(classicLayout_jsp.java:160)
at org.apache.jsp.classicLayout_jsp._jspService(classicLayout_jsp.java:81)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:204)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:575)
at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:498)
at
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:820)
at
org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:395)
at
org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:865)
at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:487)
at org.apache.jsp.tabs_jsp._jspx_meth_tiles_insert_0(tabs_jsp.java:76)
at org.apache.jsp.tabs_jsp._jspService(tabs_jsp.java:53)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:204)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:471)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
at java.lang.Thread.run(Thread.java:536)
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: NullPointerException in TabsLayout??
Posted by Matt Veitas <mv...@objectsciences.com>.
That is the correct fix for it. Someone posted a patch for this earlier
this week. :-D
Curtney Jacobs wrote:
>Greetings!!
>
>Well, I managed to get the tabs to work. However, I am not to sure if it was a
>proper solution to the problem or just a hack.
>
>I changed the following:
>
><tiles:useAttribute name="tabList" classname="java.util.List" />
>
>to
>
><tiles:useAttribute id="tabList" name="tabList" classname="java.util.List" />
>
>
>The id attribute was missing.
>
>Thanks David. It looks like a little debugging time did the job.
>
>(Cedric please let me know if this is correct).
>
>_CJ
>
>On Sunday 06 October 2002 12:32 am, Curtney Jacobs wrote:
>
>
>>Hi,
>>
>>It seems that the "tabList" variable is null. I checked the
>>tiles-examples-defs.xml to make sure the variable is properly initialize or
>>constructed. Everything appears to be OK. The following is an excerpt from
>>the tiles-examples-defs.xml file.
>>
>><!-- ======================================================= -->
>> <!-- Tabs test page and definitions -->
>> <!-- ======================================================= -->
>>
>> <!-- tabs page -->
>> <definition name="examples.tabs.page" extends="examples.masterPage">
>> <put name="title" value="Tiles 1.1 Tabs layout example" />
>> <put name="body" value="examples.tabs.body" />
>> </definition>
>>
>> <!-- body using tabs -->
>> <definition name="examples.tabs.body" path="/layouts/tabsLayout.jsp" >
>> <put name="selectedIndex" value="0" />
>> <put name="parameterName" value="selected" />
>> <putList name="tabList" >
>> <item value="Doc Home"
>> link="/index.jsp" />
>> <item value="Quick overview"
>> link="/doc/quickOverview.jsp" />
>> <item value="Tutorial"
>> link="/doc/tutorial.jsp" />
>> <item value="Examples Home"
>> link="/examples/index.jsp" />
>> <item value="Tutorial Home"
>> link="/tutorial/index.jsp" />
>> <item value="Login"
>> link="/examples/tiles/portal/login.jsp" />
>> <item value="Messages"
>> link="/examples/tiles/portal/messages.jsp" />
>> <item value="NewsFeed"
>> link="/examples/tiles/portal/newsFeed.jsp" />
>> <item value="Stocks"
>> link="/examples/tiles/portal/stocks.jsp" />
>> <item value="WhatsNew"
>> link="/examples/tiles/portal/whatsNew.jsp" />
>> </putList>
>> </definition>
>>
>> <!-- ======================================================= -->
>> <!-- Summaries in tabs -->
>> <!-- ======================================================= -->
>>
>> <!-- tabs page -->
>> <definition name="examples.tabs.summaries.page"
>>extends="examples.masterPage">
>> <put name="title" value="Tiles 1.1 Summaries in Tabs" />
>> <put name="body" value="examples.tabs.summaries.body" />
>> </definition>
>>
>> <!-- body using tabs -->
>> <definition name="examples.tabs.summaries.body"
>>path="/layouts/tabsLayout.jsp" >
>> <put name="selectedIndex" value="0" />
>> <put name="parameterName" value="selected" />
>> <putList name="tabList" >
>> <item value="Portal"
>> link="/examples/tiles/portalSummary.jsp"
>> classtype="org.apache.struts.tiles.beans.SimpleMenuItem" />
>> <item value="my Portal"
>> link="/examples/tiles/myPortalSummary.jsp"
>> classtype="org.apache.struts.tiles.beans.SimpleMenuItem" />
>> <item value="Menu"
>> link="/examples/tiles/menuSummary.jsp"
>> classtype="org.apache.struts.tiles.beans.SimpleMenuItem" />
>> <item value="my Menu"
>> link="/examples/tiles/myMenuSummary.jsp"
>> classtype="org.apache.struts.tiles.beans.SimpleMenuItem" />
>> <item value="Tabs"
>> link="/examples/tiles/tabsSummary.jsp"
>> classtype="org.apache.struts.tiles.beans.SimpleMenuItem" />
>> <item value="Rss Channels"
>> link="/examples/tiles/rssChannelsSummary.jsp"
>> classtype="org.apache.struts.tiles.beans.SimpleMenuItem" />
>> <item value="Admin"
>> link="/examples/tiles/adminSummary.jsp"
>> classtype="org.apache.struts.tiles.beans.SimpleMenuItem" />
>> <item value="i18n"
>> link="/examples/tiles/i18nSummary.jsp"
>> classtype="org.apache.struts.tiles.beans.SimpleMenuItem" />
>> <item value="Multi Channels"
>> link="/examples/tiles/multiChannelsSummary.jsp"
>> classtype="org.apache.struts.tiles.beans.SimpleMenuItem" />
>> <item value="Components"
>> link="/examples/tiles/componentsSummary.jsp"
>> classtype="org.apache.struts.tiles.beans.SimpleMenuItem" />
>> </putList>
>> </definition>
>>
>>_CJ
>>
>>On Sunday 06 October 2002 6:11 am, David M. Karr wrote:
>>
>>
>>>>>>>>"Curtney" == Curtney Jacobs <te...@attbi.com> writes:
>>>>>>>>
>>>>>>>>
>>> Curtney> Greetings!!
>>> Curtney> I am having problems viewing the tiles-documentation
>>>example, specifically the Curtney> tab examples. Everything else works
>>>fine except the tabs.
>>>
>>> Curtney> There was a similar question posted to the group on July 17,
>>>2002, Curtney> titled "Struts Tabs Example Error" by Peggy Davidson.
>>>However, the problem was Curtney> not resolved or no one posted a fix to
>>>the problem. If anyone has encountered Curtney> a similar problem and
>>>found a solution, please advise me.
>>>
>>> Curtney> I am running tomcat version 4.1.12.
>>> Curtney> I am using jakarta-struts-1.1-b2
>>>
>>> Curtney> Below is the error message I am receiving.
>>>
>>> Curtney> ----- Root Cause -----
>>> Curtney> java.lang.NullPointerException
>>> Curtney> at
>>>org.apache.jsp.tabsLayout_jsp._jspService(tabsLayout_jsp.java:121)
>>>Curtney> at
>>>org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
>>>
>>>I'm not familiar with this, but it might help Cedric, or anyone else who
>>>tracks this, if you could submit the portion of the generated Java source
>>>file that is throwing the NPE. Even better, if you could run this in
>>>your debugger and track in the page what variable is null.
>>>
>>>
>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: NullPointerException in TabsLayout??
Posted by Curtney Jacobs <te...@attbi.com>.
Greetings!!
Well, I managed to get the tabs to work. However, I am not to sure if it was a
proper solution to the problem or just a hack.
I changed the following:
<tiles:useAttribute name="tabList" classname="java.util.List" />
to
<tiles:useAttribute id="tabList" name="tabList" classname="java.util.List" />
The id attribute was missing.
Thanks David. It looks like a little debugging time did the job.
(Cedric please let me know if this is correct).
_CJ
On Sunday 06 October 2002 12:32 am, Curtney Jacobs wrote:
> Hi,
>
> It seems that the "tabList" variable is null. I checked the
> tiles-examples-defs.xml to make sure the variable is properly initialize or
> constructed. Everything appears to be OK. The following is an excerpt from
> the tiles-examples-defs.xml file.
>
> <!-- ======================================================= -->
> <!-- Tabs test page and definitions -->
> <!-- ======================================================= -->
>
> <!-- tabs page -->
> <definition name="examples.tabs.page" extends="examples.masterPage">
> <put name="title" value="Tiles 1.1 Tabs layout example" />
> <put name="body" value="examples.tabs.body" />
> </definition>
>
> <!-- body using tabs -->
> <definition name="examples.tabs.body" path="/layouts/tabsLayout.jsp" >
> <put name="selectedIndex" value="0" />
> <put name="parameterName" value="selected" />
> <putList name="tabList" >
> <item value="Doc Home"
> link="/index.jsp" />
> <item value="Quick overview"
> link="/doc/quickOverview.jsp" />
> <item value="Tutorial"
> link="/doc/tutorial.jsp" />
> <item value="Examples Home"
> link="/examples/index.jsp" />
> <item value="Tutorial Home"
> link="/tutorial/index.jsp" />
> <item value="Login"
> link="/examples/tiles/portal/login.jsp" />
> <item value="Messages"
> link="/examples/tiles/portal/messages.jsp" />
> <item value="NewsFeed"
> link="/examples/tiles/portal/newsFeed.jsp" />
> <item value="Stocks"
> link="/examples/tiles/portal/stocks.jsp" />
> <item value="WhatsNew"
> link="/examples/tiles/portal/whatsNew.jsp" />
> </putList>
> </definition>
>
> <!-- ======================================================= -->
> <!-- Summaries in tabs -->
> <!-- ======================================================= -->
>
> <!-- tabs page -->
> <definition name="examples.tabs.summaries.page"
> extends="examples.masterPage">
> <put name="title" value="Tiles 1.1 Summaries in Tabs" />
> <put name="body" value="examples.tabs.summaries.body" />
> </definition>
>
> <!-- body using tabs -->
> <definition name="examples.tabs.summaries.body"
> path="/layouts/tabsLayout.jsp" >
> <put name="selectedIndex" value="0" />
> <put name="parameterName" value="selected" />
> <putList name="tabList" >
> <item value="Portal"
> link="/examples/tiles/portalSummary.jsp"
> classtype="org.apache.struts.tiles.beans.SimpleMenuItem" />
> <item value="my Portal"
> link="/examples/tiles/myPortalSummary.jsp"
> classtype="org.apache.struts.tiles.beans.SimpleMenuItem" />
> <item value="Menu"
> link="/examples/tiles/menuSummary.jsp"
> classtype="org.apache.struts.tiles.beans.SimpleMenuItem" />
> <item value="my Menu"
> link="/examples/tiles/myMenuSummary.jsp"
> classtype="org.apache.struts.tiles.beans.SimpleMenuItem" />
> <item value="Tabs"
> link="/examples/tiles/tabsSummary.jsp"
> classtype="org.apache.struts.tiles.beans.SimpleMenuItem" />
> <item value="Rss Channels"
> link="/examples/tiles/rssChannelsSummary.jsp"
> classtype="org.apache.struts.tiles.beans.SimpleMenuItem" />
> <item value="Admin"
> link="/examples/tiles/adminSummary.jsp"
> classtype="org.apache.struts.tiles.beans.SimpleMenuItem" />
> <item value="i18n"
> link="/examples/tiles/i18nSummary.jsp"
> classtype="org.apache.struts.tiles.beans.SimpleMenuItem" />
> <item value="Multi Channels"
> link="/examples/tiles/multiChannelsSummary.jsp"
> classtype="org.apache.struts.tiles.beans.SimpleMenuItem" />
> <item value="Components"
> link="/examples/tiles/componentsSummary.jsp"
> classtype="org.apache.struts.tiles.beans.SimpleMenuItem" />
> </putList>
> </definition>
>
> _CJ
>
> On Sunday 06 October 2002 6:11 am, David M. Karr wrote:
> > >>>>> "Curtney" == Curtney Jacobs <te...@attbi.com> writes:
> >
> > Curtney> Greetings!!
> > Curtney> I am having problems viewing the tiles-documentation
> > example, specifically the Curtney> tab examples. Everything else works
> > fine except the tabs.
> >
> > Curtney> There was a similar question posted to the group on July 17,
> > 2002, Curtney> titled "Struts Tabs Example Error" by Peggy Davidson.
> > However, the problem was Curtney> not resolved or no one posted a fix to
> > the problem. If anyone has encountered Curtney> a similar problem and
> > found a solution, please advise me.
> >
> > Curtney> I am running tomcat version 4.1.12.
> > Curtney> I am using jakarta-struts-1.1-b2
> >
> > Curtney> Below is the error message I am receiving.
> >
> > Curtney> ----- Root Cause -----
> > Curtney> java.lang.NullPointerException
> > Curtney> at
> > org.apache.jsp.tabsLayout_jsp._jspService(tabsLayout_jsp.java:121)
> > Curtney> at
> > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
> >
> > I'm not familiar with this, but it might help Cedric, or anyone else who
> > tracks this, if you could submit the portion of the generated Java source
> > file that is throwing the NPE. Even better, if you could run this in
> > your debugger and track in the page what variable is null.
--
U-Interface.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: NullPointerException in TabsLayout??
Posted by Curtney Jacobs <te...@attbi.com>.
Hi,
It seems that the "tabList" variable is null. I checked the
tiles-examples-defs.xml to make sure the variable is properly initialize or
constructed. Everything appears to be OK. The following is an excerpt from
the tiles-examples-defs.xml file.
<!-- ======================================================= -->
<!-- Tabs test page and definitions -->
<!-- ======================================================= -->
<!-- tabs page -->
<definition name="examples.tabs.page" extends="examples.masterPage">
<put name="title" value="Tiles 1.1 Tabs layout example" />
<put name="body" value="examples.tabs.body" />
</definition>
<!-- body using tabs -->
<definition name="examples.tabs.body" path="/layouts/tabsLayout.jsp" >
<put name="selectedIndex" value="0" />
<put name="parameterName" value="selected" />
<putList name="tabList" >
<item value="Doc Home"
link="/index.jsp" />
<item value="Quick overview"
link="/doc/quickOverview.jsp" />
<item value="Tutorial"
link="/doc/tutorial.jsp" />
<item value="Examples Home"
link="/examples/index.jsp" />
<item value="Tutorial Home"
link="/tutorial/index.jsp" />
<item value="Login"
link="/examples/tiles/portal/login.jsp" />
<item value="Messages"
link="/examples/tiles/portal/messages.jsp" />
<item value="NewsFeed"
link="/examples/tiles/portal/newsFeed.jsp" />
<item value="Stocks"
link="/examples/tiles/portal/stocks.jsp" />
<item value="WhatsNew"
link="/examples/tiles/portal/whatsNew.jsp" />
</putList>
</definition>
<!-- ======================================================= -->
<!-- Summaries in tabs -->
<!-- ======================================================= -->
<!-- tabs page -->
<definition name="examples.tabs.summaries.page"
extends="examples.masterPage">
<put name="title" value="Tiles 1.1 Summaries in Tabs" />
<put name="body" value="examples.tabs.summaries.body" />
</definition>
<!-- body using tabs -->
<definition name="examples.tabs.summaries.body"
path="/layouts/tabsLayout.jsp" >
<put name="selectedIndex" value="0" />
<put name="parameterName" value="selected" />
<putList name="tabList" >
<item value="Portal"
link="/examples/tiles/portalSummary.jsp"
classtype="org.apache.struts.tiles.beans.SimpleMenuItem" />
<item value="my Portal"
link="/examples/tiles/myPortalSummary.jsp"
classtype="org.apache.struts.tiles.beans.SimpleMenuItem" />
<item value="Menu"
link="/examples/tiles/menuSummary.jsp"
classtype="org.apache.struts.tiles.beans.SimpleMenuItem" />
<item value="my Menu"
link="/examples/tiles/myMenuSummary.jsp"
classtype="org.apache.struts.tiles.beans.SimpleMenuItem" />
<item value="Tabs"
link="/examples/tiles/tabsSummary.jsp"
classtype="org.apache.struts.tiles.beans.SimpleMenuItem" />
<item value="Rss Channels"
link="/examples/tiles/rssChannelsSummary.jsp"
classtype="org.apache.struts.tiles.beans.SimpleMenuItem" />
<item value="Admin"
link="/examples/tiles/adminSummary.jsp"
classtype="org.apache.struts.tiles.beans.SimpleMenuItem" />
<item value="i18n"
link="/examples/tiles/i18nSummary.jsp"
classtype="org.apache.struts.tiles.beans.SimpleMenuItem" />
<item value="Multi Channels"
link="/examples/tiles/multiChannelsSummary.jsp"
classtype="org.apache.struts.tiles.beans.SimpleMenuItem" />
<item value="Components"
link="/examples/tiles/componentsSummary.jsp"
classtype="org.apache.struts.tiles.beans.SimpleMenuItem" />
</putList>
</definition>
_CJ
On Sunday 06 October 2002 6:11 am, David M. Karr wrote:
> >>>>> "Curtney" == Curtney Jacobs <te...@attbi.com> writes:
>
> Curtney> Greetings!!
> Curtney> I am having problems viewing the tiles-documentation example,
> specifically the Curtney> tab examples. Everything else works fine except
> the tabs.
>
> Curtney> There was a similar question posted to the group on July 17,
> 2002, Curtney> titled "Struts Tabs Example Error" by Peggy Davidson.
> However, the problem was Curtney> not resolved or no one posted a fix to
> the problem. If anyone has encountered Curtney> a similar problem and found
> a solution, please advise me.
>
> Curtney> I am running tomcat version 4.1.12.
> Curtney> I am using jakarta-struts-1.1-b2
>
> Curtney> Below is the error message I am receiving.
>
> Curtney> ----- Root Cause -----
> Curtney> java.lang.NullPointerException
> Curtney> at
> org.apache.jsp.tabsLayout_jsp._jspService(tabsLayout_jsp.java:121) Curtney>
> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
>
> I'm not familiar with this, but it might help Cedric, or anyone else who
> tracks this, if you could submit the portion of the generated Java source
> file that is throwing the NPE. Even better, if you could run this in your
> debugger and track in the page what variable is null.
--
U-Interface.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: NullPointerException in TabsLayout??
Posted by "David M. Karr" <dm...@earthlink.net>.
>>>>> "Curtney" == Curtney Jacobs <te...@attbi.com> writes:
Curtney> Greetings!!
Curtney> I am having problems viewing the tiles-documentation example, specifically the
Curtney> tab examples. Everything else works fine except the tabs.
Curtney> There was a similar question posted to the group on July 17, 2002,
Curtney> titled "Struts Tabs Example Error" by Peggy Davidson. However, the problem was
Curtney> not resolved or no one posted a fix to the problem. If anyone has encountered
Curtney> a similar problem and found a solution, please advise me.
Curtney> I am running tomcat version 4.1.12.
Curtney> I am using jakarta-struts-1.1-b2
Curtney> Below is the error message I am receiving.
Curtney> ----- Root Cause -----
Curtney> java.lang.NullPointerException
Curtney> at org.apache.jsp.tabsLayout_jsp._jspService(tabsLayout_jsp.java:121)
Curtney> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
I'm not familiar with this, but it might help Cedric, or anyone else who tracks
this, if you could submit the portion of the generated Java source file that is
throwing the NPE. Even better, if you could run this in your debugger and
track in the page what variable is null.
--
===================================================================
David M. Karr ; Java/J2EE/XML/Unix/C++
dmkarr@earthlink.net
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: NullPointerException in TabsLayout??
Posted by Cedric Dumoulin <ce...@apache.org>.
Hi all,
I have found what is wrong: tomcat 4.1.12 do reuse of the tag
<useAttribute>, and one property of the tag was not used properly. I
have now corrected the implementation class of the tag
(UseAttributeTag.java): the tiles tabs example now works with Tomcat
4.1.12. The modification will be available in next nightly build.
Cedric
Curtney Jacobs wrote:
>Greetings!!
>
>I am having problems viewing the tiles-documentation example, specifically the
>tab examples. Everything else works fine except the tabs.
>
>There was a similar question posted to the group on July 17, 2002,
>titled "Struts Tabs Example Error" by Peggy Davidson. However, the problem was
>not resolved or no one posted a fix to the problem. If anyone has encountered
>a similar problem and found a solution, please advise me.
>
>I am running tomcat version 4.1.12.
>I am using jakarta-struts-1.1-b2
>
>Below is the error message I am receiving.
>
>(Sorry Cedric, I should have posted the error message earlier)
>
>All help is greatly appreciated.
>
>_CJ
>
>
>----- Root Cause -----
>java.lang.NullPointerException
> at org.apache.jsp.tabsLayout_jsp._jspService(tabsLayout_jsp.java:121)
> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:204)
> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
> at
>org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:575)
> at
>org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:498)
> at
>org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:820)
> at
>org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:395)
> at
>org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:865)
> at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:487)
> at
>org.apache.jsp.classicLayout_jsp._jspx_meth_tiles_insert_2(classicLayout_jsp.java:160)
> at org.apache.jsp.classicLayout_jsp._jspService(classicLayout_jsp.java:81)
> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:204)
> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
> at
>org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:575)
> at
>org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:498)
> at
>org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:820)
> at
>org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:395)
> at
>org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:865)
> at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:487)
> at org.apache.jsp.tabs_jsp._jspx_meth_tiles_insert_0(tabs_jsp.java:76)
> at org.apache.jsp.tabs_jsp._jspService(tabs_jsp.java:53)
> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:204)
> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
> at
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
> at
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
> at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at
>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> at
>org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:471)
> at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
> at
>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
> at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> at
>org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
> at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> at
>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
> at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at
>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
> at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
> at
>org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
> at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
> at
>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
> at java.lang.Thread.run(Thread.java:536)
>
>--
>To unsubscribe, e-mail: <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>