Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Exception in CMP bean create()......runing out of time  RSS feed

 
nisharpa
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Heei All,
I am getting an exception when my client that is a servlet try to execute the create() of a CMP bean deployed in Websphere 4.0. Actually my client is running in a remote computer and it correctly lookup the JNDI and getting the home, but when it try to excute a create() method it says :
java.rmi.RemoteException: CORBA UNKNOWN 0 Maybe; nested exception is: org.omg.CORBA.UNKNOWN: minor code: 0 completed: Maybe .
and I have a business method in my EJB and when my client execute that business method afer getting the remote instance useing findByPrimaryKey() it works fine. so whats problem to execute the create() from a remote client.
I am really looking forward to solve the problem.
Greetings
NPA.
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you using the WebSphere client container (launchClient.bat)? Have you checked the WebSphere stdout and stderr logs to see if there are any SQL errors logged?
Kyle
[ October 30, 2002: Message edited by: Kyle Brown ]
 
nisharpa
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai ,
Well now I am getting another exception it is
javax.naming.NamingException: Error during resolve [Root exception is org.omg.CORBA.COMM_FAILURE: minor code: 3 completed: No]
what I am doing is I deployed my CMP bean in WAS4.0, and try to call the create()metho,when I try to run the client from the same mechine it works fine, but when I try to run a remote( I mean from another mechine) client(servlet) deployed in WAS3.5.5it pop up with the exception.
My JNDI name are correct I checked with 'dumpnamespace'
my client code is
ava.util.Hashtable env = new java.util.Hashtable() ;
env.put(Context.INITIAL_CONTEXT_FACTORY,"com.ibm.ejs.ns.jndi.CNInitialContextFactory") ;
env.put(Context.PROVIDER_URL,"iiop://skylla:900") ;

javax.naming.Context con = new javax.naming.InitialContext(env) ;
Object poo = con.lookup("Test") ;
out.println(" just after lookup .........");
TestHome home = (TestHome)javax.rmi.PortableRemoteObject.narrow(poo, TestHome.class) ;
home.create("nishar",new Integer(22),new Integer(2)) ;
out.println(" data created ......");

Looking forward to have a solution,
Greetings,
NPA.
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK, so now I'm confused -- how does your servlet running on WAS 3.5.5 know about the EJB client stub classes? What exactly did you deploy to WAS 3.5.5 and how?
Kyle
 
Simon Brown
sharp shooter, and author
Ranch Hand
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"nisharpa",
Thanks for joining JavaRanch, but could you just take a quick look at the naming policy and edit your profile.
Also, only members with valid names will be eligible for the book giveaways.
Thanks
Simon
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!