You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Jarek Gawor (JIRA)" <ji...@apache.org> on 2010/09/01 23:28:53 UTC

[jira] Updated: (OPENEJB-1349) No interceptor of type org.apache.openejb.cdi.CdiInterceptor

     [ https://issues.apache.org/jira/browse/OPENEJB-1349?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jarek Gawor updated OPENEJB-1349:
---------------------------------

    Attachment: OPENEJB-1349.patch

Here's a patch for this issue. But I'm a little bit concerned about CdiInterceptor using IntraVmArtifact for serialization as it looks to me like IntraVmArtifact can lead to a memory leak. For example, in readResolve() we should be setting list.set(null) once we get the resource. Otherwise, we will be keeping it forever.


> No interceptor of type org.apache.openejb.cdi.CdiInterceptor
> ------------------------------------------------------------
>
>                 Key: OPENEJB-1349
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1349
>             Project: OpenEJB
>          Issue Type: Bug
>          Components: deployment
>    Affects Versions: (trunk/openejb3)
>            Reporter: Jarek Gawor
>         Attachments: OPENEJB-1349.patch
>
>
> I'm seeing the following exception in the latest code:
> java.lang.IllegalArgumentException: No interceptor of type org.apache.openejb.cdi.CdiInterceptor
> 	at org.apache.openejb.core.interceptor.InterceptorStack.<init>(InterceptorStack.java:60)
> 	at org.apache.openejb.core.stateful.StatefulContainer$StatefulCacheListener.afterLoad(StatefulContainer.java:1048)
> 	at org.apache.openejb.core.stateful.StatefulContainer$StatefulCacheListener.afterLoad(StatefulContainer.java:1038)
> 	at org.apache.openejb.core.stateful.SimpleCache.loadEntry(SimpleCache.java:500)
> 	at org.apache.openejb.core.stateful.SimpleCache.checkOut(SimpleCache.java:223)
> 	at org.apache.openejb.core.stateful.StatefulContainer.obtainInstance(StatefulContainer.java:633)

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