Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-225

Calling invocationContext.proceed in Interceptors don't invoke the method of the instance with injected resources

XMLWordPrintable

      Using the numberguess example application, I've created a simple interceptor (LoggingInterceptor) and annotated the Game with the interceptorBinding @Logging. However, when the reset method of the Game is invoked (by the interceptor, with invocationContext.proceed()), the Game instance was not injected with the necessary resources, throwing a NullPointerException.

        1. beans.xml
          0.1 kB
        2. Game.java
          2 kB
        3. home.xhtml
          2 kB
        4. Logging.java
          0.4 kB
        5. LoggingInterceptor.java
          0.7 kB
        6. template.xhtml
          0.8 kB

            marius.bogoevici Marius Bogoevici (Inactive)
            fabiowg Fabio Wang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: