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

simple:frontend cannot use jdk dynamic proxy as serviceBean

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.3
    • Fix Version/s: 2.1.4
    • Component/s: Simple Frontend
    • Labels:
      None
    • Environment:

      java version "1.6.0_11"
      Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
      Java HotSpot(TM) Client VM (build 11.0-b16, mixed mode, sharing)

      Description

      I have the following spring definition
      <simple:server id="ws_eventService" serviceClass="xxx.EventService" address="/EventService">
      <simple:serviceBean>
      <ref bean="eventService"/>
      </simple:serviceBean>
      <simple:dataBinding>
      <bean class="org.apache.cxf.aegis.databinding.AegisDatabinding" />
      </simple:dataBinding>
      </simple:server>

      Here, eventService is a is JDK dynamic proxy that is created by spring (in my case a hessian client proxy). It fails with NPE in AnnotationInterceptors.getAnnotationObject() because ClassHelper.getRealClass(a_JDK_proxy) return null.

      The proxy implements the xxx.EventService interface

        Attachments

          Activity

            People

            • Assignee:
              dkulp Daniel Kulp
              Reporter:
              jvassev Julian Vassev
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: