Re: s:fielderror not working in Java 8, WebSphere

2018-06-14 Thread Doug Breaux
On 2018/05/22 18:24:34, bre...@us.ibm.com wrote: > Struts 2.5.14.1, WebSphere 8.5.5.13, IBM Java 8 (level 1.8.0_161) on AIX. > > We have a JSP with a plain element that works without issue > when we switch WebSphere back to Java 7, but in Java 8 produces the following > error: > > 2018-05

Re: s:fielderror not working in Java 8, WebSphere

2018-05-29 Thread Doug Breaux
On 2018/05/24 14:42:55, Yasser Zamani wrote: > > But freemarker claims "Java method "AbstractCollection.size()" threw an > exception when invoked on LinkedHashMap$LinkedKeySet object "[]"; see > cause exception in the Java stack trace" and Java stack trace in JSP > exception says "Caused by: java

Re: s:fielderror not working in Java 8, WebSphere

2018-05-24 Thread Doug Breaux
On 2018/05/24 06:42:48, Yasser Zamani wrote: > > It seems IBM JDK 8 has different behavior than Oracle or OpenJDK 8. Your > exception claims that JDK is not able to call abstract method size on > LinkedKeySet but here, Oracle and OpenJDK 8 are able to run: > > LinkedHashMap lhm = new Li

Re: s:fielderror not working in Java 8, WebSphere

2018-05-24 Thread Doug Breaux
On 2018/05/24 06:42:48, Yasser Zamani wrote: > > It seems IBM JDK 8 has different behavior than Oracle or OpenJDK 8. Your > exception claims that JDK is not able to call abstract method size on > LinkedKeySet but here, Oracle and OpenJDK 8 are able to run: > > LinkedHashMap lhm = new Li

Re: s:fielderror not working in Java 8, WebSphere

2018-05-23 Thread Doug Breaux
On 2018/05/23 19:30:40, Yasser Zamani wrote: > > Thanks. Sorry, for last one, could you check: > > java.util.Map lhm = new java.util.LinkedHashMap<>(); > Class c = lhm.getClass(); > java.lang.reflect.Method m = c.getMethod("keySet"); > Object ks = m.invoke(lhm)

Re: s:fielderror not working in Java 8, WebSphere

2018-05-23 Thread Doug Breaux
On 2018/05/23 18:38:19, Yasser Zamani wrote: > then reply back COPY MEs values please. Here I get: > > COPY ME 1: public abstract int java.util.Set.size() > COPY ME 2: 0 Looks the same: java TestForStruts COPY ME 1: public abstract int java.util.Set.size() COPY ME 2: 0 -

Re: s:fielderror not working in Java 8, WebSphere

2018-05-23 Thread Doug Breaux
On 2018/05/23 18:11:34, Yasser Zamani wrote: > Thanks. Could you also check if your IBM JDK 8 is able to run this: > > java.util.Map> lhm = new > java.util.LinkedHashMap<>(); > Class c = lhm.getClass(); > Method m = c.getMethod("keySet"); > Object ks = m.invoke

Re: s:fielderror not working in Java 8, WebSphere

2018-05-23 Thread Doug Breaux
On 2018/05/23 15:38:51, Yasser Zamani wrote: > > Could you check with latest version of IBM JDK 8? And are you maybe able > to check also with Oracle and OpenJDK 8? This is the latest IBM JDK 8. Or at least the latest that works with our version WebSphere, but it's very recent. The build date

Re: s:fielderror not working in Java 8, WebSphere

2018-05-23 Thread Doug Breaux
On 2018/05/23 06:07:05, Lukasz Lenart wrote: > You mean ? There is no tag. Did you > try to use the latest Freemarker version? Yes, sorry. I did not try the latest Freemarker, I'm using what is packaged with Struts (min-lib.zip). Which, even at the very latest 2.5.16, is apparently 2.3.2

s:fielderror not working in Java 8, WebSphere

2018-05-22 Thread breaux
Struts 2.5.14.1, WebSphere 8.5.5.13, IBM Java 8 (level 1.8.0_161) on AIX. We have a JSP with a plain element that works without issue when we switch WebSphere back to Java 7, but in Java 8 produces the following error: 2018-05-22 12:43:24,384 ERROR [freemarker.runtime]: error - Error executing