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

Interface is not visible when CXF does not have visiblility to domain classes.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.3
    • 2.1.4
    • Aegis Databinding
    • None

    Description

      When CXF is deployed as a bundle in OSGi and interfaces are used for the types Aegis tries to create a proxy using it's own class loader. Because the domain interfaces are not visible from that class loader an error occurs.

      org.apache.cxf.interceptor.Fault: Illegal argument. interface com.example.IDomainThing is not visible from class loader. Nested exception is java.lang.IllegalArgumentException: interface com.example.IDomainThing is not visible from class loader
      at org.apache.cxf.aegis.databinding.XMLStreamDataReader.read(XMLStreamDataReader.java:49)
      at org.apache.cxf.aegis.databinding.XMLStreamDataReader.read(XMLStreamDataReader.java:34)
      <Snipped>
      Caused by: org.apache.cxf.aegis.DatabindingException: Illegal argument. interface com.example.IDomainThing is not visible from class loader. Nested exception is java.lang.IllegalArgumentException: interface com.example.IDomainThing is not visible from class loader
      at org.apache.cxf.aegis.type.basic.BeanType.readObject(BeanType.java:170)
      at org.apache.cxf.aegis.type.basic.BeanType.readObject(BeanType.java:146)
      at org.apache.cxf.aegis.AegisXMLStreamDataReader.read(AegisXMLStreamDataReader.java:82)
      at org.apache.cxf.aegis.databinding.XMLStreamDataReader.read(XMLStreamDataReader.java:47)
      ... 19 more
      Caused by: java.lang.IllegalArgumentException: interface com.example.IDomainThing is not visible from class loader
      at java.lang.reflect.Proxy.getProxyClass(Proxy.java:353)
      at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581)
      at org.apache.cxf.aegis.type.basic.BeanType.readObject(BeanType.java:99)
      ... 22 more

      Attachments

        1. BeanType.java.diff
          0.8 kB
          Leo Bayer

        Activity

          People

            dkulp Daniel Kulp
            lfbayer Leo Bayer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: