struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yasser Zamani (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-5031) OGNL: An illegal reflective access operation has occurred
Date Thu, 23 May 2019 09:40:00 GMT

    [ https://issues.apache.org/jira/browse/WW-5031?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16846578#comment-16846578
] 

Yasser Zamani commented on WW-5031:
-----------------------------------

{{--illegal-access=deny}} is a great idea to find in which line OGNL tries an illegal access
then fixing it (y) Could you please set Struts {{devMode}} to true and increase log4j log
level to {{DEBUG}} and see if any error starts to be thrown? thanks in advance!

P.S. Same report at [User mail list|https://lists.apache.org/thread.html/f9bdcf39b3014363f71f1ecff565931e857f946f8627589e95a8a693@%3Cuser.struts.apache.org%3E]

> OGNL: An illegal reflective access operation has occurred
> ---------------------------------------------------------
>
>                 Key: WW-5031
>                 URL: https://issues.apache.org/jira/browse/WW-5031
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.5.20
>         Environment: Java 11 / Linux / test environment on eclipse / Tomcat 8.5
>            Reporter: Markus Fischer
>            Priority: Minor
>             Fix For: 2.5.21, 2.6
>
>
> Running Struts on Java 11 gives a new warning about illegal reflection, not present on
Java 8:
> WARNING: An illegal reflective access operation has occurred
>  WARNING: Illegal reflective access by ognl.OgnlRuntime ([file:/.../workspace/.../.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/.../WEB-INF/lib/ognl-3.1.21.jar|file:///.../workspace/SC/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/.../WEB-INF/lib/ognl-3.1.21.jar])
to method java.util.HashMap$Node.getKey()
>  WARNING: Please consider reporting this to the maintainers of ognl.OgnlRuntime
>  WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective
access operations
>  WARNING: All illegal access operations will be denied in a future release
> The warning appears after using the following tag in a JSP (name of properties changed):
> <s:select name="item" key="item.key" list="items" />
> The corresponding Action contains:
> private Map<Long, String> items = new LinkedHashMap<>();
>  
>  
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message