Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unable to create new StubId

 
Miguel Angel Romero Ledesma
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everybody:
At first, sorry my horrible english.
I�m working with a sevlet that is running in WebSphere 3.52. I have an EJB too that is running in another machine with WebSphere 3.52.
The aplication is working correctly, but in the system log appear the message "Unable to create new StubId" when I invoke the methods of the remote interface. The home was looking up in the method init of the servlet.
It isn�t critical for me but I�d like to know what�s happening.
Any idea? Thank you.
 
Ajith Kallambella
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How exactly does your Servlet access the EJB on the other machine? Make sure when you create the initialContext for looking up the home, you are using the correct URL to identify the host running the EJB server....
 
Miguel Angel Romero Ledesma
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Ajith Kallambella:
In the method init of the servlet the code is:
Object homeObject = ctx.lookup(nameEJB);
EJBHome home = (EJBHome)PortableRemoteObject.narrow((org.omg.CORBA.Object)homeObject, EJBHome.class);
ejbMap.put(nameEJB, home);
Where ejbMap is an instance variable.
In the method service of the servlet the code is:
Iterator ejbHomes = ejbMap.values().iterator();
while(ejbHomes.hasNext()) {
EJBHome home = ((EJBHome)ejbHomes.next());
ejbRemote = home.create();
ejbRemote.doWork();
}
When I invoke the method create() and doWork(), the system print the trace "Unable to create new StubId", but the application works correctly. That trace seems an informative trace, not an error trace.
Thank you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic