[jboss-jira] [JBoss JIRA] Commented: (EJBTHREE-1853) NPE upon lookup of errorneous EJB

Ondrej Žižka (JIRA) jira-events at lists.jboss.org
Mon Jun 22 17:26:56 EDT 2009


    [ https://jira.jboss.org/jira/browse/EJBTHREE-1853?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12473332#action_12473332 ] 

Ondrej Žižka commented on EJBTHREE-1853:
----------------------------------------

By the way, after undeployment of the EJB (probably successful - not listed in JMX console), still there are traces of it in the JNDI namespace:

Global JNDI Namespace
...
  +- CounterBean (class: org.jnp.interfaces.NamingContext)
  |   +- remote-ejbtest.stateful.bean.CounterBean (class: Proxy for: ejbtest.stateful.bean.CounterBean)
  |   +- remote (class: Proxy for: ejbtest.stateful.bean.CounterBean)

This shouldn't happen either, should it?

> NPE upon lookup of errorneous EJB
> ---------------------------------
>
>                 Key: EJBTHREE-1853
>                 URL: https://jira.jboss.org/jira/browse/EJBTHREE-1853
>             Project: EJB 3.0
>          Issue Type: Bug
>         Environment: JBAS:  jboss-5.0.0.Beta  (from the JBPAPP branch)
> Sun JDK jdk1.5.0_17
>            Reporter: Ondrej Žižka
>         Attachments: EJBlookup-NPE.zip, log.txt
>
>
> When a bad EJB is deployed and then looked up remotely, a NPE is thrown - see attached stack trace.
> Steps to reproduce:
> 1) Start AS 5 and deploy the attached EJB - ejb-stateful-1.0-SNAPSHOT.jar .
> 2) Run the client - EjbClient-1.0-SNAPSHOT.jar , class ejbtest.EjbClient.StatefulClient
>     This has quite many dependencies, so it's good idea to open the mvn project (in the attached zip) and use some IDE's "Run file" function.
> Upon ctx.lookup(), the NPE occurs.
> ----------------
> The EJB has:
> public interface Counter { }
> @Remote
> public interface CounterRemote extends Counter { }
> @Stateful
> @Remote(CounterBean.class)
> public class CounterBean implements Counter { }
> -------
> The client jar contains (incomplete list):
> public interface Counter { }
> @Stateful
> public class CounterBean implements Counter { }
> (this wild combination arose when testing :)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       




More information about the jboss-jira mailing list