You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Andrew Hill <an...@gridnode.com> on 2004/02/05 06:46:23 UTC

RE: Basic Tiles question!

Hmm...
Looks like you got yourself a null pointer mate!
;-)

-----Original Message-----
From: Anand Stephen [mailto:anand@sonic.net]
Sent: Thursday, 5 February 2004 13:48
To: Struts-User
Subject: Basic Tiles question!



Any idea what would cause this exception?


 


 


500 Servlet Exception

java.lang.NullPointerException
      at
org.apache.struts.taglib.tiles.InsertTag.processName(InsertTag.java:528)
      at
org.apache.struts.taglib.tiles.InsertTag.createTagHandler(InsertTag.java
:487)
      at
org.apache.struts.taglib.tiles.InsertTag.doStartTag(InsertTag.java:445)
 
 
thank you,
-- a
 
 
---------    tiles-def.xml      --------
 
 
<?xml version="1.0" encoding="UTF-8"?>
<!--
 
-->
<!DOCTYPE tiles-definitions PUBLIC
"-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"
"http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd">
<tiles-definitions>
    <definition name="mainlayout" page="/site/search/tiles/text_1.jsp">
        <put name="content" value="/site/search/tiles/text.jsp"/>
    </definition>
</tiles-definitions>
 
--- end tiles-def.xml ------
--- Struts-config.xml -----
    <plug-in className="org.apache.struts.tiles.TilesPlugin" >
        <set-property property="definitions-config"
                    value="/WEB-INF/tiles-def.xml l" />
        <set-property property="moduleAware" value="true" />
        <set-property property="definitions-debug" value="1"/>
        <set-property property="definitions-parser-validate"
value="true" />
  </plug-in>
 
--- end struts config ------
----     the jsp ----
 
 
<%@ taglib uri="/WEB-INF/tlds/tiles.tld" prefix="tiles" %>
<html>
    <head>
        <title>
          testing.....
        </title>
 
    </head>
<body>
<tiles:get name="content"/>
</body>
</html>
 
------ end jsp -------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: Basic Tiles question!

Posted by Michael McGrady <mi...@michaelmcgrady.com>.
And, more "Hmm...", it looks like whatever is assumed to have a value other 
than null at line 528 of InsertTag.java, so that you can look at the source 
code to see what that might be.  My guess is that there is some "name" 
object that is being passed into that "processName" method that is null.

At 09:46 PM 2/4/2004, you wrote:
>Hmm...
>Looks like you got yourself a null pointer mate!
>;-)
>
>-----Original Message-----
>From: Anand Stephen [mailto:anand@sonic.net]
>Sent: Thursday, 5 February 2004 13:48
>To: Struts-User
>Subject: Basic Tiles question!
>
>
>
>Any idea what would cause this exception?
>
>
>
>
>
>
>
>
>500 Servlet Exception
>
>java.lang.NullPointerException
>       at
>org.apache.struts.taglib.tiles.InsertTag.processName(InsertTag.java:528)
>       at
>org.apache.struts.taglib.tiles.InsertTag.createTagHandler(InsertTag.java
>:487)
>       at
>org.apache.struts.taglib.tiles.InsertTag.doStartTag(InsertTag.java:445)
>
>
>thank you,
>-- a
>
>
>---------    tiles-def.xml      --------
>
>
><?xml version="1.0" encoding="UTF-8"?>
><!--
>
>-->
><!DOCTYPE tiles-definitions PUBLIC
>"-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"
>"http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd">
><tiles-definitions>
>     <definition name="mainlayout" page="/site/search/tiles/text_1.jsp">
>         <put name="content" value="/site/search/tiles/text.jsp"/>
>     </definition>
></tiles-definitions>
>
>--- end tiles-def.xml ------
>--- Struts-config.xml -----
>     <plug-in className="org.apache.struts.tiles.TilesPlugin" >
>         <set-property property="definitions-config"
>                     value="/WEB-INF/tiles-def.xml l" />
>         <set-property property="moduleAware" value="true" />
>         <set-property property="definitions-debug" value="1"/>
>         <set-property property="definitions-parser-validate"
>value="true" />
>   </plug-in>
>
>--- end struts config ------
>----     the jsp ----
>
>
><%@ taglib uri="/WEB-INF/tlds/tiles.tld" prefix="tiles" %>
>
>------ end jsp -------------------
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org