[ https://issues.apache.org/jira/browse/CXF-8401?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17260822#comment-17260822 ]
Andy McCright commented on CXF-8401: ------------------------------------ [~reta] This looks like the same issue we ran into with Open Liberty (see https://github.com/OpenLiberty/open-liberty/pull/14543 ) - our fix was to make the compareCustomStatus method public. If you'd like, I could do the same fix here. > "tried to access protected method" exception after updating Java 14 to 15 > ------------------------------------------------------------------------- > > Key: CXF-8401 > URL: https://issues.apache.org/jira/browse/CXF-8401 > Project: CXF > Issue Type: Bug > Components: JAX-RS, MicroProfile > Affects Versions: 3.4.1, 3.4.2 > Reporter: Flavio Donzé > Assignee: Andriy Redko > Priority: Major > > After updaten Java From Version 14 to 15 the following exception is thrown in > the client application: > java.lang.IllegalAccessError: class > org.apache.cxf.microprofile.client.MicroProfileClientProviderFactory$$Lambda$171/0x0000000800f595f8 > tried to access protected method 'int > org.apache.cxf.jaxrs.provider.ProviderFactory.compareCustomStatus(org.apache.cxf.jaxrs.model.ProviderInfo, > org.apache.cxf.jaxrs.model.ProviderInfo)' > (org.apache.cxf.microprofile.client.MicroProfileClientProviderFactory$$Lambda$171/0x0000000800f595f8 > is in unnamed module of loader > org.eclipse.osgi.internal.loader.EquinoxClassLoader @1bc49bc5; > org.apache.cxf.jaxrs.provider.ProviderFactory is in unnamed module of loader > org.eclipse.osgi.internal.loader.EquinoxClassLoader @50756c76) > at > org.apache.cxf.microprofile.client.ContractComparator.compare(ContractComparator.java:41) > at > org.apache.cxf.microprofile.client.ContractComparator.compare(ContractComparator.java:29) > at > java.base/java.util.TimSort.countRunAndMakeAscending(TimSort.java:355) > at java.base/java.util.TimSort.sort(TimSort.java:220) > at java.base/java.util.Arrays.sort(Arrays.java:1306) > at java.base/java.util.ArrayList.sort(ArrayList.java:1721) > at > org.apache.cxf.jaxrs.provider.ProviderFactory.doCustomSort(ProviderFactory.java:779) > at > org.apache.cxf.jaxrs.provider.ProviderFactory.sortReaders(ProviderFactory.java:735) > at > org.apache.cxf.jaxrs.provider.ProviderFactory.setProviderComparator(ProviderFactory.java:1477) > at > org.apache.cxf.jaxrs.AbstractJAXRSFactoryBean.setupFactory(AbstractJAXRSFactoryBean.java:330) > at > org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean.initClient(JAXRSClientFactoryBean.java:383) > at > org.apache.cxf.microprofile.client.MicroProfileClientFactoryBean.initClient(MicroProfileClientFactoryBean.java:99) > at > org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean.createWithValues(JAXRSClientFactoryBean.java:311) > at > org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean.create(JAXRSClientFactoryBean.java:264) > at > org.apache.cxf.microprofile.client.CxfTypeSafeClientBuilder.build(CxfTypeSafeClientBuilder.java:149) -- This message was sent by Atlassian Jira (v8.3.4#803005)