[jboss-user] [EJB 3.0] - NPE in StateslessContainer at line 396

Nagin Kothari do-not-reply at jboss.com
Mon May 3 05:02:01 EDT 2010

Nagin Kothari [http://community.jboss.org/people/nagin.kothari] replied to the discussion

"NPE in StateslessContainer at line 396"

To view the discussion, visit: http://community.jboss.org/message/540699#540699

authentiacteUser is mtheod of Statless Session bean  UserService.

here is excerpt from my code

 *interface* UserService{

User authenticateUser ()
*throws* ApplicationException;


 *class* UserServiceBean *implements* UserService {

** User authenticateUser() *throws* ApplicationException {
+out+.println(" in UserServiceBean: authenticateUser");


I am calling this method from servlet client as follows : 

UserService service = (UserService) BeanLocator.+getBean+(


getBean  method in Beanlocater class looks into JNDI and provides the proxy for stateless bean UserServiceBean.

This code works fine in jboss 4.3.2, but not in jbosss 6.0M2

looking into source code of StatlessContainer at line 396

MethodInfo info = advisor.getMethodInfo(methodHash);
         Method unadvisedMethod = info.getMethod();
looks loke info is null, but why? I am not able to understand.






Reply to this message by going to Community

Start a new discussion in EJB 3.0 at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100503/fd959697/attachment.html 

More information about the jboss-user mailing list