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 | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Weblogic 12.2.1.1 and @AroundConstructor

    Oracle Community | 8 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