1 Reply Latest reply on Oct 19, 2015 1:15 PM by mbarkley

    CDI warnings

    hr.stoyanov

      Running Errai 3.2.0.FInal app in WF 9.0.1, getting a bunch of CDI/WELD/DeltaSpike related warnings. I  assume they are OK, still ... :

      ===============================================================================

       

      2015-10-19 15:26:55,322 INFO  [org.jboss.weld.Event] (MSC service thread 1-1) WELD-000411: Observer method [BackedAnnotatedMethod] public org.jboss.errai.cdi.server.CDIExtensionPoints.observeResources(@Observes ProcessAnnotatedType<Object>) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.

      2015-10-19 15:26:55,338 INFO  [org.jboss.weld.Event] (MSC service thread 1-1) WELD-000411: Observer method [BackedAnnotatedMethod] public org.jboss.errai.security.server.SecurityAnnotationExtension.addParameterLogger(@Observes ProcessAnnotatedType<Object>) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.

      2015-10-19 15:26:55,340 INFO  [org.jboss.weld.Event] (MSC service thread 1-1) WELD-000411: Observer method [BackedAnnotatedMethod] public org.jboss.errai.security.keycloak.extension.AuthenticationServiceWrapperExtension.processAuthenticationServiceTypes(@Observes ProcessAnnotatedType<Object>) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.

      2015-10-19 15:26:55,357 INFO  [org.jboss.errai.cdi.server.CDIExtensionPoints] (MSC service thread 1-1) starting errai cdi ...

      2015-10-19 15:26:55,665 INFO  [org.jboss.errai.cdi.server.CDIExtensionPoints] (MSC service thread 1-1) discovered errai service: [BackedAnnotatedType] public @Dependent @Service class org.jboss.errai.security.server.NonCachingUserServiceImpl

      2015-10-19 15:26:55,749 INFO  [org.jboss.errai.cdi.server.CDIExtensionPoints] (MSC service thread 1-1) discovered errai service: [BackedAnnotatedType] public @Service @SessionScoped class org.jboss.errai.security.keycloak.KeycloakAuthenticationService

      2015-10-19 15:26:55,772 WARN  [org.jboss.weld.Bootstrap] (weld-worker-1) WELD-001125: Illegal bean type java.util.Comparator<javax.enterprise.inject.spi.AnnotatedConstructor<? super T>> ignored on [EnhancedAnnotatedTypeImpl] private static  class org.apache.deltaspike.core.util.Annotateds$AnnotatedConstructorComparator

      2015-10-19 15:26:55,775 WARN  [org.jboss.weld.Bootstrap] (weld-worker-4) WELD-001125: Illegal bean type java.util.Comparator<javax.enterprise.inject.spi.AnnotatedCallable<? super T>> ignored on [EnhancedAnnotatedTypeImpl] private static  class org.apache.deltaspike.core.util.Annotateds$AnnotatedCallableComparator

      2015-10-19 15:26:55,779 WARN  [org.jboss.weld.Bootstrap] (weld-worker-3) WELD-001125: Illegal bean type java.util.Comparator<javax.enterprise.inject.spi.AnnotatedField<? super T>> ignored on [EnhancedAnnotatedTypeImpl] private static  class org.apache.deltaspike.core.util.Annotateds$AnnotatedFieldComparator

      2015-10-19 15:26:55,780 WARN  [org.jboss.weld.Bootstrap] (weld-worker-3) WELD-001125: Illegal bean type java.util.Comparator<javax.enterprise.inject.spi.AnnotatedMethod<? super T>> ignored on [EnhancedAnnotatedTypeImpl] private static  class org.apache.deltaspike.core.util.Annotateds$AnnotatedMethodComparator

        • 1. Re: CDI warnings
          mbarkley

          Hi Hristo,

           

          We might be able to get rid of the warning for the AuthenticationServiceWrapperExtension, as it only needs to observe classes implementing AuthenticationService. But the CDIExtensionPoints and SecurityAnnotationExtension extensions need to observe all beans since there are no bounds on what types can have the @Observes or @RestrictedAccess annotations.

           

          Cheers.