weblogic.utils.ErrorCollectionException: There are 5 nested errors: java.lang.IllegalArgumentException: Method "countedConstructor" in class "io.astefanutti.metrics.cdi.CountedInterceptor" is defined as lifecycle callback method in deployment descriptor file, but its return type must be void.

Oracle Community | 3246823 | 6 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Weblogic 12.2.1.1 and @AroundConstructor

    Oracle Community | 6 months ago | 3246823
    weblogic.utils.ErrorCollectionException: There are 5 nested errors: java.lang.IllegalArgumentException: Method "countedConstructor" in class "io.astefanutti.metrics.cdi.CountedInterceptor" is defined as lifecycle callback method in deployment descriptor file, but its return type must be void.

    Root Cause Analysis

    1. weblogic.utils.ErrorCollectionException

      There are 5 nested errors: java.lang.IllegalArgumentException: Method "countedConstructor" in class "io.astefanutti.metrics.cdi.CountedInterceptor" is defined as lifecycle callback method in deployment descriptor file, but its return type must be void.

      at weblogic.j2ee.dd.xml.validator.lifecyclecallback.BaseValidator.error()
    2. weblogic.j2ee.dd
      BaseValidator.error
      1. weblogic.j2ee.dd.xml.validator.lifecyclecallback.BaseValidator.error(BaseValidator.java:206)
      2. weblogic.j2ee.dd.xml.validator.lifecyclecallback.BaseValidator.error(BaseValidator.java:229)
      2 frames