[ 
https://issues.apache.org/struts/browse/TILES-335?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45037#action_45037
 ] 

careprad commented on TILES-335:
--------------------------------

it is a slip of pen,the version is struts2.0.14-the latest version,this problem 
is awful,and is really exists!please take attention to it.
the ref link see:https://issues.apache.org/struts/browse/WW-2897

> struts2 + tiles +  jdk 1.4, tiles do not work 
> ----------------------------------------------
>
>                 Key: TILES-335
>                 URL: https://issues.apache.org/struts/browse/TILES-335
>             Project: Tiles
>          Issue Type: Bug
>    Affects Versions: 2.0.4
>         Environment: jdk1.4.2, websphere 5.1, struts2.0.4, tiles2.0.4
>            Reporter: lichunlei
>
> Hello,
> I have to use struts2 + tiles in jdk1.4.2.
> But tiles can't work.
> struts2-tiles-plugin and tiles jars were transfered for jdk1.4 by using 
> RetroTranslator.
> Below is my exception:
> [11/28/08 14:45:40:546 CST] 4c844c84 WebGroup      E SRVE0026E: [Servlet
> Error]-[]: java.lang.NullPointerException
>       at java.lang.Throwable.<init>(Throwable.java)
>       at java.lang.Throwable.<init>(Throwable.java)
>       at
> java.lang.NullPointerException.<init>(NullPointerException.java:60)
>       at
> org.apache.struts2.views.tiles.TilesResult.doExecute(TilesResult.java)
>       at
> org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSuppor
> t.java:178)
>       at
> com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionI
> nvocation.java:348)
>       at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati
> on.java:253)
>       at
> com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(D
> efaultWorkflowInterceptor.java:221)
> Below is org.apache.struts2.views.tiles.TilesResult.doExecute java code:
>     public void doExecute(String location, ActionInvocation invocation) 
> throws Exception {
>         setLocation(location);
>         ServletContext servletContext =
> ServletActionContext.getServletContext();
>         TilesContainer container = TilesAccess.getContainer(servletContext);
>         HttpServletRequest request = ServletActionContext.getRequest();
>         HttpServletResponse response = ServletActionContext.getResponse();
>         container.render(location, request, response);
>     }
> I debugged and fund that "container" is null, a exception will be thrown when 
> launch this code: 
> container.render(location, request, response);
> why container is null?
> I found that "org.apache.struts2.tiles.StrutsTilesListener" is not run when 
> web application start!
> My application can run smoothly in jdk1.5, but tiles can't work in jdk1.4.2

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to