You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Kevan Miller (JIRA)" <ji...@apache.org> on 2007/03/14 03:53:11 UTC

[jira] Created: (OPENEJB-539) Fix NPE in InterceptorStack

Fix NPE in InterceptorStack
---------------------------

                 Key: OPENEJB-539
                 URL: https://issues.apache.org/jira/browse/OPENEJB-539
             Project: OpenEJB
          Issue Type: Bug
    Affects Versions: 3.0
            Reporter: Kevan Miller
         Assigned To: Kevan Miller
             Fix For: 3.0


A NullPointerException occurs in InterceptorStack during an ejbTimout invocation. Here's a stacktrace:

java.lang.NullPointerException
	at org.apache.openejb.core.interceptor.InterceptorStack.<init>(InterceptorStack.java:41)
	at org.apache.openejb.core.stateless.StatelessContainer._invoke(StatelessContainer.java:179)
	at org.apache.openejb.core.stateless.StatelessContainer.invoke(StatelessContainer.java:148)
	at org.apache.openejb.core.timer.EjbTimerServiceImpl.ejbTimeout(EjbTimerServiceImpl.java:264)
	at org.apache.openejb.core.timer.EjbTimerServiceImpl.access$100(EjbTimerServiceImpl.java:39)
	at org.apache.openejb.core.timer.EjbTimerServiceImpl$EjbTimeoutTimerTask$1.run(EjbTimerServiceImpl.java:330)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
	at java.lang.Thread.run(Thread.java:613)

Either *every* possible method needs to have interceptors set, or CoreDeploymentInfo.getMethodInterceptors(Method) should always return a non-null (potentially size 0) list.  

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


[jira] Updated: (OPENEJB-539) Fix NPE in InterceptorStack

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

Kevan Miller updated OPENEJB-539:
---------------------------------

    Assignee: David Blevins  (was: Kevan Miller)

I've committed a fix that insures CoreDeploymentInfo.getMethodInterceptors(Method) doesn't return null However, we need to verify whether or not an Interceptor list should have been created for for "ejbTimeout".

> Fix NPE in InterceptorStack
> ---------------------------
>
>                 Key: OPENEJB-539
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-539
>             Project: OpenEJB
>          Issue Type: Bug
>    Affects Versions: 3.0
>            Reporter: Kevan Miller
>         Assigned To: David Blevins
>             Fix For: 3.0
>
>
> A NullPointerException occurs in InterceptorStack during an ejbTimout invocation. Here's a stacktrace:
> java.lang.NullPointerException
> 	at org.apache.openejb.core.interceptor.InterceptorStack.<init>(InterceptorStack.java:41)
> 	at org.apache.openejb.core.stateless.StatelessContainer._invoke(StatelessContainer.java:179)
> 	at org.apache.openejb.core.stateless.StatelessContainer.invoke(StatelessContainer.java:148)
> 	at org.apache.openejb.core.timer.EjbTimerServiceImpl.ejbTimeout(EjbTimerServiceImpl.java:264)
> 	at org.apache.openejb.core.timer.EjbTimerServiceImpl.access$100(EjbTimerServiceImpl.java:39)
> 	at org.apache.openejb.core.timer.EjbTimerServiceImpl$EjbTimeoutTimerTask$1.run(EjbTimerServiceImpl.java:330)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
> 	at java.lang.Thread.run(Thread.java:613)
> Either *every* possible method needs to have interceptors set, or CoreDeploymentInfo.getMethodInterceptors(Method) should always return a non-null (potentially size 0) list.  

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