[omniORB] VisiBroker, omniORB and wstring -> Exception

Сергей Халипский Сергей Халипский
Fri Apr 22 12:41:35 BST 2005


I use omniORB-4.0.5 (client) and VisiBroker for C ++ 4.0 (4.5) 
(server). In an idl-file there is a following:
interface MyInterface
{
     ...
     void HelloWFunc (in wstring message);
     ...
};

	When I call function HelloWFunc (...) from the client in omniORB the 
mistake BAD_PARAM_WcharTCSNotKnown jumps out and on the server the 
given function is not carried out. Debug of the client following:

omniORB: (0) Distribution date: Mon Oct 18 18:06:03 BST 2004 dgrisby
omniORB: (0) My addresses are:
omniORB: 10.2.11.74
omniORB: 127.0.0.1
omniORB: (0) Maximum supported GIOP version is 1.2
omniORB: (0) Native char code sets: ISO-8859-2 ISO-8859-3 ISO-8859-4 
ISO-8859-5 SO-8859-6 ISO-8859-7 ISO-8859-8 ISO-8859-9 ISO-8859-10 
windows-1251 IBM-037 IBM-500 SNI-EDF-4 UTF-8 ISO-8859-1.
omniORB: (0) Transmission char code sets: ISO-8859-2(255.37) 
ISO-8859-3(255.37) SO-8859-4(255.37) ISO-8859-5(255.37) 
ISO-8859-6(255.37) ISO-8859-7(255.37) ISO-8859-8(255.37) 
ISO-8859-9(255.37) ISO-8859-10(255.37) windows-1251(255.37) 
IBM-037(255.37) IBM-037(255.37) IBM-500(255.37) IBM-500(255.37) 
SNI-EDF-4(255.37) SNI-EDF-4(255.37) UTF-8(1.2) UTF-8(1.1) 
ISO-8859-1(1.2) ISO-8859-1(1.1) ISO-8859-1(1.0).
omniORB: (0) Native wide char code sets: UTF-16.
omniORB: (0) Transmission wide char code sets: UTF-16(1.2).
omniORB: (0) Information: the omniDynamic library is not linked.
omniORB: (0) Current configuration is as follows:
omniORB:   DefaultInitRef (file) =
omniORB:   DefaultInitRef (args) =
omniORB:   InitRef = NameService=corbaname::localhost:13999
omniORB:   abortOnInternalError = 0
omniORB:   acceptBiDirectionalGIOP = 0
omniORB:   acceptMisalignedTcIndirections = 1
omniORB:   bootstrapAgentHostname =
omniORB:   bootstrapAgentPort = 900
omniORB:   clientCallTimeOutPeriod = 0
omniORB:   clientTransportRule = * unix,ssl,tcp
omniORB:   diiThrowsSysExceptions = 0
omniORB:   dumpConfiguration = 0
omniORB:   endPoint = giop:tcp::
omniORB:   endPointPublishAllIFs = 0
omniORB:   giopMaxMsgSize = 2097152
omniORB:   giopTargetAddressMode = KeyAddr
omniORB:   id = omniORB4
omniORB:   inConScanPeriod = 0
omniORB:   lcdMode = 1
omniORB:   maxGIOPConnectionPerServer = 5
omniORB:   maxGIOPVersion = 1.2
omniORB:   maxInterleavedCallsPerConnection = 5
omniORB:   maxServerThreadPerConnection = 100
omniORB:   maxServerThreadPoolSize = 100
omniORB:   nativeCharCodeSet = ISO-8859-1
omniORB:   nativeWCharCodeSet = UTF-16
omniORB:   objectTableSize = 0
omniORB:   offerBiDirectionalGIOP = 0
omniORB:   omniORB_27_CompatibleAnyExtraction = 0
omniORB:   oneCallPerConnection = 1
omniORB:   outConScanPeriod = 0
omniORB:   poaHoldRequestTimeout = 0
omniORB:   poaUniquePersistentSystemIds = 1
omniORB:   principal = [Null]
omniORB:   scanGranularity = 0
omniORB:   serverCallTimeOutPeriod = 0
omniORB:   serverTransportRule = * unix,ssl,tcp
omniORB:   strictIIOP = 0
omniORB:   supportBootstrapAgent = 0
omniORB:   supportCurrent = 1
omniORB:   supportPerThreadTimeOut = 0
omniORB:   tcAliasExpand = 1
omniORB:   threadPerConnectionLowerLimit = 9000
omniORB:   threadPerConnectionPolicy = 1
omniORB:   threadPerConnectionUpperLimit = 10000
omniORB:   threadPoolWatchConnection = 1
omniORB:   traceExceptions = 1
omniORB:   traceInvocations = 1
omniORB:   traceLevel = 40
omniORB:   traceThreadId = 1
omniORB:   unixTransportDirectory = /tmp/omni-%u
omniORB:   unixTransportPermission =  777
omniORB:   useTypeCodeIndirections = 0
omniORB:   verifyObjectExistsAndType = 0
omniORB: (0) Creating ref to remote: key<NameService>
  target id      : IDL:omg.org/CORBA/Object:1.0
  most derived id:
