Regards,
Rashmi Chidambara Rao.
________________________________
From: Rashmi Chidambara Rao (WT01 - Telecom Equipment)
Sent: Tuesday, January 06, 2009 2:41 PM
To: 'Lars Kühne'
Cc: Rashmi Chidambara Rao (WT01 - Telecom Equipment)
Subject: FW: naming service mirror exception
Hi,
We were using OpenORB 1.3.0. that time the name service mirror was working fine.
Currently we are using OpenORB -1.4.0 with JDK 1.5_16.some modifications I have done it like for using tns instead of calling MapNmaing context I called tns.server.
Here the nameservice mirror is not working with the same code below mentioned are the logs which we receive.
* Here what are changes we need to care to use the nameservice mirror
* Is this is a bug ?
* Do I need to change any openorb.xml file.
* Is this is related to below mentioned bug. Is this bug is fixed
* What is the difference in MapNaming context and now tns.
* Now in new version how the naming context is resolved.
* "NameService" sting is passed in the binding.
* How can I check the naming service mirror will work.
Please let me know your inputs.
Regards
Rashmi.
Rashmi,
There is a known bug reported for OpenORB-1.4 using Java - 1.5 and a fix for it is also provided. Pls see below. Try the fix below and let me know if it works for you.
[ 1534541 ] Naming Service not read for Java 1.5
You may monitor this Tracker item after you log in <http://sourceforge.net/account/login.php> (register an account, if you do not already have one <http://sourceforge.net/account/registration/> )
Submitted By:
cmeiding - cmeiding <http://sourceforge.net/users/cmeiding/>
Date Submitted:
2006-08-04 13:39
Last Updated By:
Item Submitter - Tracker Item Submitted
Date Last Updated:
No updates since submission
Number of Comments:
0
Number of Attachments:
0
Category: (?) <javascript:help_window('/help/tracker.php?helpname=category')>
None
Group: (?) <javascript:help_window('/help/tracker.php?helpname=group')>
None
Assigned To: (?) <javascript:help_window('/help/tracker.php?helpname=assignee')>
Nobody/Anonymous
Priority: (?) <javascript:help_window('/help/tracker.php?helpname=priority')>
5
Status: (?) <javascript:help_window('/help/tracker.php?helpname=status')>
Open
Resolution: (?) <javascript:help_window('/help/tracker.php?helpname=resolution')>
None
Summary: (?) <javascript:help_window('/help/tracker.php?helpname=summary')>
Naming Service not read for Java 1.5
Private: (?) <javascript:help_window('/help/tracker.php?helpname=private')>
No
Naming Service will not build under Java 1.5. To fix,
in src/test/org/openorb/ns/test/jndi/NamingTest.java,
change all occurrences of the "enum" local variable to
"_enum".
(version 1.4.0)
Here is the virtual Ip configuration present in the NameServiceMirror.cfg
SESM 47.142.101.137 NameService/Subnet_7 Subnet_7 2001 2001
SESM 47.142.92.209 NameService/Upgrade_7 Upgrade_7 2001 2001
SESM 47.142.128.82 NameService/Test_7 Test_7 2001 2001
No space is added here.The same thin g was working in the previous relaeases. Now with New version of OpenORB where "tns" is used, I am getting this error.
Please let me know your inputs.
Regards,
Rashmi Chidambara Rao.
Regards,
Rashmi Chidambara Rao.
Rashmi,
What I can see immediately of a possible cause is the "virtual IP". I have highlighted the error statment in Bold-Red below. In your configuration file, if you provide the Virtual IP address instead of rtpniems, does it work? Check for any mistakenly inserted "spaces". This is just for testing whether there is communication happening between the 2 ORBs. If this works then the problem is more related to Name Translations rather than the ORB communicating with each other.
________________________________
From: Rashmi Chidambara Rao (WT01 - Telecom Equipment)
Sent: Monday, January 05, 2009 11:09 AM
To: Ashok Bhat (WT01 - Business Technology Services (FS & TMT))
Subject: RE: naming service mirror exception
Hi Ashok,
Thanks a lot for your reply.
Please find the problem description:
Here are two types of machine setup :
* OpenORB 1.3.0, Java 1.5.16 on one machine and virtual IP is configured on another machine with OpenORB 1.4.0 and Java 1.5_16.
Here the NameService is mirrored.
* OpenORB 1.4.0, Java 1.5._16 on one machine and virtual I is configured on the another machine with OpenORB1.4.0 and java 1.5_16
Here also name Sevice mirroring need to be established.
NameService is happening on the local context. For Nameservice mirroring we maintain one nameservicemirror.cfg. using this NameService binding will be done for the local and the remote machine. Due this Name service mirror will be obtained from the server to virtual machine.
Here I am facing the problem where binding is not happening between two machines. To bind the Naming context I use "NameService " string.
Below mentioned are the logs
First machine where the corba is running
Dec 26 06:38:06 rtpnsesm OpenORB NamingService: [Pool thread #1] [DEBUG] (orb.ldr#9516880): ServerChannel: (iiop) 2001 (2001 <- rtpnsesm:63
124) request #18 completed
Dec 26 06:38:07 rtpnsesm SSPFSServer: Fri Dec 26 06:38:07 EST 2008 No CORBA binding:NameService/Patching at rtpniems
Dec 26 06:38:07 rtpnsesm OpenORB NamingService: [Receive Worker for ServerChannel: (iiop) 2001 (2001 <- localhost:62784)] [DEBUG] (orb.ldr#
9516880.ssq):
Dec 26 06:38:07 rtpnsesm OpenORB NamingService: ------------------------------------------------------
Dec 26 06:38:07 rtpnsesm OpenORB NamingService: ( Incoming message ) Displaying a buffer, size = 84
Dec 26 06:38:07 rtpnsesm OpenORB NamingService: ------------------------------------------------------
Dec 26 06:38:07 rtpnsesm OpenORB NamingService: GIOP.... ...H.... 47494F50 01000000 00000048 00000002
Dec 26 06:38:07 rtpnsesm OpenORB NamingService: ........ ....NEO. 00000011 00000002 0002001B 4E454F00
Dec 26 06:38:07 rtpnsesm OpenORB NamingService: ........ ...(.ame 00000002 00140000 00000028 01616D65
Dec 26 06:38:07 rtpnsesm OpenORB NamingService: ....INIT ....get. 00000004 494E4954 00000004 67657400
Dec 26 06:38:07 rtpnsesm OpenORB NamingService: ........ NameServ 00000000 0000000C 4E616D65 53657276
Dec 26 06:38:07 rtpnsesm OpenORB NamingService: ice. 69636500
Dec 26 06:38:07 rtpnsesm OpenORB NamingService: ------------------------------------------------------
Dec 26 06:38:07 rtpnsesm OpenORB NamingService:
------
785) request #36 reply stream created. Reply status: 0
Dec 26 06:38:07 rtpnsesm OpenORB NamingService: [Pool thread #1] [DEBUG] (orb.ldr#9516880.ssq):
Dec 26 06:38:07 rtpnsesm OpenORB NamingService: ------------------------------------------------------
Dec 26 06:38:07 rtpnsesm OpenORB NamingService: ( Sending message ) Displaying a buffer, size = 25
Dec 26 06:38:07 rtpnsesm OpenORB NamingService: ------------------------------------------------------
Dec 26 06:38:07 rtpnsesm OpenORB NamingService: GIOP.... .......$ 47494F50 01020001 0000000D 00000024
Dec 26 06:38:07 rtpnsesm OpenORB NamingService: ........ . 00000000 00000000 00
Dec 26 06:38:07 rtpnsesm OpenORB NamingService: ------------------------------------------------------
Dec 26 06:38:07 rtpnsesm OpenORB NamingService:
Dec 26 06:38:07 rtpnsesm OpenORB NamingService: [Pool thread #1] [DEBUG] (orb.ldr#9516880): ServerChannel: (iiop) 2001 (2001 <- rtpnsesm:62
785) request #36 last fragment sent after buffer close
Dec 26 06:38:07 rtpnsesm OpenORB NamingService: [Pool thread #1] [DEBUG] (orb.ldr#9516880): ServerChannel: (iiop) 2001 (2001 <- rtpnsesm:62
785) request #36 completed
Dec 26 06:38:07 rtpnsesm SSPFSServer: Fri Dec 26 06:38:07 EST 2008 No CORBA binding:NameService/Subnet_7 at 47.142.90.34
Dec 26 06:38:08 rtpnsesm OpenORB NamingService: [Worker for ServerProtocol: (iiop) /0.0.0.0:2001] [DEBUG] (orb.ldr#9516880): ServerChannel:
(iiop) 2001 (2001 <- rtpnmg9kem.us.nortel.com:51046) created
Dec 26 06:38:08 rtpnsesm OpenORB NamingService: [Receive Worker for ServerChannel: (iiop) 2001 (2001 <- rtpnmg9kem.us.nortel.com:51046)] [D
EBUG] (orb.ldr#9516880.ssq):
Dec 26 06:38:08 rtpnsesm OpenORB NamingService: [Pool thread #1] [DEBUG] (orb.ldr#9516880): ServerChannel: (iiop) 2001 (2001 <- rtpnmg9kem.
us.nortel.com:51046) request #6 last fragment sent after buffer close
Dec 26 06:38:08 rtpnsesm OpenORB NamingService: [Pool thread #1] [DEBUG] (orb.ldr#9516880): ServerChannel: (iiop) 2001 (2001 <- rtpnmg9kem.
us.nortel.com:51046) request #6 completed
Dec 26 06:38:10 rtpnsesm OpenORB NamingService: [Receive Worker for ServerChannel: (iiop) 2001 (2001 <- rtpnmg9kem.us.nortel.com:51046)] [D
EBUG] (orb.ldr#9516880.ssq): Error receiving message in process_or_enqueue
Dec 26 06:38:10 rtpnsesm OpenORB NamingService: java.io.EOFException: The end of the stream has been reached, no bytes available!
Dec 26 06:38:10 rtpnsesm OpenORB NamingService: at org.openorb.orb.iiop.IIOPTransport.readMagic(IIOPTransport.java:579)
Dec 26 06:38:10 rtpnsesm OpenORB NamingService: at org.openorb.orb.iiop.IIOPTransport.recvMessage(IIOPTransport.java:427)
Dec 26 06:38:10 rtpnsesm OpenORB NamingService: at org.openorb.orb.iiop.SocketQueue.process_or_enqueue(SocketQueue.java:265)
Dec 26 06:38:10 rtpnsesm OpenORB NamingService: at org.openorb.orb.iiop.SocketQueue.receive(SocketQueue.java:211)
Dec 26 06:38:10 rtpnsesm OpenORB NamingService: at org.openorb.orb.iiop.IIOPServerChannel.run_recv(IIOPServerChannel.java:609)
Dec 26 06:38:10 rtpnsesm OpenORB NamingService: at org.openorb.orb.net.ServerManagerImpl$ChannelRecvRunner.run(ServerManagerImpl.ja
va:880)
Dec 26 06:38:10 rtpnsesm OpenORB NamingService: at java.lang.Thread.run(Thread.java:595)
Dec 26 06:38:10 rtpnsesm OpenORB NamingService: [Receive Worker for ServerChannel: (iiop) 2001 (2001 <- rtpnmg9kem.us.nortel.com:51046)] [D
EBUG] (orb.ldr#9516880): ServerChannel: (iiop) 2001 (2001 <- rtpnmg9kem.us.nortel.com:51046) disorderly shutdown
Dec 26 06:38:10 rtpnsesm OpenORB NamingService: [Receive Worker for ServerChannel: (iiop) 2001 (2001 <- rtpnmg9kem.us.nortel.com:51046)] [D
EBUG] (orb.iiop.iiop-server-init): An EOFException occured during recvMessage() while closing connection!
Dec 26 06:38:10 rtpnsesm OpenORB NamingService: java.io.EOFException: The end of the stream has been reached, no bytes available!
Dec 26 06:38:10 rtpnsesm OpenORB NamingService: [Pool thread #1] [DEBUG] (orb.ldr#9516880): ServerChannel: (iiop) 2001 (2001 <- rtpnmg9kem.
us.nortel.com:51051) request #6 reply stream created. Reply status: 0
Dec 26 06:38:10 rtpnsesm OpenORB NamingService: [Pool thread #1] [DEBUG] (orb.ldr#9516880.ssq):
Dec 26 06:38:10 rtpnsesm OpenORB NamingService: ------------------------------------------------------
Dec 26 06:38:10 rtpnsesm OpenORB NamingService: ( Sending message ) Displaying a buffer, size = 210
Dec 26 06:38:10 rtpnsesm OpenORB NamingService: ------------------------------------------------------
Dec 26 06:38:10 rtpnsesm OpenORB NamingService: GIOP.... ...?.... 47494F50 01020001 000000C6 00000006
Dec 26 06:38:10 rtpnsesm OpenORB NamingService: ........ ...9IDL: 00000000 00000000 00000039 49444C3A
Dec 26 06:38:10 rtpnsesm OpenORB NamingService: com/nort el/sspfs 636F6D2F 6E6F7274 656C2F73 73706673
Dec 26 06:38:10 rtpnsesm OpenORB NamingService: /propert yBrowser 2F70726F 70657274 7942726F 77736572
Dec 26 06:38:10 rtpnsesm OpenORB NamingService: /Propert yBrowser 2F50726F 70657274 7942726F 77736572
Dec 26 06:38:10 rtpnsesm OpenORB NamingService: :1.0.... ........ 3A312E30 00000000 00000001 00000000
Dec 26 06:38:10 rtpnsesm OpenORB NamingService: ...n.... ....47.1 0000006E 00010200 0000000D 34372E31
Dec 26 06:38:10 rtpnsesm OpenORB NamingService: 42.90.30 ..?#.... 34322E39 302E3330 0000F523 00000019
Dec 26 06:38:10 rtpnsesm OpenORB NamingService: ???..... s....... AFABCB00 00000002 73149391 00000008
Dec 26 06:38:10 rtpnsesm OpenORB NamingService: ........ ........ 00000000 00000000 14000000 00000002
Dec 26 06:38:10 rtpnsesm OpenORB NamingService: ....... ........ 00000001 00000020 00000000 00010001
Dec 26 06:38:13 rtpnsesm OpenORB NamingService: [Pool thread #1] [DEBUG] (orb.ldr#9516880): ServerChannel: (iiop) 2001 (2001 <- rtpnsesm:63
124) request #20 completed
Dec 26 06:38:13 rtpnsesm SSPFSServer: Fri Dec 26 06:38:13 EST 2008 No CORBA binding:NameService/Patching at rtpniems
Dec 26 06:38:13 rtpnsesm OpenORB NamingService: [Receive Worker for ServerChannel: (iiop) 2001 (2001 <- localhost:62784)] [DEBUG] (orb.ldr#
9516880.ssq):
Dec 26 06:38:17 rtpnsesm SSPFSServer: Fri Dec 26 06:38:17 EST 2008 No CORBA binding:NameService/Patching at rtpniems
Dec 26 06:38:17 rtpnsesm OpenORB NamingService: [Receive Worker for ServerChannel: (iiop) 2001 (2001 <- localhost:62784)] [DEBUG] (orb.ldr#
9516880.ssq):
Dec 26 06:38:17 rtpnsesm OpenORB NamingService: ------------------------------------------------------
Iems
This is the second machine log. this mchines ip is configured as virtual ip for the first machine and this machine has to obatain name service mirroring.
Dec 26 06:38:07 rtpniems OpenORB NamingService:
Dec 26 06:38:07 rtpniems OpenORB NamingService: [Pool thread #1] [DEBUG] (orb.ldr#9516880): ServerChannel: (iiop) 2001 (2001 <- rtpnsesm.us.no
rtel.com:63132) request #5 last fragment sent after buffer close
Dec 26 06:38:07 rtpniems OpenORB NamingService: [Pool thread #1] [DEBUG] (orb.ldr#9516880): ServerChannel: (iiop) 2001 (2001 <- rtpnsesm.us.no
rtel.com:63132) request #5 completed
Dec 26 06:38:07 rtpniems OpenORB NamingService: [Worker for ServerProtocol: (iiop) /0.0.0.0:2001] [DEBUG] (orb.ldr#9516880): ServerChannel: (i
iop) 2001 (2001 <- rtpnsesm.us.nortel.com:63136) created
Dec 26 06:38:07 rtpniems OpenORB NamingService: [Receive Worker for ServerChannel: (iiop) 2001 (2001 <- rtpnsesm.us.nortel.com:63136)] [DEBUG]
(orb.ldr#9516880.ssq):
Dec 26 06:38:13 rtpniems OpenORB NamingService:
Dec 26 06:38:13 rtpniems OpenORB NamingService: [Pool thread #1] [DEBUG] (orb.ldr#9516880): ServerChannel: (iiop) 2001 (2001 <- rtpnsesm.us.no
rtel.com:63132) request #15 last fragment sent after buffer close
Dec 26 06:38:13 rtpniems OpenORB NamingService: [Pool thread #1] [DEBUG] (orb.ldr#9516880): ServerChannel: (iiop) 2001 (2001 <- rtpnsesm.us.no
rtel.com:63132) request #15 completed
Dec 26 06:38:13 rtpniems OpenORB NamingService: [Receive Worker for ServerChannel: (iiop) 2001 (2001 <- rtpnsesm.us.nortel.com:63132)] [DEBUG]
(orb.ldr#9516880.ssq):
Dec 26 06:38:13 rtpniems OpenORB NamingService: ------------------------------------------------------
Dec 26 06:38:13 rtpniems OpenORB NamingService: ( Incoming message ) Displaying a buffer, size = 84
Dec 26 06:38:13 rtpniems OpenORB NamingService: ------------------------------------------------------
Dec 26 06:38:13 rtpniems OpenORB NamingService: GIOP.... ...H.... 47494F50 01000000 00000048 00000002
Dec 26 06:38:13 rtpniems OpenORB NamingService: ........ ....NEO. 00000011 00000002 0002001B 4E454F00
Dec 26 06:38:13 rtpniems OpenORB NamingService: ........ .....ame 00000002 00140000 00000010 01616D65
Dec 26 06:38:13 rtpniems OpenORB NamingService: ....INIT ....get. 00000004 494E4954 00000004 67657400
Dec 26 06:38:13 rtpniems OpenORB NamingService: ........ NameServ 00000000 0000000C 4E616D65 53657276
Dec 26 06:38:13 rtpniems OpenORB NamingService: ice. 69636500
Dec 26 06:38:13 rtpniems OpenORB NamingService: ------------------------------------------------------
Dec 26 06:38:13 rtpniems OpenORB NamingService:
Dec 26 06:38:15 rtpniems OpenORB NamingService: [Pool thread #1] [DEBUG] (orb.ldr#9516880): ServerChannel: (iiop) 2001 (2001 <- rtpniems:51425
) request #6 last fragment sent after buffer close
Dec 26 06:38:15 rtpniems OpenORB NamingService: [Pool thread #1] [DEBUG] (orb.ldr#9516880): ServerChannel: (iiop) 2001 (2001 <- rtpniems:51425
) request #6 completed
Dec 26 06:38:15 rtpniems NamingServiceMonitor: 1
Dec 26 06:38:16 rtpniems OpenORB NamingService: [Receive Worker for ServerChannel: (iiop) 2001 (2001 <- localhost:51421)] [DEBUG] (orb.ldr#951
6880.ssq): Error receiving message in process_or_enqueue
Dec 26 06:38:16 rtpniems OpenORB NamingService: java.io.EOFException: The end of the stream has been reached, no bytes available!
Dec 26 06:38:16 rtpniems OpenORB NamingService: at org.openorb.orb.iiop.IIOPTransport.readMagic(IIOPTransport.java:579)
Dec 26 06:38:16 rtpniems OpenORB NamingService: at org.openorb.orb.iiop.IIOPTransport.recvMessage(IIOPTransport.java:427)
Dec 26 06:38:16 rtpniems OpenORB NamingService: at org.openorb.orb.iiop.SocketQueue.process_or_enqueue(SocketQueue.java:265)
Dec 26 06:38:16 rtpniems OpenORB NamingService: at org.openorb.orb.iiop.SocketQueue.receive(SocketQueue.java:211)
Dec 26 06:38:16 rtpniems OpenORB NamingService: at org.openorb.orb.iiop.IIOPServerChannel.run_recv(IIOPServerChannel.java:609)
Dec 26 06:38:16 rtpniems OpenORB NamingService: at org.openorb.orb.net.ServerManagerImpl$ChannelRecvRunner.run(ServerManagerImpl.java:
880)
Some of the other logs on first machine:
Dec 26 06:36:22 rtpnsesm OpenORB NamingService: at java.lang.Thread.run(Thread.java:595)
Dec 26 06:36:24 rtpnsesm SSPFSServer: Explicit Naming Context Mirror started with confiugration in /opt/corba/rcscripts/NamingServiceMirrors.c
fg and default sleep factor.
Dec 26 06:36:24 rtpnsesm SSPFSServer: Initializing using 6 column data format.....
Dec 26 06:36:24 rtpnsesm OpenORB NamingService: [Worker for ServerProtocol: (iiop) /0.0.0.0:2001] [DEBUG] (orb.ldr#9516880): ServerChannel: (i
iop) 2001 (2001 <- localhost:62784) created
Dec 26 06:36:24 rtpnsesm OpenORB NamingService: [Receive Worker for ServerChannel: (iiop) 2001 (2001 <- localhost:62784)] [DEBUG] (orb.ldr#951
6880.ssq):
Dec 26 06:36:24 rtpnsesm OpenORB NamingService: ... .... ........ 00010020 00010109 00000001
00010100
Dec 26 06:36:25 rtpnsesm SSPFSServer: Fri Dec 26 06:36:25 EST 2008 Explicit CORBA NS Mirror. 47.142.90.34:NameService/Subnet_7
Dec 26 06:36:25 rtpnsesm SSPFSServer: Initializing using 6 column data format.....
Dec 26 06:36:25 rtpnsesm SSPFSServer: Dec 26, 2008 6:36:25 AM com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl <init>
Dec 26 06:36:25 rtpnsesm SSPFSServer: WARNING: "IOP00410201: (COMM_FAILURE) Connection failure: socketType: IIOP_CLEAR_TEXT; hostname: rtpniem
s; port: 2001"
Dec 26 06:36:25 rtpnsesm SSPFSServer: org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
Dec 26 06:36:25 rtpnsesm SSPFSServer: at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:217
2)
Dec 26 06:36:25 rtpnsesm SSPFSServer: at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:219
3)
Dec 26 06:36:25 rtpnsesm SSPFSServer: at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.
java:205)
Dec 26 06:36:25 rtpnsesm SSPFSServer: at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.
java:218)
Dec 26 06:36:25 rtpnsesm SSPFSServer: at com.sun.corba.se.impl.transport.SocketOrChannelContactInfoImpl.createConnection(SocketOrChannelCont
actInfoImpl.java:101)
Please provide your inputs on the same. If you need the other logs please let me know.
Regards,
Rashmi Chidambara Rao.
|