• Post Reply Bookmark Topic Watch Topic
  • New Topic

CORBA OBJECT_NOT_EXIST 0[] in Servlet

 
dar
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, all.
I have a method "collection TelGroup::findAllGroups()" in BMP-EJB class.
And I call in servlet so:
. . . . .
StringBuffer pagecont = new StringBuffer();
TelGroupHome grouphome = getTelGroupHome();
TelGroup tgroup = null;
String grname = null;
Collection groupcollection = grouphome.findAllGroup();
Iterator it = groupcollection.iterator();
System.out.println("groupcollection.size() = " + .size());
while(it.hasNext()){
Object obj = it.next();
tgroup = (TelGroup) javax.rmi.PortableRemoteObject.narrow(obj, TelGroup.class);
System.out.println(" Group is: " + tgroup.toString());
grname = tgroup.getName();
System.out.println("grname: " + grname);
pagecont.append("<option>" + grname + "</option>\n");
}
. . . . .
My ejb was deployed successfully with IAS and I use JBuilder.
I have this error(ouput) when I run the servlet.
groupcollection.size() = 8 <--- it's ok. Have to be 8 objects/beans
Group is: Stub[repository_id=RMI:TelGroup:0000000000000000,key=ServiceId[service=/EJB[cb-d16\/ejbcontainer]TelGroupJNDI,id={1 bytes:
[9]}],codebase=null]
grgname = UserTelephones <--- In block "while" is first time allways ok. But then, second time(sometimes third time) comes error below.
Group is: Stub[repository_id=RMI:TelGroup:0000000000000000,key=ServiceId[service=/EJB[cb-d16\/ejbcontainer]TelGroupJNDI,id={2 bytes:
[1][0]}],codebase=null]
CORBA OBJECT_NOT_EXIST 0[] <--- that's error ???
What's wrong? Please any advice, experience,...
Thanks for any helps.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!