You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by "Mark Struberg (JIRA)" <ji...@apache.org> on 2010/03/16 17:44:27 UTC

[jira] Created: (OWB-327) annotating an Interceptor with @ApplictionScoped leads to OutOfMemory

annotating an Interceptor with @ApplictionScoped leads to OutOfMemory
---------------------------------------------------------------------

                 Key: OWB-327
                 URL: https://issues.apache.org/jira/browse/OWB-327
             Project: OpenWebBeans
          Issue Type: Bug
    Affects Versions: M4
            Reporter: Mark Struberg
            Assignee: Gurkan Erdogdu
            Priority: Critical
             Fix For: 1.0.0


If you write an Interceptor and manually annotate it @ApplicationScoped then the memory will get used up until a OOME.

Please note that an Interceptor is per definition @Dependent scoped as of section 6.4.1. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Re: [jira] Created: (OWB-327) annotating an Interceptor with @ApplictionScoped leads to OutOfMemory

Posted by Gurkan Erdogdu <gu...@yahoo.com>.
>>>think we should drop the scope and log a warning, wdyt?
Yea, good idea!




________________________________
From: Mark Struberg <st...@yahoo.de>
To: dev@openwebbeans.apache.org
Sent: Tue, March 16, 2010 8:22:54 PM
Subject: Re: [jira] Created: (OWB-327) annotating an Interceptor with  @ApplictionScoped leads to OutOfMemory

Yes, I've now also checked with jboss folks and there seems to be no further restriction other than "it's not a good idea" ;)

I think we should drop the scope and log a warning, wdyt?

To consume up memory is at least not a good idea ;)

LieGrue,
strub

--- Gurkan Erdogdu <cg...@gmail.com> schrieb am Di, 16.3.2010:

> Von: Gurkan Erdogdu <cg...@gmail.com>
> Betreff: Re: [jira] Created: (OWB-327) annotating an Interceptor with  @ApplictionScoped leads to OutOfMemory
> An: dev@openwebbeans.apache.org
> Datum: Dienstag, 16. März, 2010 19:14 Uhr
> >>>Please note that an
> Interceptor is per definition @Dependent scoped as of
> section 6.4.1.
> As you said, you must not define interceptors as
> ApplicationScoped otherwise
> behaviour is undefined.
> 
> Thanks;
> 
> --Gurkan
> 
> 2010/3/16 Mark Struberg (JIRA) <ji...@apache.org>
> 
> > annotating an Interceptor with @ApplictionScoped leads
> to OutOfMemory
> >
> ---------------------------------------------------------------------
> >
> >             
>    Key: OWB-327
> >             
>    URL: https://issues.apache.org/jira/browse/OWB-327
> >         
>    Project: OpenWebBeans
> >          Issue Type: Bug
> >    Affects Versions: M4
> >            Reporter:
> Mark Struberg
> >            Assignee:
> Gurkan Erdogdu
> >            Priority:
> Critical
> >         
>    Fix For: 1.0.0
> >
> >
> > If you write an Interceptor and manually annotate it
> @ApplicationScoped
> > then the memory will get used up until a OOME.
> >
> > Please note that an Interceptor is per definition
> @Dependent scoped as of
> > section 6.4.1.
> >
> > --
> > This message is automatically generated by JIRA.
> > -
> > You can reply to this email to add a comment to the
> issue online.
> >
> >
> 
> 
> -- 
> Gurkan Erdogdu
> http://gurkanerdogdu.blogspot.com
> 

__________________________________________________
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. 
http://mail.yahoo.com



      ___________________________________________________________________
Yahoo! Türkiye açıldı!  http://yahoo.com.tr
İnternet üzerindeki en iyi içeriği Yahoo! Türkiye sizlere sunuyor!

Re: [jira] Created: (OWB-327) annotating an Interceptor with @ApplictionScoped leads to OutOfMemory

Posted by Mark Struberg <st...@yahoo.de>.
Yes, I've now also checked with jboss folks and there seems to be no further restriction other than "it's not a good idea" ;)

I think we should drop the scope and log a warning, wdyt?

To consume up memory is at least not a good idea ;)

LieGrue,
strub

--- Gurkan Erdogdu <cg...@gmail.com> schrieb am Di, 16.3.2010:

