Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB client issue (  RSS feed

Ankit Thakkar
Ranch Hand
Posts: 33
Android Java Mac PPC
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have deployed a EJB application on Websphere 6.1 application server, trying to get Initial Context to get EJB reference using JNDI. But while instantiating InitialContext object, it's giving some exception -

javax.naming.NamingException: Error during resolve [Root exception is java.lang.NullPointerException]
Caused by: java.lang.NullPointerException


I have disabled Administrative, Application, J2SE security in application server. still exception is thrown.

I observed one thing, while creating InitialContext, if I pass -""""
in HashMap, then only it's throwing above mentioned exception.

If I skip these two parameters while creating HashMap it's going through. But we have one class in which these two parameters are present and values are coming from property file. So we can't change code to ignore these two parameters while creating InitialContext. As we don't have control on this class.

Please help me to resolve this issue.

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!