Re: java 11 error

2020-12-03 Thread James Chaplin
Hi. This discussion thread has some interesting information and points raised (thanks to Greg, Lukasz and Yasser). :) If the old logic discussed in the thread is replaced, it might be a good idea to try out some older and newer Tomcat versions (e.g. 7.x, 8.x, 9.x), to see if things still beha

Re: java 11 error

2020-12-02 Thread Lukasz Lenart
śr., 2 gru 2020 o 10:59 Greg Huber napisał(a): > > Seems we might be able to replace > > try { > clearMap(ResourceBundle.class, null, "cacheList"); > } catch (NoSuchFieldException e) { > // happens in IBM JVM, that has a diff

Re: java 11 error

2020-12-02 Thread Greg Huber
Seems we might be able to replace  try {     clearMap(ResourceBundle.class, null, "cacheList");     } catch (NoSuchFieldException e) {     // happens in IBM JVM, that has a different ResourceBundle impl     // it has a

Re: java 11 error

2020-12-02 Thread Greg Huber
Sorry, retesting, its not tomcat, as it seems to work if I comment out the clearTomcatCache() method, its the  clearMap in reloadBundles() reloadBundles(Map context) { .. try {     clearMap(ResourceBundle.class, null, "cacheList");     } catch (NoSuchFieldEx

Re: java 11 error

2020-12-02 Thread Greg Huber
I tried removing the code, and the bundles don't reload, so its not crusty code.  It is cumbersome to reload the context each time ApplicationResources.properties changes. Maybe I will ask this on the tomcat list as there might be an alternative way nowadays. On 01/12/2020 14:48, Lukasz Lena

Re: java 11 error

2020-12-01 Thread Lukasz Lenart
wt., 1 gru 2020 o 10:49 Greg Huber napisał(a): > > yes, ...dev box testing > > Although warning is only issued once. So either we can ignore the issue for now or remove that code - it won't work either as this requires to build and copy new classes/files into Tomcat's web folder. There are some

Re: java 11 error

2020-12-01 Thread Greg Huber
yes, ...dev box testing Although warning is only issued once. On 01/12/2020 09:22, Lukasz Lenart wrote: but this happens only in devMode? or when "struts.i18n.reload" is set to true? - To unsubscribe, e-mail: dev-unsubscr...@

Re: java 11 error

2020-12-01 Thread Lukasz Lenart
wt., 1 gru 2020 o 09:02 Greg Huber napisał(a): > > AbstractLocalizedTextProvider > > > clearMap(ResourceBundle.class, null, "cacheList"); > > private void clearMap(Class cl, Object obj, String name) > throws NoSuchFieldException, IllegalAccessException, > NoSuchMethodException, Invoca

Re: java 11 error

2020-12-01 Thread Greg Huber
AbstractLocalizedTextProvider clearMap(ResourceBundle.class, null, "cacheList"); private void clearMap(Class cl, Object obj, String name)     throws NoSuchFieldException, IllegalAccessException, NoSuchMethodException, InvocationTargetException {     Field field = cl.getDeclaredFi

Re: java 11 error

2020-11-30 Thread Yasser Zamani
I remember we fixed similar issues but against ognl (https://issues.apache.org/jira/browse/WW-5031) I think this is a new one about `clearMap(ResourceBundle.class, null, "cacheList");` inside "AbstractLocalizedTextProvider" (as error message also mentions). Maybe it's a good idea to set `--illega

Re: java 11 error

2020-11-30 Thread Greg Huber
I had used https://repository.apache.org/content/groups/snapshots/ 2.6-SNAPSHOT in my ~.m2/repository/org/apache/struts/struts2-core/2.6-SNAPSHOT there are two jars both with the same internal date 11 July struts2-core-2.6-20201128.103017-363.jar struts2-core-2.6-SNAPSHOT.jar On 30/11/2

Re: java 11 error

2020-11-30 Thread Lukasz Lenart
pon., 30 lis 2020 o 14:33 Greg Huber napisał(a): > > Seems still to be there, > > https://repository.apache.org/content/groups/snapshots/ > > the date of the jar is July 2020. > > Compiled with azul 8 and running azul 11 > > WARNING: An illegal reflective access operation has occurred > WARNING: I

Re: java 11 error

2020-11-30 Thread Lukasz Lenart
pon., 30 lis 2020 o 14:30 Greg Huber napisał(a): > > Seems still to be there, > > https://repository.apache.org/content/groups/snapshots/ > > the date of the jar is July 2020. Hm... November 28 https://repository.apache.org/content/groups/snapshots/org/apache/struts/struts2-core/2.6-SNAPSHOT/ R

Re: java 11 error

2020-11-30 Thread Greg Huber
Seems still to be there, https://repository.apache.org/content/groups/snapshots/ the date of the jar is July 2020. Compiled with azul 8 and running azul 11 WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by com.opensymphony.xwork2.util.AbstractL

Re: java 11 error

2020-11-30 Thread Lukasz Lenart
pon., 30 lis 2020 o 09:26 Greg Huber napisał(a): > > Not that I use java 11, but I get this error when testing: > > WARNING: An illegal reflective access operation has occurred > WARNING: Illegal reflective access by > com.opensymphony.xwork2.util.AbstractLocalizedTextProvider > (file:struts2-core

java 11 error

2020-11-30 Thread Greg Huber
Not that I use java 11, but I get this error when testing: WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by com.opensymphony.xwork2.util.AbstractLocalizedTextProvider (file:struts2-core-2.5.26.jar) to field java.util.ResourceBundle.cacheList WAR