Community

NPE in StateslessContainer at line 396

reply from Nagin Kothari in EJB 3.0 - View the full discussion

authentiacteUser is mtheod of Statless Session bean  UserService.

 

here is excerpt from my code

 

 

@Remote

public

 

 

interface UserService

{

 

 

User authenticateUser ()

throws ApplicationException;

}

 

 

@Stateless

 

 

public

 

 

class UserServiceBean implements UserService {

 

 

public

 

User authenticateUser() throws ApplicationException {

 

     System.

out.println(" in UserServiceBean: authenticateUser");

 

 

}

 

I am calling this method from servlet client as follows :

 

 

 

UserService service = (UserService) BeanLocator.getBean(

"UserServiceBean/remote");

 

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