Bugs item #999156, was opened at 2004-07-28 04:41 Message generated for change (Comment added) made by ejort You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=999156&group_id=22866
Category: JBossServer Group: v3.2 >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Elias Ross (genman) >Assigned to: Adrian Brock (ejort) Summary: MDB (possibly EJB) with <depends> can cause NPE upon create Initial Comment: Log statements: 2004-07-27 21:23:55,875 INFO [EARDeployer] Undeploying J2EE application, destroy step: file:/home/eross/src/servers/jboss-3.2.6/server/default/deploy/xxx.ear 2004-07-27 21:23:55,946 INFO [EARDeployer] Init J2EE application: file:/home/eross/src/servers/jboss-3.2.6/server/default/deploy/xxx.ear 2004-07-27 21:23:56,090 ERROR [MessageDrivenContainer] Initialization failed jboss.j2ee:jndiName=local/MDB,service=EJB java.lang.NullPointerException at org.jboss.ejb.Container.createService(Container.java:571) at org.jboss.ejb.MessageDrivenContainer.createService(MessageDrivenContainer.java:155) at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:237) at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:219) at .... Reproduction steps: Create an .ear with a MDB which has a <depends> on a MBean in another .ear or .sar file. Redeploy the MBean-containing .ear. Example jboss.xml: <jboss> <enterprise-beans> <message-driven> <ejb-name>MyMDB</ejb-name> <destination-jndi-name>queue/mymdb</destination-jndi-name> <depends>example:service=MyService</depends> </message-driven> </enterprise-beans> </jboss> Suggestion: In src/main/org/jboss/ejb/Container.java line 625: do not NULL this.classLoader; Possibly other members should not be nulled. I'm wondering why the extensive null-ing is even necessary. ---------------------------------------------------------------------- >Comment By: Adrian Brock (ejort) Date: 2004-07-28 12:09 Message: Logged In: YES user_id=9459 The references are nulled to help the garbage collector. But they should be nulled in EjbModule (which is what sets the references) not the container lifecycle. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=999156&group_id=22866 ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development