omniORB: (0) Initial reference `NameService' resolved from 
configuration file.
omniORB: (0) Invoke '_is_a' on remote: key<NameService>
omniORB: (0) Client attempt to connect to giop:tcp:localhost:13999
omniORB: (0) Client opened connection to giop:tcp:127.0.0.1:13999
omniORB: (0) sendChunk: to giop:tcp:127.0.0.1:13999 100 bytes
omniORB: (0)
4749 4f50 0100 0100 5800 0000 0000 0000 GIOP....X.......
0200 0000 016f 7773 0b00 0000 4e61 6d65 .....ows....Name
5365 7276 6963 6566 0600 0000 5f69 735f Servicef...._is_
6100 6620 0000 0000 2800 0000 4944 4c3a a.f ....(...IDL:
6f6d 672e 6f72 672f 436f 734e 616d 696e omg.org/CosNamin
672f 4e61 6d69 6e67 436f 6e74 6578 743a g/NamingContext:
312e 3000                               1.0.
omniORB: (0) inputMessage: from giop:tcp:127.0.0.1:13999 224 bytes
omniORB: (0)
4749 4f50 0100 0101 d400 0000 0000 0000 GIOP............
0200 0000 0300 0000 2b00 0000 4944 4c3a ........+...IDL:
6f6d 672e 6f72 672f 436f 734e 616d 696e omg.org/CosNamin
672f 4e61 6d69 6e67 436f 6e74 6578 7445 g/NamingContextE
7874 3a31 2e30 0000 0100 0000 0000 0000 xt:1.0..........
8c00 0000 0001 0200 0000 000b 3130 2e32 ............10.2
2e31 312e 3734 0000 36af 0000 0000 0029 .11.74..6......)
0050 4d43 0000 0004 0000 0018 2f43 4f4e .PMC......../CON
5445 5854 5f50 4f41 4e61 6d65 5365 7276 TEXT_POANameServ
6963 6500 0000 0001 3200 0000 0000 0003 ice.....2.......
5649 5303 0000 0005 0005 0701 7f00 0000 VIS.............
0000 0000 0000 0008 0000 0000 5649 5300 ............VIS.
0000 0001 0000 0018 0000 0000 0001 0001 ................
0000 0001 0501 0001 0001 0109 0000 0000 ................
omniORB: (0) Creating ref to remote: 
key<.PMC.........CONTEXT.POANameService.....2>
  target id      : IDL:omg.org/CORBA/Object:1.0
  most derived id: IDL:omg.org/CosNaming/NamingContextExt:1.0
omniORB: (0) GIOP::LOCATION_FORWARD -- retry request.
omniORB: (0) omniRemoteIdentity deleted.
omniORB: (0) ObjRef(IDL:omg.org/CosNaming/NamingContextExt:1.0) -- 
deleted.
omniORB: (0) Invoke '_is_a' on remote: 
key<.PMC.........CONTEXT.POANameService.....2>
omniORB: (0)  send codeset service context: (ISO-8859-1,UTF-16)
omniORB: (0) Client attempt to connect to giop:tcp:10.2.11.74:13999
omniORB: (0) Client opened connection to giop:tcp:10.2.11.74:13999
omniORB: (0) sendChunk: to giop:tcp:10.2.11.74:13999 156 bytes
omniORB: (0)
4749 4f50 0102 0100 9000 0000 0200 0000 GIOP............
0300 0000 0000 3330 2900 0000 0050 4d43 ......30)....PMC
0000 0004 0000 0018 2f43 4f4e 5445 5854 ......../CONTEXT
5f50 4f41 4e61 6d65 5365 7276 6963 6500 _POANameService.
0000 0001 3230 3020 0600 0000 5f69 735f ....200 ...._is_
6100 3032 0100 0000 0100 0000 0c00 0000 a.02............
0100 0000 0100 0100 0901 0100 2e2e 2e2e ................
2800 0000 4944 4c3a 6f6d 672e 6f72 672f (...IDL:omg.org/
436f 734e 616d 696e 672f 4e61 6d69 6e67 CosNaming/Naming
436f 6e74 6578 743a 312e 3000           Context:1.0.
omniORB: (0) inputMessage: from giop:tcp:10.2.11.74:13999 25 bytes
omniORB: (0)
4749 4f50 0102 0101 0d00 0000 0200 0000 GIOP............
0000 0000 0000 0000 01                  .........
omniORB: (0) Creating ref to remote: 
key<.PMC.........CONTEXT.POANameService.....2>
  target id      : IDL:omg.org/CosNaming/NamingContext:1.0
  most derived id:
omniORB: (0) Invoke 'resolve' on remote: 
key<.PMC.........CONTEXT.POANameService.....2>
omniORB: (0) sendChunk: to giop:tcp:10.2.11.74:13999 117 bytes
omniORB: (0)
4749 4f50 0102 0100 6900 0000 0400 0000 GIOP....i.......
0300 0000 0000 3330 2900 0000 0050 4d43 ......30)....PMC
0000 0004 0000 0018 2f43 4f4e 5445 5854 ......../CONTEXT
5f50 4f41 4e61 6d65 5365 7276 6963 6500 _POANameService.
0000 0001 3230 3020 0800 0000 7265 736f ....200 ....reso
6c76 6500 0000 0000 0100 0000 1000 0000 lve.............
4d79 496e 7465 7266 6163 6549 6d70 6c00 MyInterfaceImpl.
0100 0000 00                            .....
omniORB: (0) inputMessage: from giop:tcp:10.2.11.74:13999 244 bytes
omniORB: (0)
4749 4f50 0102 0101 e800 0000 0400 0000 GIOP............
0000 0000 0000 0000 1400 0000 4944 4c3a ............IDL:
4d79 496e 7465 7266 6163 653a 312e 3000 MyInterface:1.0.
0200 0000 0153 4956 5800 0000 0101 0220 .....SIVX......
0800 0000 3631 312d 6b73 6100 fc0e 0000 ....611-ksa.....
0000 0000 3700 0000 0150 4d43 0400 0000 ....7....PMC....
1500 0000 2f4d 7949 6e74 6572 6661 6365 ..../MyInterface
496d 706c 5f50 4f41 0020 2020 0f00 0000 Impl_POA.   ....
4d79 496e 7465 7266 6163 6549 6d70 6c20 MyInterfaceImpl
0000 0000 0000 0000 5800 0000 0001 0200 ........X.......
0000 000b 3130 2e32 2e31 312e 3734 0000 ....10.2.11.74..
0425 0000 0000 0037 0050 4d43 0000 0004 .%.....7.PMC....
0000 0015 2f4d 7949 6e74 6572 6661 6365 ..../MyInterface
496d 706c 5f50 4f41 0020 2020 0000 000f Impl_POA.   ....
4d79 496e 7465 7266 6163 6549 6d70 6c00 MyInterfaceImpl.
0000 0000                               ....
omniORB: (0) Creating ref to remote: 
key<.PMC.........MyInterfaceImpl.POA........MyInterfaceImpl>
  target id      : IDL:omg.org/CORBA/Object:1.0
  most derived id: IDL:MyInterface:1.0
omniORB: (0) Invoke 'HelloWFunc' on remote: 
key<.PMC.........MyInterfaceImpl.POA........MyInterfaceImpl>
omniORB: (0) throw BAD_PARAM from cs-UTF-16.cc:182 
(NO,BAD_PARAM_WCharTCSNotKnown)
omniORB: (0) Unexpected error encountered before talking to the server 
giop:tcp:
10.2.11.74:1061 . No connection was opened.
omniORB: (0) ObjRef() -- deleted.

	I read error messages VisiBroker and wstring, but I use VisiBroker 
for C ++, in which there is no parameter 
-Dvbroker.orb.enableVB4backcompat.
	 In what the problems and how can be corrected them?

Cheers, Khalipski Siarhei



More information about the omniORB-list mailing list