[ 
https://issues.apache.org/jira/browse/WW-4542?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14728965#comment-14728965
 ] 

Rin Saunders commented on WW-4542:
----------------------------------

Are we using the same versions?
                        <dependency>
                        <groupId>org.freemarker</groupId>
                        <artifactId>freemarker</artifactId>
                        <version>2.3.23</version>
                </dependency>
                <dependency>
                        <groupId>org.apache.struts</groupId>
                        <artifactId>struts2-core</artifactId>
                        <version>2.3.24</version>
                </dependency>
<dependency>
                        <groupId>org.apache.tiles</groupId>
                        <artifactId>tiles-api</artifactId>
                        <version>2.1.4</version>
                </dependency>
                <dependency>
                        <groupId>org.apache.tiles</groupId>
                        <artifactId>tiles-jsp</artifactId>
                        <version>2.1.4</version>
                </dependency>
                <dependency>
                        <groupId>org.apache.tiles</groupId>
                        <artifactId>tiles-servlet</artifactId>
                        <version>2.1.4</version>
                </dependency>
                <dependency>
                        <groupId>org.apache.tiles</groupId>
                        <artifactId>tiles-core</artifactId>
                        <version>2.1.4</version>
                </dependency>
<dependency>
                        <groupId>com.opensymphony</groupId>
                        <artifactId>xwork</artifactId>
                        <version>2.1.3</version>
                </dependency>
                <dependency>
                        <groupId>org.apache.struts</groupId>
                        <artifactId>struts2-json-plugin</artifactId>
                        <version>2.3.24</version>
                </dependency>
                <dependency>
                        <groupId>org.apache.struts</groupId>
                        <artifactId>struts2-sitemesh-plugin</artifactId>
                        <version>2.3.24</version>
                </dependency>
                <dependency>
                        <groupId>org.apache.struts</groupId>
                        <artifactId>struts-taglib</artifactId>
                        <version>1.3.10</version>
                </dependency>
                <dependency>
                        <groupId>org.apache.struts</groupId>
                        <artifactId>struts2-tiles-plugin</artifactId>
                        <version>2.3.24</version>
                </dependency>
                <dependency>
                        <groupId>org.apache.struts</groupId>
                        <artifactId>struts2-codebehind-plugin</artifactId>
                        <version>2.3.24</version>
                </dependency>
                <dependency>
                        <groupId>org.apache.struts</groupId>
                        <artifactId>struts2-junit-plugin</artifactId>
                        <version>2.3.24</version>
                </dependency>
                <dependency>
                        <groupId>org.apache.struts</groupId>
                        <artifactId>struts2-dojo-plugin</artifactId>
                        <version>2.3.24</version>
                </dependency>
                <dependency>
                        <groupId>org.apache.struts</groupId>
                        <artifactId>struts2-core</artifactId>
                        <version>2.3.24</version>
                </dependency>
                <dependency>
                        <groupId>org.apache.struts.xwork</groupId>
                        <artifactId>xwork-core</artifactId>
                        <version>2.3.24</version>
                </dependency>


> FreemarkerManager class throws null pointer exception 
> ------------------------------------------------------
>
>                 Key: WW-4542
>                 URL: https://issues.apache.org/jira/browse/WW-4542
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Tags
>    Affects Versions: 2.3.24
>         Environment: Win7
> WebLogic 12.1.3
> JDK 1.7
>            Reporter: Rin Saunders
>            Priority: Minor
>             Fix For: 2.3.x
>
>         Attachments: jetty.png, screenshot.png, wls10.png, wls12.png
>
>
> Am getting a null pointer error in the FreemarkerManager class. It occurs in 
> the setContainer method. The code below seems to assume that getInstanceNames 
> returns an empty set if there are no matches. In fact, it returns a null, 
> which is legit according to the XWork doc. This occurs in Freemarker 2.3.23 
> under WebLogic 12.1.3.
> {code:java}
>     Map<String, TagLibrary> oldMap = new HashMap<String, TagLibrary>();
>     Set<String> oldPrefixes = container.getInstanceNames(TagLibrary.class);
>     for (String prefix : oldPrefixes) {
>         oldMap.put(prefix, container.getInstance(TagLibrary.class, prefix));
> {code}
> Not sure if this affects the presentation of Struts2 views. Is there a 
> workaround or fix?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to