[jacorb-developer] Running Jacorb Demos

zorgy zorg z0rgy7 at googlemail.com
Fri Dec 10 20:01:30 CET 2010


Hi Guys,

I have extracted the jacorb-2.3.1.bin.zip file into my home directory and
run the command "ant scripts" as instructed in the installation page.
I then tried to run the arrays demo in the demo directory by performing the
following operations:
1. cd arrays
2. idl -fall server.idl
3. javac *.java
4. cp *.class demo/arrays
5. ns
-Djacorb.naming.ior_filename=/home/user/Project/Java/CORBA/NamingService/NS_Ref
6. jaco demo.arrays.Server -Djacorb.config.dir=. -DORBid=DemoArray
7. jaco demo.arrays.Client -Djacorb.config.dir=. -DORBid=DemoArray

The example seems to work however the nameservice and the server giving out
the following messages
Why is this so?
Error messages given by nameservice and demo.arrays.Server:
 2010-12-10 16:59:07.133 FINE Transport to 127.0.1.1:60752: stream closed on
read  < 0
2010-12-10 16:59:07.135 FINE ServerGIOPConnection to
127.0.1.1:60752(e80842): getMessage() -- COMM_FAILURE
2010-12-10 16:59:07.136 FINE ServerGIOPConnection to
127.0.1.1:60752(e80842): streamClosed()
2010-12-10 16:59:07.137 FINE ServerGIOPConnection to
127.0.1.1:60752(e80842): close()
2010-12-10 16:59:07.142 INFO Closed server-side transport to 127.0.1.1:60752


Partial logs are pasted below for convinience.

Regards,
Harry Terzian

The output I get from the nameservice is as follows:
NAMESERVICE OUTPUT:
2010-12-10 16:59:06.612 FINE ServerRequest: reply to to_name
2010-12-10 16:59:06.613 FINE wrote 56 bytes to 127.0.1.1:60752
2010-12-10 16:59:06.614 FINE wrote GIOP message of size 56 to
ServerGIOPConnection to 127.0.1.1:60752 (e80842)
2010-12-10 16:59:06.615 FINE rid: 0 opname: to_name ends with request
processing
2010-12-10 16:59:06.622 FINE read 12 bytes from 127.0.1.1:60752
2010-12-10 16:59:06.622 FINE read 100 bytes from 127.0.1.1:60752
2010-12-10 16:59:06.623 FINE read GIOP message of size 112 from
ServerGIOPConnection to 127.0.1.1:60752 (e80842)
2010-12-10 16:59:06.624 FINE POA NameServer-POA rid: 2 opname: resolve
_invoke: queuing request
2010-12-10 16:59:06.625 FINE rid: 2 opname: resolve is queued (queue size:
1)
2010-12-10 16:59:06.626 FINE rid: 2 opname: resolve trying to get a
RequestProcessor
2010-12-10 16:59:06.626 FINE rid: 2 opname: resolve starts with request
processing
2010-12-10 16:59:06.626 FINE waiting for queue
2010-12-10 16:59:06.626 FINE rid: 2 opname: resolve invokeOperation on
servant (stream based)
2010-12-10 16:59:06.627 FINE ServerRequest: reply to resolve
2010-12-10 16:59:06.628 FINE wrote 176 bytes to 127.0.1.1:60752
2010-12-10 16:59:06.629 FINE wrote GIOP message of size 176 to
ServerGIOPConnection to 127.0.1.1:60752 (e80842)
2010-12-10 16:59:06.631 FINE rid: 2 opname: resolve ends with request
processing
2010-12-10 16:59:07.133 FINE Transport to 127.0.1.1:60752: stream closed on
read  < 0
2010-12-10 16:59:07.135 FINE ServerGIOPConnection to
127.0.1.1:60752(e80842): getMessage() -- COMM_FAILURE
2010-12-10 16:59:07.136 FINE ServerGIOPConnection to
127.0.1.1:60752(e80842): streamClosed()
2010-12-10 16:59:07.137 FINE ServerGIOPConnection to
127.0.1.1:60752(e80842): close()
2010-12-10 16:59:07.142 INFO Closed server-side transport to 127.0.1.1:60752
2010-12-10 16:59:07.143 FINE [1/2] job queue empty

