简体   繁体   English

事件触发时,Java CORBA客户端断开连接

[英]Java CORBA Client Disconnects When Event Fires

I have built a Java CORBA application that subscribes to an event server. 我已经构建了一个订阅事件服务器的Java CORBA应用程序。 The application narrows and logs on just fine, but as soon as an event is sent to the client, it breaks with the error below. 应用程序变窄并登录就好了,但是一旦事件被发送到客户端,它就会破坏下面的错误。 Please advise. 请指教。

2010/04/25!13.00.00!E00555!enserver!EventServiceIF_i.cpp!655!PID(7390)!enserver - e._info=system exception, ID 'IDL:omg.org/CORBA/TRANSIENT:1.0'
TAO exception, minor code = 54410093 (invocation connect failed; ECONNRESET), completed = NO

EDIT: Please note, this only happens when running on some machines. 编辑:请注意,这只发生在某些机器上运行时。 It works on some, but not others. 它适用于某些人,但不适用于其他人。 Even on the same platform (I've tried Windows XP/7 and CentOS linux) Some work, some don't... 即使在同一平台上(我已经尝试过Windows XP / 7和CentOS linux)有些工作,有些不...

Here is the WireShark output...looks like the working PC is much more interactive with the network compared to the non-working PC. 这是WireShark输出......看起来与非工作PC相比,工作PC与网络的交互性更强。

Working PC 工作PC

No.     Time        Source                Destination           Protocol Info
     62 28.837255   10.10.10.209          10.10.10.250          TCP      50169 > 23120 [SYN] Seq=0 Win=8192 Len=0 MSS=1260 WS=8
     63 28.907068   fe80::5de0:8d21:937e:c649 ff02::1:3             LLMNR    Standard query A isatap
     64 28.907166   10.10.10.209          224.0.0.252           LLMNR    Standard query A isatap
     65 29.107259   10.10.10.209          10.255.255.255        NBNS     Name query NB ISATAP<00>
     66 29.227000   10.10.10.250          10.10.10.209          TCP      23120 > 50169 [SYN, ACK] Seq=0 Ack=1 Win=32768 Len=0 MSS=1260 WS=0
     67 29.227032   10.10.10.209          10.10.10.250          TCP      50169 > 23120 [ACK] Seq=1 Ack=1 Win=66560 Len=0
     68 29.238063   10.10.10.209          10.10.10.250          GIOP     GIOP 1.1 Request s=326 id=5 (two-way): op=logon
     69 29.291765   10.10.10.250          10.10.10.209          GIOP     GIOP 1.1 Reply s=420 id=5: No Exception
     70 29.301395   10.10.10.209          10.10.10.250          GIOP     GIOP 1.1 Request s=369 id=6 (two-way): op=registerEventStat
     71 29.348275   10.10.10.250          10.10.10.209          GIOP     GIOP 1.1 Reply s=60 id=6: No Exception
     72 29.405250   10.10.10.209          10.10.10.250          TCP      50170 > telnet [SYN] Seq=0 Win=8192 Len=0 MSS=1260 WS=8
     73 29.446055   10.10.10.250          10.10.10.209          TCP      telnet > 50170 [SYN, ACK] Seq=0 Ack=1 Win=32768 Len=0 MSS=1260 WS=0
     74 29.446128   10.10.10.209          10.10.10.250          TCP      50170 > telnet [ACK] Seq=1 Ack=1 Win=66560 Len=0
     75 29.452021   10.10.10.209          10.10.10.250          TELNET   Telnet Data ...
     76 29.483537   10.10.10.250          10.10.10.209          TELNET   Telnet Data ...
     77 29.483651   10.10.10.209          10.10.10.250          TELNET   Telnet Data ...
     78 29.523463   10.10.10.250          10.10.10.209          TCP      telnet > 50170 [ACK] Seq=4 Ack=5 Win=32768 Len=0
     79 29.554954   10.10.10.209          10.10.10.250          TCP      50169 > 23120 [ACK] Seq=720 Ack=505 Win=66048 Len=0

Non-working PC 非工作PC

No.     Time        Source                Destination           Protocol Info
      1 0.000000    10.10.10.209          10.10.10.250          TCP      64161 > 23120 [SYN] Seq=0 Win=8192 Len=0 MSS=1260 WS=8
      2 2.999847    10.10.10.209          10.10.10.250          TCP      64161 > 23120 [SYN] Seq=0 Win=8192 Len=0 MSS=1260 WS=8
      3 4.540773    Cisco_3c:78:00        Cisco-Li_55:87:72     ARP      Who has 10.0.0.1?  Tell 10.10.10.209
      4 4.540843    Cisco-Li_55:87:72     Cisco_3c:78:00        ARP      10.0.0.1 is at 00:1a:70:55:87:72
      5 8.992284    10.10.10.209          10.10.10.250          TCP      64161 > 23120 [SYN] Seq=0 Win=8192 Len=0 MSS=1260

Benny are your still suffering under the yoke of corba? 班尼是你还在科尔巴的枷锁下受苦吗?

If so the following may help: 如果是这样,以下可能有所帮助

  • Are you able to find out what version of TAO the server is running? 您是否能够找到服务器运行的TAO版本?
  • Have your tried it with Sun's orb (long shot)? 你有没有尝试过Sun的天体(远射)?
  • You could give OpenORB a try. 你可以尝试一下OpenORB
  • Failing all of the above and if you have python knowledge can you access the server with omniORBpy? 如果你没有上述所有内容,如果你有python知识,你可以使用omniORBpy访问服务器吗?

If none of the above works then I am unsure but let me know I can probably come up with a few more ideas. 如果以上都不起作用,那么我不确定,但让我知道我可能想出更多的想法。 The version of TAO that the server is using would be helpful, at least then you can get an idea of the corba specification version you are dealing with. 服务器使用的TAO版本会有所帮助,至少可以了解您正在处理的corba规范版本。

Does both client and server running inside the same LAN? 客户端和服务器都在同一个局域网内运行吗? I mean is there any firewall or software firewall enabled on your client machine? 我的意思是您的客户端计算机上是否启用了防火墙或软件防火墙? Or between client and server? 或者客户端和服务器之间?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM