You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Andriy Redko (Jira)" <ji...@apache.org> on 2022/11/04 01:05:00 UTC

[jira] [Commented] (CXF-8784) InaccessibleObjectException from ReflectionUtil class on JDK 17

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

Andriy Redko commented on CXF-8784:
-----------------------------------

[~xldai] it looks like you are reporting bug against Apache CXF 3.1.x release line, correct? The JDK17 is officially supported by 3.5.x release line

> 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)