The output I get from the demo.arrays.Server is as follows:
Output from demo.arrays.Server:
2010-12-10 16:59:06.766 FINE waiting for queue
2010-12-10 16:59:06.766 FINE rid: 12 opname: printDoubleArray starts with
request processing
2010-12-10 16:59:06.767 FINE rid: 12 opname: printDoubleArray
invokeOperation on servant (stream based)
Taille du tableau de doble : 10
refs[0] = 0.0
refs[1] = 1.0
refs[2] = 2.0
refs[3] = 3.0
refs[4] = 4.0
refs[5] = 5.0
refs[6] = 6.0
refs[7] = 7.0
refs[8] = 8.0
refs[9] = 9.0
2010-12-10 16:59:06.773 FINE ServerRequest: reply to printDoubleArray
2010-12-10 16:59:06.773 FINE wrote 24 bytes to 127.0.1.1:55202
2010-12-10 16:59:06.774 FINE wrote GIOP message of size 24 to
ServerGIOPConnection to 127.0.1.1:55202 (16fe0f4)
2010-12-10 16:59:06.774 FINE rid: 12 opname: printDoubleArray ends with
request processing
2010-12-10 16:59:07.133 FINE Transport to 127.0.1.1:55202: stream closed on
read  < 0
2010-12-10 16:59:07.135 FINE ServerGIOPConnection to
127.0.1.1:55202(16fe0f4): getMessage() -- COMM_FAILURE
2010-12-10 16:59:07.136 FINE ServerGIOPConnection to
127.0.1.1:55202(16fe0f4): streamClosed()
2010-12-10 16:59:07.137 FINE ServerGIOPConnection to
127.0.1.1:55202(16fe0f4): close()
2010-12-10 16:59:07.139 INFO Closed server-side transport to 127.0.1.1:55202
2010-12-10 16:59:07.140 FINE [1/1] job queue empty

Output from client is as follows:
Output from demo.arrays.Client
2010-12-10 16:59:06.647 FINE Trying to connect to 127.0.1.1:52186 with
timeout=90000.
2010-12-10 16:59:06.648 INFO Connected to 127.0.1.1:52186 from local port
55202
2010-12-10 16:59:06.649 FINE wrote 60 bytes to 127.0.1.1:52186
2010-12-10 16:59:06.650 FINE wrote 28 bytes to 127.0.1.1:52186
2010-12-10 16:59:06.651 FINE wrote 40 bytes to 127.0.1.1:52186
2010-12-10 16:59:06.652 FINE wrote GIOP message of size 104 to
ClientGIOPConnection to 127.0.1.1:52186 (1f6f296)
2010-12-10 16:59:06.679 FINE read 12 bytes from 127.0.1.1:52186
2010-12-10 16:59:06.679 FINE read 20 bytes from 127.0.1.1:52186
2010-12-10 16:59:06.680 FINE read GIOP message of size 32 from
ClientGIOPConnection to 127.0.1.1:52186 (1f6f296)
Result: 665
2010-12-10 16:59:06.689 FINE wrote 92 bytes to 127.0.1.1:52186
2010-12-10 16:59:06.690 FINE wrote GIOP message of size 92 to
ClientGIOPConnection to 127.0.1.1:52186 (1f6f296)
2010-12-10 16:59:06.700 FINE read 12 bytes from 127.0.1.1:52186
2010-12-10 16:59:06.701 FINE read 24 bytes from 127.0.1.1:52186
2010-12-10 16:59:06.701 FINE read GIOP message of size 36 from
ClientGIOPConnection to 127.0.1.1:52186 (1f6f296)
   42
   34
   13
2010-12-10 16:59:06.705 FINE wrote 368 bytes to 127.0.1.1:52186
2010-12-10 16:59:06.705 FINE wrote GIOP message of size 368 to
ClientGIOPConnection to 127.0.1.1:52186 (1f6f296)
2010-12-10 16:59:06.708 FINE wrote 372 bytes to 127.0.1.1:52186
2010-12-10 16:59:06.712 FINE wrote GIOP message of size 372 to
ClientGIOPConnection to 127.0.1.1:52186 (1f6f296)
2010-12-10 16:59:06.718 FINE wrote 106 bytes to 127.0.1.1:52186
2010-12-10 16:59:06.720 FINE wrote GIOP message of size 106 to
ClientGIOPConnection to 127.0.1.1:52186 (1f6f296)
2010-12-10 16:59:06.722 FINE wrote 160 bytes to 127.0.1.1:52186
2010-12-10 16:59:06.723 FINE wrote GIOP message of size 160 to
ClientGIOPConnection to 127.0.1.1:52186 (1f6f296)
2010-12-10 16:59:06.758 FINE read 12 bytes from 127.0.1.1:52186
2010-12-10 16:59:06.759 FINE read 12 bytes from 127.0.1.1:52186
2010-12-10 16:59:06.760 FINE read GIOP message of size 24 from
ClientGIOPConnection to 127.0.1.1:52186 (1f6f296)
2010-12-10 16:59:06.763 FINE wrote 168 bytes to 127.0.1.1:52186
2010-12-10 16:59:06.764 FINE wrote GIOP message of size 168 to
ClientGIOPConnection to 127.0.1.1:52186 (1f6f296)
2010-12-10 16:59:06.774 FINE read 12 bytes from 127.0.1.1:52186
2010-12-10 16:59:06.775 FINE read 12 bytes from 127.0.1.1:52186
2010-12-10 16:59:06.776 FINE read GIOP message of size 24 from
ClientGIOPConnection to 127.0.1.1:52186 (1f6f296)


More information about the jacorb-developer mailing list