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

UnexpectedException: IDL:java/lang/Ex:1.0 During EJB Invocation  RSS feed

 
Sandeep Murthy
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,

I'm invoking an EJB, deployed on WebSphere 6.0(.2.15).
My EJB has a method called performService(), which takes a String argument.
My client is a stand alone Java program.

I'm getting the following exception during the EJB method invocation:

java.rmi.UnexpectedException: IDL:java/lang/Ex:1.0
at com.mycompany._CMService_Stub.performService(Unknown Source)
at EjbLookupTest.main(EjbLookupTest.java:17)

Does anybody know what is happening?

Please see my EJB lookup client code below:

public class EjbLookupTest {
public static void main(String[] args) throws Exception {

Properties env = new Properties();
env.put(Context.INITIAL_CONTEXT_FACTORY,
"com.ibm.websphere.naming.WsnInitialContextFactory");
env.put(Context.PROVIDER_URL,
"my provider url");

Context ctx = new InitialContext(env);
Object obj = ctx.lookup("my jndi lookup name");

CMServiceHome serviceHome = (CMServiceHome)
PortableRemoteObject.narrow(obj, CMServiceHome.class);
CMService service = serviceHome.create();

String response = service.performService(�my string�);
System.out.println(response);
}
}

Thanks,
Sandeep

[ July 24, 2008: Message edited by: Sandeep Narasimhamurthy ]

[ July 24, 2008: Message edited by: Sandeep Narasimhamurthy ]
[ July 24, 2008: Message edited by: Sandeep Narasimhamurthy ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!