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

Details

    Description

      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.

      Attachments

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

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: