[ 
https://issues.apache.org/jira/browse/CXF-8183?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Peter Schulz updated CXF-8183:
------------------------------
    Description: 
We use CXF for SOAP with {{cxf-rt-transports-http-hc-3.3.4.jar}}  (Async HTTP) 
and do get the following warning: 
{code:none}
WARNING: Illegal reflective access by 
org.apache.cxf.common.util.ReflectionUtil$11 
(file:/Users/peterschulz/.m2/repository/org/apache/cxf/cxf-core/3.3.4/cxf-core-3.3.4.jar)
 to field java.util.concurrent.ThreadPoolExecutor.mainLock
WARNING: Please consider reporting this to the maintainers of 
org.apache.cxf.common.util.ReflectionUtil$11
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{code}
 
{{org.apache.cxf.workqueue.AutomaticWorkQueueImpl}} line 206 and/or 439 
{code:java}
Field f = ThreadPoolExecutor.class.getDeclaredField("mainLock");
ReflectionUtil.setAccessible(f);
l = (ReentrantLock)f.get(executor);

/*...*/

ReflectionUtil.setAccessible(addWorkerMethod).invoke(executor, 
addWorkerArgs);{code}

  was:
We use CXF for SOAP with {{cxf-rt-transports-http-hc-3.3.4.jar}}  (Async HTTP) 
and do get the following warning: 
{code}
Unable to find source-code formatter for language: text. Available languages 
are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, 
groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, 
php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, 
yamlUnable to find source-code formatter for language: text. Available 
languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, 
erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, 
objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, 
xml, yamlWARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by 
org.apache.cxf.common.util.ReflectionUtil$11 
(file:/Users/peterschulz/.m2/repository/org/apache/cxf/cxf-core/3.3.4/cxf-core-3.3.4.jar)
 to field java.util.concurrent.ThreadPoolExecutor.mainLock
WARNING: Please consider reporting this to the maintainers of 
org.apache.cxf.common.util.ReflectionUtil$11
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{code}
 

{{org.apache.cxf.workqueue.AutomaticWorkQueueImpl}} line 206 and/or 439 
{code:java}
Field f = ThreadPoolExecutor.class.getDeclaredField("mainLock");
ReflectionUtil.setAccessible(f);
l = (ReentrantLock)f.get(executor);

/*...*/

ReflectionUtil.setAccessible(addWorkerMethod).invoke(executor, 
addWorkerArgs);{code}


> JDK 9+ Illegal reflective access caused in AutomaticWorkQueueImpl
> -----------------------------------------------------------------
>
>                 Key: CXF-8183
>                 URL: https://issues.apache.org/jira/browse/CXF-8183
>             Project: CXF
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 3.3.4
>         Environment: OpenJDK 11 inside docker container 
> {{fabric8/java-centos-openjdk11-jre}}
>            Reporter: Peter Schulz
>            Priority: Major
>
> We use CXF for SOAP with {{cxf-rt-transports-http-hc-3.3.4.jar}}  (Async 
> HTTP) and do get the following warning: 
> {code:none}
> WARNING: Illegal reflective access by 
> org.apache.cxf.common.util.ReflectionUtil$11 
> (file:/Users/peterschulz/.m2/repository/org/apache/cxf/cxf-core/3.3.4/cxf-core-3.3.4.jar)
>  to field java.util.concurrent.ThreadPoolExecutor.mainLock
> WARNING: Please consider reporting this to the maintainers of 
> org.apache.cxf.common.util.ReflectionUtil$11
> 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{code}
>  
> {{org.apache.cxf.workqueue.AutomaticWorkQueueImpl}} line 206 and/or 439 
> {code:java}
> Field f = ThreadPoolExecutor.class.getDeclaredField("mainLock");
> ReflectionUtil.setAccessible(f);
> l = (ReentrantLock)f.get(executor);
> /*...*/
> ReflectionUtil.setAccessible(addWorkerMethod).invoke(executor, 
> addWorkerArgs);{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to