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

2018-05-23 Thread Yasser Zamani
On 5/22/2018 10:54 PM, breaux@ wrote: > 2018-05-22 12:43:24,384 ERROR [freemarker.runtime]: error - Error executing > FreeMarker template > FreeMarker template error: > Java method "AbstractCollection.size()" threw an exception when invoked on > LinkedHashMap$LinkedKeySet object "[]"; see cause

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 Yasser Zamani
On 5/23/2018 11:29 PM, Doug Breaux wrote: > Looks the same: > > java TestForStruts > COPY ME 1: public abstract int java.util.Set.size() > COPY ME 2: 0 Thanks. Sorry, for last one, could you check: java.util.Map lhm = new java.util.LinkedHashMap<>(); Class c = lhm.getClass();

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 Yasser Zamani
Sorry. Could you please check this updated one which is OK here: public static void main(String[] args) throws Exception { java.util.Map lhm = new java.util.LinkedHashMap<>(); Class c = lhm.getClass(); java.lang.reflect.Method m = c.getMethod("keySet"); Object k

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 Yasser Zamani
On 5/23/2018 8:56 PM, Doug Breaux wrote: > 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 is 20180214. And this > WebSphere cannot use Oracle or OpenJDK. Thanks. Could you also check if your IBM JDK 8 is able t

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 Yasser Zamani
On 5/23/2018 5:38 PM, Doug Breaux wrote: > Quite possibly. Hoping somebody here will be able to confirm or give some > additional hints. Could you check with latest version of IBM JDK 8? And are you maybe able to check also with Oracle and OpenJDK 8?

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