• Post Reply Bookmark Topic Watch Topic
  • New Topic

Exception in MDB  RSS feed

 
Prema Durai
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Following is my code:

try {
TextMessage text = (TextMessage) msg;
System.out.println("Message::::" + text.getText());
Bean bean = (Bean)ServiceLocatorFactory
.singleton().getServiceLocator().lookup("ejblocal");

Response Response = Bean.
getProfileData(Request, armTransMain);
if (agencyDownloadResponse != null) {
//code

}
else {

}
} catch (Exception e) {

}


While invoking method(getProfileData) in bean, i am getting the following error:
The injection engine was unable to resolve injection object. A null reference was expected.



can anybody hlp me resolve this?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!