• Post Reply Bookmark Topic Watch Topic
  • New Topic

error in my prograrm  RSS feed

 
eranda nanayakkara
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Properties pro = new Properties();
pro.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory");//"org.jnp.interfaces.NamingContextFactory"); //,"java.naming.factory.initial"
pro.put(javax.naming.Context.PROVIDER_URL,"iiop://localhost:2809");
InitialContext initialContext = new InitialContext(pro);
Object obj=initialContext.lookup("SMS");
SmsHome sendsms = (SmsHome)PortableRemoteObject.narrow(obj,SmsHome.class);

Sms dailogsms = sendsms.create();


error


javax.naming.NamingException: Error during resolve. Root exception is org.omg.CORBA.NO_IMPLEMENT: minor code: 0 completed: No
at com.ibm.ws.Transaction.JTS.CurrentImpl.suspend(CurrentImpl.java:394)
at com.ibm.ws.naming.jndicos.CNContextImpl.suspendTransaction(CNContextImpl.java:4070)
at com.ibm.ws.naming.jndicos.CNContextImpl.cosResolve(CNContextImpl.java:3521)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1565)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1525)
at com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNContextImpl.java:1225)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:132)2

at javax.naming.InitialContext.lookup(InitialContext.java:359)
at DBconnection.DbConnection.setEJBConnection(DbConnection.java:63)
at sms.sendSms.check(sendSms.java:39)
at sms.sendSms.main(sendSms.java:33)
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!