[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [xmlblaster] Run c++ demo report error



Hallo Zhang,
unfortunately I can't reproduce the error on linux and I currently I have no possibility to test it in windows.


It appears to be an unknown exception (such that I catch with catch(...)). So what I can say for sure is that it is not a CORBA exception nor a CosNaming Exception nor an XmlBlasterException. I changed the code to individually catch also other exceptions such exception, string char* and int (the code is committed in cvs), hoping this way to get a better error message.

So I guess the better thing to do now is to use the debugger and step you to the CorbaDriver::connect method to better see what exactly happens.

Regards
Michele


zhang zhi wei wrote:
Dear sir:
I have downloaded the newest verion form your cvs and compile the xmlblaster
with ORBACUS in windows 2000 system.
when i compile the system, it report some winsock2 type redefine, so i change the #include <winsock2.h> in corbaconnection.h to #include <winsock.h>,and
it ok to compile it .
then i go on to run the demo helloworld2 in "xmlBlaster\demo\c++\bin"
it report the following error, it remind me to send this error to maillist,
i find the error is "connect" method, but i cannot find the reason.


I run the demo with -trace true and -call true , so this gives more information.

The first running method :

D:\xmlBlaster\demo\c++\bin>helloworld2 -trace true
INFO  HelloWorld2 Trying to connect to xmlBlaster with C++ client lib 0.844 from
 03/24/2003 10:24 ÉÏÎç
TRACE CbQueueProperty ::initialize: got the prefix
TRACE CbQueueProperty ::initialize: expires set
TRACE CbQueueProperty ::initialize: expires for the specific node set
TRACE CbQueueProperty ::initialize: setMaxMsg OK
TRACE CbQueueProperty ::initialize: setMaxMsgCache OK
TRACE CbQueueProperty ::initialize: setMaxBytes OK
TRACE CbQueueProperty ::initialize: setMaxBytesCache OK
TRACE CbQueueProperty ::initialize: values for the swap control set
TRACE CbQueueProperty ::initialize: going to set specific node properties
TRACE CbQueueProperty ::initialize: got the prefix
TRACE CbQueueProperty ::initialize: expires set
TRACE CbQueueProperty ::initialize: expires for the specific node set
TRACE CbQueueProperty ::initialize: setMaxMsg OK
TRACE CbQueueProperty ::initialize: setMaxMsgCache OK
TRACE CbQueueProperty ::initialize: setMaxBytes OK
TRACE CbQueueProperty ::initialize: setMaxBytesCache OK
TRACE CbQueueProperty ::initialize: values for the swap control set
TRACE CbQueueProperty ::initialize: going to set specific node properties
TRACE CbQueueProperty ::initialize: got the prefix
TRACE CbQueueProperty ::initialize: expires set
TRACE CbQueueProperty ::initialize: expires for the specific node set
TRACE CbQueueProperty ::initialize: setMaxMsg OK
TRACE CbQueueProperty ::initialize: setMaxMsgCache OK
TRACE CbQueueProperty ::initialize: setMaxBytes OK
TRACE CbQueueProperty ::initialize: setMaxBytesCache OK
TRACE CbQueueProperty ::initialize: values for the swap control set
TRACE CbQueueProperty ::initialize: going to set specific node properties
INFO  HelloWorld2 connecting to xmlBlaster. Connect qos:
<qos>
   <securityService type="htpasswd" version="1.0">
      <![CDATA[
      <user>unknown</user>
      <passwd></passwd>
      ]]>
   </securityService>
   <ptp>true</ptp>
   <duplicateUpdates>false</duplicateUpdates><session name='client/guest/-1' tim
eout='86400000' maxSessions='10' clearSessions='false'/>

   <!-- QueuePropertyBase -->
   <queue relating='callback' storeSwapLevel='1468006' storeSwapBytes='524288' r
eloadSwapLevel='629145' reloadSwapBytes='524288'/>
</qos>
TRACE XmlBlasterAccess-client/guest/-1 Using 'client.cbProtocol=IOR' to be used
by xmlBlaster, trying to create the callback server ...
TRACE CbServerPluginManager getPlugin: type: 'IOR', version: '1.0' for instance
'1048474540640000000'
TRACE CorbaDriver created a new instance for 1048474540640000000
TRACE CbQueueProperty ::initialize: got the prefix
TRACE CbQueueProperty ::initialize: expires set
TRACE CbQueueProperty ::initialize: expires for the specific node set
TRACE CbQueueProperty ::initialize: setMaxMsg OK
TRACE CbQueueProperty ::initialize: setMaxMsgCache OK
TRACE CbQueueProperty ::initialize: setMaxBytes OK
TRACE CbQueueProperty ::initialize: setMaxBytesCache OK
TRACE CbQueueProperty ::initialize: values for the swap control set
TRACE CbQueueProperty ::initialize: going to set specific node properties
INFO  CorbaConnection Initializing CORBA ORB
TRACE CorbaDriver number of instances for '1048474540640000000' are 1TRACE Corba
DriverFactory the corba loop starts now
TRACE XmlBlasterAccess-client/guest/-1
 After callback plugin creation
TRACE CorbaDriver-1048474540640000000 Before createCallbackServer
TRACE CorbaConnection Trying resolve_initial_references ...
TRACE CorbaConnection Trying narrowing POA ...
TRACE CorbaDriver-1048474540640000000 After createCallbackServer
TRACE XmlBlasterAccess-client/guest/-1 After callback plugin initialize
TRACE XmlBlasterAccess-client/guest/-1 ::createDefaultCbServer: connectQos:
<qos>
   <securityService type="htpasswd" version="1.0">
      <![CDATA[
      <user>unknown</user>
      <passwd></passwd>
      ]]>
   </securityService>
   <ptp>true</ptp>
   <duplicateUpdates>false</duplicateUpdates><session name='client/guest/-1' tim
eout='86400000' maxSessions='10' clearSessions='false'/>

   <!-- QueuePropertyBase -->
   <queue relating='callback' storeSwapLevel='1468006' storeSwapBytes='524288' r
eloadSwapLevel='629145' reloadSwapBytes='524288'>
      <callback type='IOR' hostname='127.0.0.1'>
         IOR:01bd12004000000049444c3a6f72672e786d6c426c61737465722e70726f746f636
f6c2e636f7262612f636c69656e7449646c2f426c617374657243616c6c6261636b3a312e3000010
00000000000007c00000001010200130000007a7a777a797a2e6e7564742e6564752e636e00005e0
4120025000000abacab3131303438343734353430005f526f6f74504f410000cafebabe3e7e73ac0
0000000063f000100000001000000240000000107140001000100030000002000010009010100000
10100090101000100000000010100
      </callback>
   </queue>
</qos>
INFO  XmlBlasterAccess-client/guest/-1 Callback settings: type=CACHE onOverflow=
deadMessage onFailure=deadMessage maxMsg=1000 type=IOR oneway=false burstMode.co
llectTime=0
TRACE XmlBlasterAccess-client/guest/-1 ::connect. CbServer done
TRACE QueueProperty ::initialize: got the prefix
TRACE QueueProperty ::initialize: expires set
TRACE QueueProperty ::initialize: expires for the specific node set
TRACE QueueProperty ::initialize: setMaxMsg OK
TRACE QueueProperty ::initialize: setMaxMsgCache OK
TRACE QueueProperty ::initialize: setMaxBytes OK
TRACE QueueProperty ::initialize: setMaxBytesCache OK
TRACE QueueProperty ::initialize: values for the swap control set
TRACE QueueProperty ::initialize: going to set specific node properties
TRACE XmlBlasterAccess-client/guest/-1 ::connect. connectQos:
<qos>
   <securityService type="htpasswd" version="1.0">
      <![CDATA[
      <user>unknown</user>
      <passwd></passwd>
      ]]>
   </securityService>
   <ptp>true</ptp>
   <duplicateUpdates>false</duplicateUpdates><session name='client/guest/-1' tim
eout='86400000' maxSessions='10' clearSessions='false'/>

   <!-- QueuePropertyBase -->
   <queue relating='callback' storeSwapLevel='1468006' storeSwapBytes='524288' r
eloadSwapLevel='629145' reloadSwapBytes='524288'>
      <callback type='IOR' hostname='127.0.0.1'>
         IOR:01bd12004000000049444c3a6f72672e786d6c426c61737465722e70726f746f636
f6c2e636f7262612f636c69656e7449646c2f426c617374657243616c6c6261636b3a312e3000010
00000000000007c00000001010200130000007a7a777a797a2e6e7564742e6564752e636e00005e0
4120025000000abacab3131303438343734353430005f526f6f74504f410000cafebabe3e7e73ac0
0000000063f000100000001000000240000000107140001000100030000002000010009010100000
10100090101000100000000010100
      </callback>
   </queue>
</qos>
TRACE ConnectionsHandler-1048474540640000000 connect: number of retries during c
ommunication failure: -1
TRACE ConnectionsHandler-1048474540640000000 connect: Ping Interval: 10000
TRACE DeliveryManager getPlugin: type: 'IOR', version: '1.0' for instance '10484
74540640000000'
TRACE CorbaDriver number of instances for '1048474540640000000' are 1
TRACE CorbaConnection No -ior ...
TRACE CorbaConnection No -ior.file ...
TRACE CorbaConnection Trying -hostname=zzwzyz and -port=3412 ...
TRACE CorbaConnection Sent IOR request 'GET /AuthenticationService.ior HTTP/1.0

'
TRACE CorbaConnection Received IOR data: 'IOR:000000000000004149444c3a6f72672e78
6d6c426c61737465722e70726f746f636f6c2e636f7262612f61757468656e74696361746549646c
2f417574685365727665723a312e3000000000000000030000000000000038000100000000000d31
37322e32362e31332e3639000004550000001c5374616e64617264496d706c4e616d652f00111423
4a464243020340000000000000003c000101000000000d3137322e32362e31332e36390000045500
00001c5374616e64617264496d706c4e616d652f001114234a464243020340000000000000000100
00002c0000000000000001000000010000001c000000000001000100000001050100010001010900
00000105010001'
INFO  CorbaConnection Accessing xmlBlaster using -hostname zzwzyz
TRACE CorbaConnection connect req:
<qos>
   <securityService type="htpasswd" version="1.0">
      <![CDATA[
      <user>unknown</user>
      <passwd></passwd>
      ]]>
   </securityService>
   <ptp>true</ptp>
   <duplicateUpdates>false</duplicateUpdates><session name='client/guest/-1' tim
eout='86400000' maxSessions='10' clearSessions='false'/>

   <!-- QueuePropertyBase -->
   <queue relating='callback' storeSwapLevel='1468006' storeSwapBytes='524288' r
eloadSwapLevel='629145' reloadSwapBytes='524288'>
      <callback type='IOR' hostname='127.0.0.1'>
         IOR:01bd12004000000049444c3a6f72672e786d6c426c61737465722e70726f746f636
f6c2e636f7262612f636c69656e7449646c2f426c617374657243616c6c6261636b3a312e3000010
00000000000007c00000001010200130000007a7a777a797a2e6e7564742e6564752e636e00005e0
4120025000000abacab3131303438343734353430005f526f6f74504f410000cafebabe3e7e73ac0
0000000063f000100000001000000240000000107140001000100030000002000010009010100000
10100090101000100000000010100
      </callback>
   </queue>
</qos>
TRACE ConnectionsHandler-1048474540640000000 exception occured when connecting
TRACE ConnectionsHandler-1048474540640000000 the exception in connect is <except
ion errorCode='internal.unknown'>
   <class>c++ client</class>
   <node>unknown node</node>
   <location>CorbaDriver-1048474540640000000::connect</location>
   <lang>en</lang>
   <message><![CDATA[This is an unknown and unexpected error, usually a runtime
exception, please post it to the mailing list.]]></message>
   <versionInfo>client-c++</versionInfo>
   <timestamp>1048474540906000000</timestamp>
   <stackTrace><![CDATA[no stack trace provided in this system]]></stackTrace>
   <embeddedMessage><![CDATA[Original errorCode=internal.unknown]]></embeddedMes
sage>
</exception>
TRACE CbServerPluginManager releasePlugin: type: 'IOR', version: '1.0' for insta
nce '1048474540640000000'
TRACE CorbaDriverFactory instances before deleting 1
TRACE CorbaDriver kill instance '1048474540640000000' the number of references i
s 1
TRACE XmlBlasterAccess-client/guest/-1 destructor: going to delete the connectio
n
TRACE DeliveryManager releasePlugin: type: 'IOR', version: '1.0' for instance '1
048474540640000000'
TRACE CorbaDriverFactory instances before deleting 0
TRACE CorbaDriverFactory kill instance '1048474540640000000' will be deleted now

TRACE CorbaConnection destructor: invoking shutdown
TRACE CorbaConnection destructor: invoking shutdownCb
TRACE CorbaConnection destructor: deleting the defaultCallback
TRACE CorbaConnection destructor: releasing the orb
TRACE CorbaConnection destructor: releasing the poa
TRACE ConnectionsHandler-1048474540640000000 destructor: going to delete the con
nectQos
TRACE ConnectionsHandler-1048474540640000000 destructor ended
TRACE XmlBlasterAccess-client/guest/-1 destructor ended
<exception errorCode='internal.unknown'>
   <class>c++ client</class>
   <node>unknown node</node>
   <location>CorbaDriver-1048474540640000000::connect</location>
   <lang>en</lang>
   <message><![CDATA[This is an unknown and unexpected error, usually a runtime
exception, please post it to the mailing list.]]></message>
   <versionInfo>client-c++</versionInfo>
   <timestamp>1048474540906000000</timestamp>
   <stackTrace><![CDATA[no stack trace provided in this system]]></stackTrace>
   <embeddedMessage><![CDATA[Original errorCode=internal.unknown]]></embeddedMes
sage>
</exception>
TRACE CorbaDriverFactory erased all drivers
TRACE CorbaDriverFactory shutting down the orb


/////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////// The second running method:

D:\xmlBlaster\demo\c++\bin>helloworld2 -call true
INFO  HelloWorld2 Trying to connect to xmlBlaster with C++ client lib 0.844 from
 03/24/2003 10:24 ÉÏÎç
CALL  CbQueueProperty ::initialize with property prefix 'callback'
CALL  CbQueueProperty ::initialize with property prefix 'callback'
CALL  XmlBlasterAccess-UNCONNECTED ::constructor
CALL  CbQueueProperty ::initialize with property prefix 'callback'
INFO  HelloWorld2 connecting to xmlBlaster. Connect qos:
<qos>
   <securityService type="htpasswd" version="1.0">
      <![CDATA[
      <user>unknown</user>
      <passwd></passwd>
      ]]>
   </securityService>
   <ptp>true</ptp>
   <duplicateUpdates>false</duplicateUpdates><session name='client/guest/-1' tim
eout='86400000' maxSessions='10' clearSessions='false'/>

   <!-- QueuePropertyBase -->
   <queue relating='callback' storeSwapLevel='1468006' storeSwapBytes='524288' r
eloadSwapLevel='629145' reloadSwapBytes='524288'/>
</qos>
CALL  XmlBlasterAccess-client/guest/-1 ::connect
CALL  XmlBlasterAccess-client/guest/-1 ::createDefaultCbServer
CALL  XmlBlasterAccess-client/guest/-1 ::initCbServer
CALL  CbServerPluginManager ::constructor
CALL  CbServerPluginManager ::getPlugin
CALL  CorbaDriver Constructor orbIsThreadSafe_=1
CALL  CorbaDriver getInstance for 1048475033296000000
CALL  CorbaDriver getInstance for 1048475033296000000 orbIsThreadSafe_=1
CALL  CbQueueProperty ::initialize with property prefix 'callback'
INFO  CorbaConnection Initializing CORBA ORB
CALL  CorbaConnection CorbaConnection constructor ...
INFO  XmlBlasterAccess-client/guest/-1 Callback settings: type=CACHE onOverflow=
deadMessage onFailure=deadMessage maxMsg=1000 type=IOR oneway=false burstMode.co
llectTime=0
CALL  DeliveryManager ::constructor
CALL  QueueProperty ::initialize with property prefix 'client'
CALL  ConnectionsHandler-1048475033296000000 constructor
CALL  ConnectionsHandler-1048475033296000000 ::connect status is '0'
CALL  DeliveryManager ::getPlugin
CALL  CorbaDriver getInstance for 1048475033296000000
CALL  CorbaConnection connect(client/guest/-1) ...
CALL  CorbaConnection initAuthenticationService() ...
INFO  CorbaConnection Accessing xmlBlaster using -hostname zzwzyz
CALL  CallbackAddress ::toXml
CALL  XmlBlasterAccess-client/guest/-1 destructor
CALL  CbServerPluginManager ::releasePlugin
CALL  CorbaDriverFactory killDriverInstance
CALL  ConnectionsHandler-1048475033296000000 destructor
CALL  DeliveryManager ::releasePlugin
CALL  CorbaDriverFactory killDriverInstance
CALL  CorbaConnection destructor
CALL  MsgQueue destructor
<exception errorCode='internal.unknown'>
   <class>c++ client</class>
   <node>unknown node</node>
   <location>CorbaDriver-1048475033296000000::connect</location>
   <lang>en</lang>
   <message><![CDATA[This is an unknown and unexpected error, usually a runtime
exception, please post it to the mailing list.]]></message>
   <versionInfo>client-c++</versionInfo>
   <timestamp>1048475033421000000</timestamp>
   <stackTrace><![CDATA[no stack trace provided in this system]]></stackTrace>
   <embeddedMessage><![CDATA[Original errorCode=internal.unknown]]></embeddedMes
sage>
</exception>
CALL  CorbaDriverFactory Destructor start
















============================================================= ÍøÒ×VIPÊÕ·ÑÓÊÏä ³É¹¦ÈËÊ¿µÄ×î¼ÑÑ¡Ôñ£¡ http://vip.163.com/ »îÉ«ÉúÏãµÄÓÕ»ó http://auctions.163.com/zhuanqu/fashion ´ºÌìµ½Á˹¶ÀµÄÄ㻹²»Ô¼»á Ô¼»áÆäʵºÜ¼òµ¥ http://dating.163.com/




--
Michele Laghi
mailto:laghi at swissinfo.org
tel. +46 8 7492952 / mob. +46 70 4103964
http://www.geocities.com/laghi2000
http://www.xmlBlaster.org