Uploaded image for project: 'HiveMind'
  1. HiveMind
  2. HIVEMIND-55

LoggingInterceptor fails if a a JDK proxy is next

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0
    • 1.0, 1.1
    • None
    • None

    Description

      If the LoggingInterceptor attempts to create an interceptor around another interceptor, and that interceptor creates a JDK proxy (rather than a Java class), then an exception is thrown:

      org.apache.hivemind.ApplicationRuntimeException: Unable to construct service doconline.Adder: Unable to lookup $Proxy0: $Proxy0
      at org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructNewServiceImplementation(AbstractServiceModelImpl.java:156)
      ......
      Caused by: org.apache.hivemind.ApplicationRuntimeException: Unable to lookup $Proxy0: $Proxy0
      at org.apache.hivemind.service.impl.CtClassSource.getCtClass(CtClassSource.java:60)
      at org.apache.hivemind.service.impl.ClassFabImpl.addField(ClassFabImpl.java:71)
      at org.apache.hivemind.service.impl.LoggingInterceptorFactory.createInfrastructure(LoggingInterceptorFactory.java:236)
      ......
      Caused by: javassist.NotFoundException: $Proxy0
      at javassist.ClassPoolTail.openClassfile(ClassPoolTail.java:300)
      at javassist.ClassPoolTail.checkClassName(ClassPoolTail.java:177)
      at javassist.ClassPool.checkClassName(ClassPool.java:709)
      at javassist.ClassPool.get0(ClassPool.java:572)
      at javassist.ClassPool.get(ClassPool.java:561)
      at org.apache.hivemind.service.impl.CtClassSource.getCtClass(CtClassSource.java:56)
      ... 48 more

      Attachments

        Activity

          People

            hlship Howard Lewis Ship
            hlship Howard Lewis Ship
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: