| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| Hi All, I have ported my application to 6.3 orbix running on linux and it is a transient server registered with the naming service.I have used implicit activation(using _this()) on the server side. I have a orbix 3.3.4 client running on windows connecting to this 6.3 server. Im able to resolve the name using the naming service reference and even narrow it down to the correct type. I verified both the iors (using iordump) for the reference,on the server as well as the client side. They look alike except for the fact that one was Little Endian and the other was Big Endian. But when i make the first call on the resolved/narrowed reference, the call just hangs. Im not sure what the problem could be. Can someone suggest what might be wrong. Thanks and Best Regards, Ajay. |
|
#2
| |||
| |||
| And i also see these messages in the server logs.. when the 3.3.4 client disconnects.. (IT_ATLI2_IP:101) W - ATLI2 failure receiving data with minor_code 1230242771 occurred in TCPConnectionImpl::readable() (IT_ATLI2_IP:102) W - ATLI2 failure caused by function ::recvmsg() failing with system error 104 ('Connection reset by peer') (IT_ATLI2_IP:103) W - ATLI2 failure occurred in TCP connection from 162.98.14.138.41343 to 162.98.10.166.3163 after sending 0 bytes and receiving 357 bytes (IT_ATLI2_IOP:105) W - ATLI2 Failure occurred on connection to 162.98.10.166.3163: ::recvmsg() failed in TCPConnectionImpl::readable() with: Connection reset by peer Thanks and Best Regards, Ajay. |
|
#3
| |||
| |||
| On 21 Oct, 10:35, Ajju <ksa...@gmail.com> wrote: > [client's first call to an object in a server hangs] > Can someone suggest what might be wrong. My guess is that you are forgetting to call activate() on the POA manager before you call orb->run(). Because of this, the POA manager is remaining in its default state (HOLDING) so it is queuing up all incoming requests rather than dispatching them. Regards, Ciaran. |
|
#4
| |||
| |||
| Hi Ciaran, Thanks for responding. This is what my code looks like. I have a couple of poas created from the root_poa and implementing different policies. PortableServer::POAManager_var mgmt_poa_manager= mgmt_poa- >the_POAManager(); mgmt_poa_manager->activate(); PortableServer::POAManager_var session_poa_manager= session_poa->the_POAManager(); session_poa_manager->activate(); PortableServer::POAManager_var root_poa_manager= root_poa- >the_POAManager(); root_poa_manager->activate(); GSPTINFOM << "Starting Orbix run loop" << GSPTENDL; while (1) { if (orb->work_pending()) { orb->perform_work(); }; } I changed the while loop to orb-> run and checked.. it still doesnt work.. Is there any other specific config parameter/policy i need to implement for interoperability.. I have implemented this as a transient server.. should i reimplement this as a persistent one.. Please suggest.. Thanks and Best Regards, Ajay. |
|
#5
| |||
| |||
| And when we debugged the client java code.. we come to a point where we get a BAD TYPECODE exception. _tc_union: org.omg.CORBA.TypeCode = {IE.Iona.OrbixWeb.CORBA.TypeCode@1809}Method threw 'org.omg.CORBA.BAD_TYPECODE' exception. Cannot evaluate IE.Iona.OrbixWeb.CORBA.TypeCode.toString() _kind: org.omg.CORBA.TCKind = {org.omg.CORBA.TCKind@1848} __value: int = 16 _id: java.lang.String = null _name: java.lang.String = null _members: java.lang.Object[] = null _index: int = -2 details ============ On call of : public static final IE.Iona.OrbixWeb.CORBA.Protocol getOrbixProtocolHandler() static = IE.Iona.OrbixWeb._CORBA _ORBIX_BUNDLE_VERSION: java.lang.String = {java.lang.String@1787}"Orbix 3.3 " _ORBIX_JDK_VERSION: java.lang.String = {java.lang.String@1788}"for JDK 1.1.x/1.2.x/1.3.x " _ORBIX_VERSION: java.lang.String = {java.lang.String@1789}"Orbix Java version 3.3 " _ORBIX_ACTIVATOR_VERSION: java.lang.String = {java.lang.String@1790}"Orbix Java Activator version 3.3.4 " _ORBIX_UTILITY_VERSION: java.lang.String = {java.lang.String@1791}"Orbix Java Utilities version 3.3.4 " DEBUG: boolean = false DIAG: boolean = true _activationHand: IE.Iona.OrbixWeb.Features.ActivationHandler = {IE.Iona.OrbixWeb.Features.DefaultActivationHandle r@1792} _tc_null: org.omg.CORBA.TypeCode = {IE.Iona.OrbixWeb.CORBA.TypeCode@1793}"TypeCode[kind=0,OrbixType=\"n \"]" _tc_void: org.omg.CORBA.TypeCode = {IE.Iona.OrbixWeb.CORBA.TypeCode@1794}"TypeCode[kind=1,OrbixType=\"v \"]" _tc_short: org.omg.CORBA.TypeCode = {IE.Iona.OrbixWeb.CORBA.TypeCode@1795}"TypeCode[kind=2,OrbixType=\"s \"]" _tc_long: org.omg.CORBA.TypeCode = {IE.Iona.OrbixWeb.CORBA.TypeCode@1796}"TypeCode[kind=3,OrbixType=\"l \"]" _tc_ushort: org.omg.CORBA.TypeCode = {IE.Iona.OrbixWeb.CORBA.TypeCode@1797}"TypeCode[kind=4,OrbixType=\"us \"]" _tc_ulong: org.omg.CORBA.TypeCode = {IE.Iona.OrbixWeb.CORBA.TypeCode@1798}"TypeCode[kind=5,OrbixType=\"ul \"]" _tc_float: org.omg.CORBA.TypeCode = {IE.Iona.OrbixWeb.CORBA.TypeCode@1799}"TypeCode[kind=6,OrbixType=\"f \"]" _tc_double: org.omg.CORBA.TypeCode = {IE.Iona.OrbixWeb.CORBA.TypeCode@1800}"TypeCode[kind=7,OrbixType=\"d \"]" _tc_boolean: org.omg.CORBA.TypeCode = {IE.Iona.OrbixWeb.CORBA.TypeCode@1801}"TypeCode[kind=8,OrbixType=\"b \"]" _tc_char: org.omg.CORBA.TypeCode = {IE.Iona.OrbixWeb.CORBA.TypeCode@1802}"TypeCode[kind=9,OrbixType=\"c \"]" _tc_octet: org.omg.CORBA.TypeCode = {IE.Iona.OrbixWeb.CORBA.TypeCode@1803}"TypeCode[kind=10,OrbixType=\"o \"]" _tc_any: org.omg.CORBA.TypeCode = {IE.Iona.OrbixWeb.CORBA.TypeCode@1804}"TypeCode[kind=11,OrbixType=\"a \"]" _tc_TypeCode: org.omg.CORBA.TypeCode = {IE.Iona.OrbixWeb.CORBA.TypeCode@1805}"TypeCode[kind=12,OrbixType=\"T \"]" _kind: org.omg.CORBA.TCKind = {org.omg.CORBA.TCKind@1849} __value: int = 12 _id: java.lang.String = null _name: java.lang.String = null _members: java.lang.Object[] = null _index: int = -2 _contents_type: org.omg.CORBA.TypeCode = null _orbix_tc: IE.Iona.OrbixWeb.OrbixProt.OrbixTypeCode = {IE.Iona.OrbixWeb.OrbixProt.OrbixTypeCode@1850}"T" _recurse: boolean = false _scale: short = 0 _digits: short = 0 _tc_Principal: org.omg.CORBA.TypeCode = {IE.Iona.OrbixWeb.CORBA.TypeCode@1806}"TypeCode[kind=13,OrbixType= \"null\"]" _tc_Object: org.omg.CORBA.TypeCode = {IE.Iona.OrbixWeb.CORBA.TypeCode@1807}"TypeCode[kind=14,id=IDL rg.omg/CORBA/Object:1.0,name=,OrbixType=\"O~\"]" _tc_struct: org.omg.CORBA.TypeCode = {IE.Iona.OrbixWeb.CORBA.TypeCode@1808}"TypeCode[kind=15,OrbixType= \"R~null~\"]" _tc_union: org.omg.CORBA.TypeCode = {IE.Iona.OrbixWeb.CORBA.TypeCode@1809}Method threw 'org.omg.CORBA.BAD_TYPECODE' exception. Cannot evaluate IE.Iona.OrbixWeb.CORBA.TypeCode.toString() _kind: org.omg.CORBA.TCKind = {org.omg.CORBA.TCKind@1848} __value: int = 16 _id: java.lang.String = null _name: java.lang.String = null _members: java.lang.Object[] = null _index: int = -2 _contents_type: org.omg.CORBA.TypeCode = null _orbix_tc: IE.Iona.OrbixWeb.OrbixProt.OrbixTypeCode = null _recurse: boolean = false _scale: short = 0 _digits: short = 0 _tc_enum: org.omg.CORBA.TypeCode = {IE.Iona.OrbixWeb.CORBA.TypeCode@1810}"TypeCode[kind=17,OrbixType= \"E~null~\"]" _tc_string: org.omg.CORBA.TypeCode = {IE.Iona.OrbixWeb.CORBA.TypeCode@1811}"TypeCode[kind=18,OrbixType= \"0\"]" _tc_NamedValue: org.omg.CORBA.TypeCode = {IE.Iona.OrbixWeb.OrbixProt.OrbixTypeCode@1812}"R~ NamedValue~name{0},argument{a},len{l},arg_modes{ul }" _tc_wchar: org.omg.CORBA.TypeCode = {IE.Iona.OrbixWeb.CORBA.TypeCode@1813}"TypeCode[kind=26,OrbixType=\"xc \"]" _tc_wstring: org.omg.CORBA.TypeCode = {IE.Iona.OrbixWeb.CORBA.TypeCode@1814}"TypeCode[kind=27,OrbixType= \"xs0\"]" _tc_longlong: org.omg.CORBA.TypeCode = {IE.Iona.OrbixWeb.CORBA.TypeCode@1815}"TypeCode[kind=23,OrbixType=\"xl \"]" _tc_ulonglong: org.omg.CORBA.TypeCode = {IE.Iona.OrbixWeb.CORBA.TypeCode@1816}"TypeCode[kind=24,OrbixType=\"xu \"]" _tc_fixed: org.omg.CORBA.TypeCode = {IE.Iona.OrbixWeb.CORBA.TypeCode@1817}"TypeCode[kind=28,OrbixType=\"xf \"]" globOrbixProtocol: IE.Iona.OrbixWeb.CORBA.Protocol = {IE.Iona.OrbixWeb.OrbixProt.OrbixProt@1818} globIIOPProtocol: IE.Iona.OrbixWeb.CORBA.Protocol = {IE.Iona.OrbixWeb.IIOP.IIOPProt@1819} processTermination: int = 0 objectDeletion: int = 1 explicitCall: int = 2 IT_INTEROPERABLE_OR_KIND: int = 1 IT_ORBIX_OR_KIND: int = 0 IT_DEFAULT_OR_KIND: int = 0 IT_INFINITE_TIMEOUT: int = -1 IT_DEFAULT_TIMEOUT: int = 60000 IT_PSEUDO_PID_BASE: int = -889275714 IT_LOCATE_ATTEMPTS: short = 2 IT_IIOP_TC_NO_ENCAP: boolean = false IT_IIOP_TC_ENCAP_SIZE: int = 100 Orbix: IE.Iona.OrbixWeb.CORBA.ORB = {IE.Iona.OrbixWeb.CORBA.ORB@1341}"_CORBA.Orbix" _MAX_LOCATOR_HOPS: int = 10 CTX_RESTRICT_SCOPE: int = 1 CTX_DELETE_DESCENDENTS: int = 2 ARG_IN: int = 1 ARG_OUT: int = 2 ARG_INOUT: int = 3 IN_COPY_VALUE: int = 4 DEPENDENT_LIST: int = 8 ARG_FLAGS: int = 15 magic: byte[] = {byte[4]@1820} Debug info unavailable Thanks and Best Regards, Ajay. |
|
#6
| |||
| |||
| Hi All, I was able to resolve this issue. There was another thread which was blocking and taking up all of the cpu. The orbix one was blocked. And hence the request didnt arrive. Thanks for all your help Ciaran. Best Regards, Ajay. |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.