Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

TAO Trading Service AND JacORB ?

20 views
Skip to first unread message

ar...@caramail.com

unread,
Jan 12, 2006, 10:20:57 AM1/12/06
to
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.

Douglas C. Schmidt

unread,
Jan 12, 2006, 10:26:31 AM1/12/06
to
Hi Lenn,

Thanks very much for your email. Please make sure to send all
questions related to TAO to the TAO mailing list or ACE+TAO newsgroup,
rather than to comp.object.corba. See

http://www.cs.wustl.edu/~schmidt/ACE-mail.html

for more info on how to access these resources.

In addition, to ensure that we have proper version/platform/compiler
information, please make sure you fill out the appropriate problem
report form (PRF), which is in

$ACE_ROOT/PROBLEM-REPORT-FORM
$TAO_ROOT/PROBLEM-REPORT-FORM

or in

$ACE_ROOT/BUG-REPORT-FORM
$TAO_ROOT/BUG-REPORT-FORM

in older versions of TAO. Make sure to include this information when
asking any questions about TAO since otherwise we have to "guess" what
version/platform/compiler/options you've using, which is
error-prone and slows down our responsiveness.

Thanks,

Doug

++ 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.
++


--
Dr. Douglas C. Schmidt Professor and Associate Chair
Electrical Engineering and Computer Science TEL: (615) 343-8197
Institute for Software Integrated Systems WEB: www.dre.vanderbilt.edu/~schmidt
Vanderbilt University, Nashville TN, 37203 NET: d.sc...@vanderbilt.edu
--
Dr. Douglas C. Schmidt Professor and Associate Chair
Electrical Engineering and Computer Science TEL: (615) 343-8197
Institute for Software Integrated Systems WEB: www.dre.vanderbilt.edu/~schmidt
Vanderbilt University, Nashville TN, 37203 NET: d.sc...@vanderbilt.edu

0 new messages