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
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:
>
>
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:
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
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:
>
>
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:
>
>
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
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");
>
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();
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:
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
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 =
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
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
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?
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
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,
17 matches
Mail list logo