[jboss-user] [EJB/JBoss] - Re: JBoss 5 CR2 - Serialization error

chiradeep do-not-reply at jboss.com
Fri Nov 21 10:53:02 EST 2008


Following is the relevant code in the application custom JAAS Lgoin Module, login() method. The highlighted line retrieves the user info from remote user service. The error occurs at this line. If I write a JDK client (normal Java class run at command prompt) to lookup remote user service and invoke same findUser method I do not get any errors. 

I am using Sun JDK version 1.5.0_14-b03 


  | public boolean login() throws LoginException {
  | 	LOG.logMessage("login() - enter");
  | 
  | 	String[] credentials = null;
  | 
  | 	/* get user credentials */
  | 	credentials = this.getUserCredentials();
  | 
  | 	/* setup service parameters */
  | 	this.user = new User();
  | 	user.setId(credentials[0]);
  | 
  | 	/* lookup service */
  | 	InitialContext ic;
  | 	try {
  | 		ic = new InitialContext();
  | 		userSvc = (IUserServiceRemote)  
  |                 ic.lookup(IBusServiceLookup.USER);
  | 	} catch (NamingException e) {
  | 		throw new 
  |                 LoginException(ILoginServiceErrorCodes.NAMING_ERROR);
  | 	}
  | 	/* invoke service */
  | 	try {
  | **********ERROR happens at below method call 
  |         this.user = userSvc.findUser(user.getId()); 
  | 	} catch (ServiceException sve) {
  | 	       LOG.logMessage("login() - service execption occurred");
  | 			throw new 
  |                         LoginException(sve.getErrors().get(0).getErrorCode());
  | 	}
  | 
  |         ...............................................................................	
  |         ...............................................................................
  | }
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4191314#4191314

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4191314



More information about the jboss-user mailing list