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

Freeman Yue Fang commented on CXF-8784:
---------------------------------------

I believe this has been already fixed by
https://github.com/apache/cxf/commit/07de04bd9095c85bd95f5b1367425db8aefd12b3
Tracked by
CXF-7838

> InaccessibleObjectException from ReflectionUtil class on JDK 17
> ---------------------------------------------------------------
>
>                 Key: CXF-8784
>                 URL: https://issues.apache.org/jira/browse/CXF-8784
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 3.4.4, 3.5.4
>         Environment: JDK 17.
>            Reporter: Xilai Dai
>            Priority: Major
>
> {code}
> Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make 
> field private static volatile java.net.Authenticator 
> java.net.Authenticator.theAuthenticator accessible: module java.base does not 
> "opens java.net" to unnamed module @121f97fb
>     at java.lang.reflect.AccessibleObject.checkCanSetAccessible 
> (AccessibleObject.java:354)
>     at java.lang.reflect.AccessibleObject.checkCanSetAccessible 
> (AccessibleObject.java:297)
>     at java.lang.reflect.Field.checkCanSetAccessible (Field.java:178)
>     at java.lang.reflect.Field.setAccessible (Field.java:172)
>     at org.apache.cxf.common.util.ReflectionUtil$9.run 
> (ReflectionUtil.java:161)
>     at org.apache.cxf.common.util.ReflectionUtil$9.run 
> (ReflectionUtil.java:159)
>     at java.security.AccessController.doPrivileged (AccessController.java:318)
>     at org.apache.cxf.common.util.ReflectionUtil.setAccessible 
> (ReflectionUtil.java:159)
>     at org.apache.cxf.transport.http.CXFAuthenticator.addAuthenticator 
> (CXFAuthenticator.java:55)
>     at org.apache.cxf.transport.http.URLConnectionHTTPConduit.<init> 
> (URLConnectionHTTPConduit.java:70)
>     at org.apache.cxf.transport.http.HTTPTransportFactory.getConduit 
> (HTTPTransportFactory.java:258)
>     at org.apache.cxf.transport.http.HTTPTransportFactory.getConduit 
> (HTTPTransportFactory.java:238)
>     at org.apache.cxf.endpoint.AbstractConduitSelector.getSelectedConduit 
> (AbstractConduitSelector.java:103)
>     at org.apache.cxf.endpoint.UpfrontConduitSelector.prepare 
> (UpfrontConduitSelector.java:63)
>     at org.apache.cxf.jaxrs.client.ClientConfiguration.prepareConduitSelector 
> (ClientConfiguration.java:108)
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to