• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
sharp shooter, and author
Posts: 1913
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
The world's cheapest jedi mind trick: "Aw c'mon, why not read this tiny ad?"
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic