dcsimg
<strong>Problem with visibroker OAD (object Activation daemon)</strong>
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   varalakshmi_kannan
Posted On:   Saturday, July 21, 2001 12:30 AM

Hi Friends, I have a problem with remote activation using visibroker OAD. Pls give me a solution to this problem. It is very critical for my project. I desperately need a solution, so pls help. I have the following configuration , OS - Win 98 product - Visibroker for Java 4.0 JDK - 1.1.8 I want to use OBJECT ACTIVATION DAEMON for remotely activating my corba objects. I register my object with OAD and run the client to activate it. The registration is done successfully. When I run my client program to activate the object, it works properly sometimes, but sometimes it gives CORBA.NO_RESPONSE exception.    More>>

Hi Friends,



I have a problem with remote activation using visibroker OAD. Pls give me a
solution to this problem. It is very critical for my
project. I desperately need a solution, so pls help.



I have the following configuration ,


OS - Win 98

product - Visibroker for Java 4.0

JDK - 1.1.8



I want to use OBJECT ACTIVATION DAEMON for remotely activating my
corba objects. I register my object with OAD and run the client
to activate it. The registration is done successfully. When I
run my client program to activate the object, it works properly
sometimes, but sometimes it gives CORBA.NO_RESPONSE exception.
When I look at the OAD console with verbose option turned on,
it says


OAD::(Waiting for server to register....)

#1 error: Failed to load class Server



I can't figure out what the problem is.




Let me explain in more detail to get a better picture...



I have an IDL file called Test.idl with an interface ResourceManager.
This interface has a method called printStatus() that does nothing but
to print a message. I have a Server.java class that activates the object
using BOA.


My Client.java code has the following statements,



Test.ResourceManager manager = Test.ResourceManagerHelper.bind(orb,"ResourceManager");

manager.printStatus();




My Server.java code has the following statements,



com.inprise.vbroker.CORBA.BOA boa = ((com.inprise.vbroker.CORBA.ORB)orb).BOA_init();

Test.ResourceManager manager = new ResourceManagerImpl("ResourceManager");

boa.obj_is_ready(manager);

boa.impl_is_ready();




I registered this interface with OAD as follows,



oadutil reg -i Test::ResourceManager -o "ResourceManager" -java Server



The registration works fine.




Then when I try to activate the object by running my client, it sometimes works
properly, but most of the times it gives NO_RESPONSE exception.



The console running my client shows,




org.omg.CORBA.NO_RESPONSE: minor code: 0 completed: No

at com.inprise.vbroker.orb.SE.read(SE.java:28)

at com.inprise.vbroker.orb.DelegateImpl.handleReply(Compiled Code)

at com.inprise.vbroker.orb.DelegateImpl.invoke(DelegateImpl.java:519)

at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:248)

at OAD._ResourceManagerStub.printStatus(Compiled Code)




The console running my server shows,




Received a request for [PersistentId[repId=

IDL:OAD/ResourceManager:1.0,objectNam e=ResourceManager,poaName=

IDL:OAD/ResourceManager:1.0]] OAD request for PERSISTENT object

[IDL:OAD/ResourceManager:1.0/ResourceManager]

Lookup up implementation...

Looking up repository ID=IDL:OAD/ResourceManager:1.0

Looking up object name ResourceManager



OAD::(Spawning server....) OAD::(vbj -Dvbroker.orb.oadUID=1
-Dvbroker.orb.activationIOR=IOR:000000000000002
549444c3a7669736967656e69632e636f6d2f41637469766174696f6e2f4f41443a312e30000
00000000000010000000000000038000102000000000a3132372e302e302e31003e800000001c005
6420 1000000022f0020200000000400000002000000000000000000000000 -
Dvbroker.agent.port=1 4000 Server) OAD::PrinterThread:Started PrinterThread



#1=vbj -Dvbroker.orb.oadUID=1 -Dvbroker.orb.activationIOR=
IOR:000000000000002549
444c3a7669736967656e69632e636f6d2f41637469766174696f6e2f4f41443a312e30000000
0000 0000010000000000000038000102000000000a3132372e302e302e31003e800000001c005642
0100 0000022f0020200000000400000002000000000000000000000000 -
Dvbroker.agent.port=1400 0 Server



OAD::(Waiting for server to register....)

#1 error: Failed to load class Server





OAD::PrinterThread:(vbj -Dvbroker.orb.oadUID=1 -Dvbroker.orb.activationIOR=IOR:0
00000000000002549444c3a7669736967656e69632e636f6d2f41637469766174696f6e2f4f41443
a312e3000000000000000010000000000000038000102000000000a3132372e302e302e31003e800
000001c00564201000000022f0020200000000400000002000000000000000000000000 -Dvbroke
r.agent.port=14000 Server) exit=0
removeChild: [1;null]

...destruction of a Process for [IDL:OAD/ResourceManager:1.0;ResourceManager]

OAD::(Wait timed out....)

OAD::(vbj) did not activate object





Pls help.


regards,

Varalakshmi    <<Less

Re: <strong>Problem with visibroker OAD (object Activation daemon)</strong>

Posted By:   mark_robbins  
Posted On:   Thursday, February 14, 2002 06:09 AM

I have seen this problem where a server has started and then died for some reason e.g. out of memory.


Are you sure that your object is still running?


If you have a status interface on it query that to make sure it is still there.


Another possible cause is that the the object is not registering with the OAD quick enough. Hence the "wait timed out".



Regards.

Mark

Re: <strong>Problem with visibroker OAD (object Activation daemon)</strong>

Posted By:   Gaurav_Garg  
Posted On:   Tuesday, December 11, 2001 12:51 AM

hello,

did your code work?

i need to implement the same. can you please send me the sample server/client using OAD. i appreciate your help.

regards,
gaurav
g_garg@yahoo.com
About | Sitemap | Contact