Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-8401

"tried to access protected method" exception after updating Java 14 to 15

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.4.1, 3.4.2
    • Fix Version/s: 3.4.3, 3.5.0
    • Component/s: JAX-RS, MicroProfile
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      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)

        Attachments

          Activity

            People

            • Assignee:
              reta Andriy Redko
              Reporter:
              flavio.donze Flavio Donzé

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment