 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
arxel@caramail.com Guest
|
Posted: Thu Jan 12, 2006 3:22 pm Post subject: TAO Trading Service AND JacORB ? |
|
|
Hi !
First I'm sorry of my poor english but I'm french...
I hope someone can help me because I don't know how to use the TAO
Trading Service ... I want to launch it and then use it with an java
application running with JacORB but I don't achieve to narrow the
service ....
Here's some description of my problem :
TAO Naming_Service execution :
------------------------------
Naming_Service.exe -ORBDebugLevel 1 -ORBEndpoint
iiop://192.168.200.24:3131
TAO Trading_Service execution :
-------------------------------
Trading_Service.exe -ORBDebugLevel 1 -ORBEndpoint
iiop://192.168.200.24:3105
JacORB parameters :
-------------------
ORBInitRef.NameService=corbaloc::192.168.200.24:3131/NameService
ORBInitRef.TradingService=corbaloc::192.168.200.24:3105/TradingService
Java-Application code using JacORB :
-----------------------------------
try {
//init ORB
ORB myORB = ORB.init( args, null );
// init POA
POA poa = POAHelper.narrow( myORB.resolve_initial_references(
"RootPOA" ));
poa.the_POAManager().activate();
// create a GoodDay object
GoodDayImpl serverImpl = new GoodDayImpl( "Somewhere Server"
);
// create the object reference
org.omg.CORBA.Object server = poa.servant_to_reference(
serverImpl );
org.omg.CORBA.Object o =
myORB.resolve_initial_references("NameService") ;
NamingContextExt nc = NamingContextExtHelper.narrow( o ) ;
nc.bind( nc.to_name("test.example"), server);
// Trading service (the two lines)
org.omg.CORBA.Object o2 =
myORB.resolve_initial_references("TradingService") ;
Lookup trader = LookupHelper.narrow( o2 );
myORB.run() ;
}
catch (Exception e) {
e.printStackTrace() ;
System.out.println("Minor code = " + ((OBJECT_NOT_EXIST)
e).minor) ;
}
Result :
--------
Without the two lines of the Trading Service in the java code, the
application run and work properly using the naming service
With the two lines of the Trading Service in the java code, the
application crash (see the traces)
Note : Minor code = 1413545984 = 0x54410000
Java Application Trace :
------------------------
[jacorb.orb] INFO :
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
JacORB V 2.2.2, www.jacorb.org
(C) The JacORB project 1-Jun-2005
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[jacorb.orb.intercept] INFO : InterceptorManager started with 0
SIs, 0 CIs and 1 IORIs
[jacorb.poa] INFO : oid:
00 14 2A 4C 0F 0C 46 22 0E 1E
...*L..F"..
object is activated
[jacorb.orb.giop] INFO : ClientConnectionManager: created new
conn to target 192.168.200.24:3131
[jacorb.orb.iiop] INFO : Connected to 192.168.200.24:3131 from
local port 2091
[jacorb.orb.iiop] INFO : Client-side TCP transport to
192.168.200.24:3131 closed.
[jacorb.orb.iiop] INFO : Client-side TCP transport to
192.168.200.24:3131 closed.
[jacorb.orb.giop] INFO : ClientConnectionManager: created new
conn to target 192.168.200.24:3131
[jacorb.orb.iiop] INFO : Connected to 192.168.200.24:3131 from
local port 2092
[jacorb.orb.giop] INFO : ClientConnectionManager: created new
conn to target 192.168.200.24:3105
[jacorb.orb.iiop] INFO : Connected to 192.168.200.24:3105 from
local port 2093
org.omg.CORBA.OBJECT_NOT_EXIST: Server-side Exception: null
at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at
java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at org.jacorb.orb.SystemExceptionHelper.read(Unknown
Source)
at org.jacorb.orb.ReplyReceiver.getReply(Unknown Source)
at org.jacorb.orb.Delegate.invoke_internal(Unknown
Source)
at org.jacorb.orb.Delegate.invoke(Unknown Source)
at org.jacorb.orb.Delegate.is_a(Unknown Source)
at org.omg.CORBA.portable.ObjectImpl._is_a(Unknown
Source)
at org.omg.CosTrading.LookupHelper.narrow(Unknown Source)
at testcorba.TheServer.launchServer(Unknown Source)
at testcorba.Server.main(Unknown Source)
Minor code = 1413545984
TAO Naming Service Trace :
--------------------------
TAO (3340|3492) Loaded default protocol <IIOP_Factory>
Notifying ImR of startup
We'll become a NameService
TAO (3340|3492) - Transport_Cache_Manager::fill_set_i,
current_size = 0, cache_maximum = 512
TAO (3340|3492) - Connection_Handler::open, IIOP connection to
peer <192.168.200.24:2091> on 1768
TAO (3340|3492) - Transport_Cache_Manager::bind_i, 0x12eb84 ->
0xf84370 Transport[1768]
TAO (3340|3492) - Connection_Handler[1768]::close_connection,
purging entry from cache
TAO (3340|3492) - Connection_Handler[1768]::close_connection,
removing from the reactor
TAO (3340|3492) - Connection_Handler[1768]::close_connection,
cancel all timers
TAO (3340|3492) - Connection_Handler[1768]::close_connection
TAO (3340|3492) - Transport_Cache_Manager::fill_set_i,
current_size = 0, cache_maximum = 512
TAO (3340|3492) - Connection_Handler::open, IIOP connection to
peer <192.168.200.24:2092> on 1768
TAO (3340|3492) - Transport_Cache_Manager::bind_i, 0x12eb84 ->
0xf85310 Transport[1768]
TAO Trading Service Trace :
---------------------------
*** Trading Service OPALE_2012 initializing.
TAO (2012|2936) Loaded default protocol <IIOP_Factory>
The multicast server setup is done.
TAO (2012|2936) - Transport_Cache_Manager::fill_set_i,
current_size = 0, cache_maximum = 512
TAO (2012|2936) - Connection_Handler::open, IIOP connection to
peer <192.168.200.24:2093> on 1768
TAO (2012|2936) - Transport_Cache_Manager::bind_i, 0x12e874 ->
0xf5ec70 Transport[1768]
Have you an idea of what I'm doing wrong ?
Thanks for any help
Lenn ANGEL.
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|