You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "Stefan Strobl (JIRA)" <ji...@apache.org> on 2013/05/08 22:49:17 UTC

[jira] [Commented] (DELTASPIKE-356) MessageContextProducer causes a ton of log output on each request

    [ https://issues.apache.org/jira/browse/DELTASPIKE-356?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13652339#comment-13652339 ] 

Stefan Strobl commented on DELTASPIKE-356:
------------------------------------------

tested with locally built master on our project -> log output ok
                
> MessageContextProducer causes a ton of log output on each request
> -----------------------------------------------------------------
>
>                 Key: DELTASPIKE-356
>                 URL: https://issues.apache.org/jira/browse/DELTASPIKE-356
>             Project: DeltaSpike
>          Issue Type: Bug
>          Components: I18n-Module
>    Affects Versions: 0.3-incubating
>            Reporter: Stefan Strobl
>            Assignee: Mark Struberg
>             Fix For: 0.4-incubating
>
>
> {noformat}
> 2013-04-19 12:00:17,102 [http-bio-8080-exec-5]: local 4F6067CAAC93376AC5A451C98CAF289D WARN  provider.BeanProvider - BeanProvider shall not be used to create @Dependent scoped beans. Bean: MessageContext, Name:null, WebBeans Type:PRODUCERMETHOD, API Types:[org.apache.deltaspike.core.api.message.MessageContext,java.lang.Object], Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default]
> {noformat}
> in our project with a couple of request scoped beans that have messages injected, this log is produced once per injection point per request (which equals to quite a bit of spam). The same log is also visible when running the Deltaspike tests.
> After some code reading it seems to me that the entry is caused by the following method:
> {{org.apache.deltaspike.core.impl.message.MessageContextProducer#createDefaultMessageContext}}
> and might only appear when ProjectStage is set to Development or UnitTest
> see:
> {{org.apache.deltaspike.core.api.provider.BeanProvider#logWarningIfDependent}}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira