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

2018-06-14 Thread Arjuna Bandara
I have faced similar issue. problem is on Java 8. On Thu, Jun 14, 2018, 8:12 PM Doug Breaux wrote: > > > 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

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 Yasser Zamani
On 5/24/2018 6:43 PM, Doug Breaux wrote: > I'm not sure if I misunderstood the threading here, or just missed this test > case, but this one does seem to run the same on IBM Java 8: > > java TestForStruts2 > COPY ME 1: class java.util.LinkedHashMap$LinkedKeySet > COPY ME 2: public abstract int

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 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

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

2018-05-22 Thread Lukasz Lenart
You mean ? There is no tag. Did you try to use the latest Freemarker version? I have tested the tag with Oracle Java 8 and it works without issue. Look like incompatibility between IBM Java and Freemarker. 2018-05-22 20:24 GMT+02:00 bre...@us.ibm.com : > Struts 2.5.14.1, WebSphere 8.5.5.13, IBM

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