> Von: Gurkan Erdogdu <cg...@gmail.com>
> Betreff: Re: [jira] Created: (OWB-327) annotating an Interceptor with  @ApplictionScoped leads to OutOfMemory
> An: dev@openwebbeans.apache.org
> Datum: Dienstag, 16. März, 2010 19:14 Uhr
> >>>Please note that an
> Interceptor is per definition @Dependent scoped as of
> section 6.4.1.
> As you said, you must not define interceptors as
> ApplicationScoped otherwise
> behaviour is undefined.
> 
> Thanks;
> 
> --Gurkan
> 
> 2010/3/16 Mark Struberg (JIRA) <ji...@apache.org>
> 
> > annotating an Interceptor with @ApplictionScoped leads
> to OutOfMemory
> >
> ---------------------------------------------------------------------
> >
> >             
>    Key: OWB-327
> >             
>    URL: https://issues.apache.org/jira/browse/OWB-327
> >         
>    Project: OpenWebBeans
> >          Issue Type: Bug
> >    Affects Versions: M4
> >            Reporter:
> Mark Struberg
> >            Assignee:
> Gurkan Erdogdu
> >            Priority:
> Critical
> >         
>    Fix For: 1.0.0
> >
> >
> > If you write an Interceptor and manually annotate it
> @ApplicationScoped
> > then the memory will get used up until a OOME.
> >
> > Please note that an Interceptor is per definition
> @Dependent scoped as of
> > section 6.4.1.
> >
> > --
> > This message is automatically generated by JIRA.
> > -
> > You can reply to this email to add a comment to the
> issue online.
> >
> >
> 
> 
> -- 
> Gurkan Erdogdu
> http://gurkanerdogdu.blogspot.com
> 

__________________________________________________
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. 
http://mail.yahoo.com 

Re: [jira] Created: (OWB-327) annotating an Interceptor with @ApplictionScoped leads to OutOfMemory

Posted by Gurkan Erdogdu <cg...@gmail.com>.
>>>Please note that an Interceptor is per definition @Dependent scoped as of
section 6.4.1.
As you said, you must not define interceptors as ApplicationScoped otherwise
behaviour is undefined.

Thanks;

--Gurkan

2010/3/16 Mark Struberg (JIRA) <ji...@apache.org>

> annotating an Interceptor with @ApplictionScoped leads to OutOfMemory
> ---------------------------------------------------------------------
>
>                 Key: OWB-327
>                 URL: https://issues.apache.org/jira/browse/OWB-327
>             Project: OpenWebBeans
>          Issue Type: Bug
>    Affects Versions: M4
>            Reporter: Mark Struberg
>            Assignee: Gurkan Erdogdu
>            Priority: Critical
>             Fix For: 1.0.0
>
>
> If you write an Interceptor and manually annotate it @ApplicationScoped
> then the memory will get used up until a OOME.
>
> Please note that an Interceptor is per definition @Dependent scoped as of
> section 6.4.1.
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>


-- 
Gurkan Erdogdu
http://gurkanerdogdu.blogspot.com

[jira] Closed: (OWB-327) annotating an Interceptor with @ApplictionScoped leads to OutOfMemory

Posted by "Gurkan Erdogdu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OWB-327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gurkan Erdogdu closed OWB-327.
------------------------------

    Resolution: Fixed

> annotating an Interceptor with @ApplictionScoped leads to OutOfMemory
> ---------------------------------------------------------------------
>
>                 Key: OWB-327
>                 URL: https://issues.apache.org/jira/browse/OWB-327
>             Project: OpenWebBeans
>          Issue Type: Bug
>    Affects Versions: M4
>            Reporter: Mark Struberg
>            Assignee: Gurkan Erdogdu
>            Priority: Critical
>             Fix For: 1.0.0
>
>
> If you write an Interceptor and manually annotate it @ApplicationScoped then the memory will get used up until a OOME.
> Please note that an Interceptor is per definition @Dependent scoped as of section 6.4.1. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (OWB-327) annotating an Interceptor with @ApplictionScoped leads to OutOfMemory

Posted by "Mark Struberg (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OWB-327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12846085#action_12846085 ] 

Mark Struberg commented on OWB-327:
-----------------------------------

spec section 2.4.1 states that "If an interceptor or decorator has any scope other than @Dependent, non-portable behaviour results."

We should drop any other scope than @Dependent and log a warning in such a case.

> annotating an Interceptor with @ApplictionScoped leads to OutOfMemory
> ---------------------------------------------------------------------
>
>                 Key: OWB-327
>                 URL: https://issues.apache.org/jira/browse/OWB-327
>             Project: OpenWebBeans
>          Issue Type: Bug
>    Affects Versions: M4
>            Reporter: Mark Struberg
>            Assignee: Gurkan Erdogdu
>            Priority: Critical
>             Fix For: 1.0.0
>
>
> If you write an Interceptor and manually annotate it @ApplicationScoped then the memory will get used up until a OOME.
> Please note that an Interceptor is per definition @Dependent scoped as of section 6.4.1. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.