You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Romain Manni-Bucau (JIRA)" <ji...@apache.org> on 2017/06/14 08:44:00 UTC

[jira] [Commented] (TOMEE-2064) NPE in CdiEjbBean.java:532

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

Romain Manni-Bucau commented on TOMEE-2064:
-------------------------------------------

Hi Svetlin, do you have a failing test reproducing this? We pass cdi tck and our build it seems so wonder what is the issue. Or is it linked to snapshots usages?

> NPE in CdiEjbBean.java:532
> --------------------------
>
>                 Key: TOMEE-2064
>                 URL: https://issues.apache.org/jira/browse/TOMEE-2064
>             Project: TomEE
>          Issue Type: Bug
>            Reporter: Svetlin Zarev
>
> TomEE 7.0.4 "master" started throwing NPE in CdiEjbBean.java:532
> {code}
> java.lang.NullPointerException: while trying to get the length of a null array loaded from a local variable at slot 6
> at org.apache.openejb.cdi.CdiEjbBean$EjbInjectionTargetImpl.createNewPojo(CdiEjbBean.java:532)
>  	at org.apache.openejb.BeanContext.newInstance(BeanContext.java:1608)
>  	at org.apache.openejb.core.stateless.StatelessInstanceManager.createInstance(StatelessInstanceManager.java:242)
>  	at org.apache.openejb.core.stateless.StatelessInstanceManager.getInstance(StatelessInstanceManager.java:234)
>  	at org.apache.openejb.core.stateless.StatelessContainer.invoke(StatelessContainer.java:204)
>  	at org.apache.openejb.core.ivm.EjbObjectProxyHandler.synchronizedBusinessMethod(EjbObjectProxyHandler.java:265)
>  	at org.apache.openejb.core.ivm.EjbObjectProxyHandler.businessMethod(EjbObjectProxyHandler.java:260)
>  	at org.apache.openejb.core.ivm.EjbObjectProxyHandler._invoke(EjbObjectProxyHandler.java:89)
>  	at org.apache.openejb.core.ivm.BaseEjbProxyHandler.invoke(BaseEjbProxyHandler.java:347)
> {code}
> I've fixed it by simple check for null and it fixed my tests. What do you think ? 
> https://github.com/apache/tomee/compare/master...SvetlinZarev:fixNpe?expand=1



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)