[jacorb-developer] JacORB hangs in endless connection retry loop

Franz van Betteraey fvbetteraey at web.de
Fri Jun 26 11:33:28 CEST 2015


Hi Phil,
 
we use JacORB together with Apache CXF to establish the connection. The address we use there (in the JaxWsProxyFactoryBean) is something like "corbaname::<NameService>:<NameServicePort>#<ServiceName>".
Meanwhile we used the "Ultra Corba Simulator" to connect to the service and the behaviour is as expected (exception after unsuccessful retries). So I assume that the endless loop behaviour is related to Apache CXF although I can not find something helpful in the logs.

Nevertheless when we use the SUN ORB we get an Exception as expected (even when using Apache CXF)

Jun 25, 2015 9:07:12 PM com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl <init>
WARNUNG: "IOP00410201: (COMM_FAILURE) Connection failure: socketType: IIOP_CLEAR_TEXT; hostname: <server>; port: <port>"
org.omg.CORBA.COMM_FAILURE:   vmcid: SUN  minor code: 201  completed: No
       at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2200)
       at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2221)
       at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:223)

So probably the failure is on the Apache CXF side. Nevertheless, thanks for your comments.

To solve the current problem we will not use Apache CXF at the moment, but it would be nice to know the cause of the problem.

Kind regards,
  Franz


5. Juni 2015 um 17:13 Uhr
Von: "Phil Mesnier" <mesnier_p at ociweb.com>
An: "Franz van Betteraey" <fvbetteraey at web.de>
Cc: "Discussions concerning CORBA development with JacORB" <jacorb-developer at lists.spline.inf.fu-berlin.de>
Betreff: Re: [jacorb-developer] JacORB hangs in endless connection retry loop
Hi Franz,

Are you using a corbaname style URL?
How is the server not responding? It looks like it has a listen socket open but it is not accepting the new connection.
What does the Java ORB do?

-Phil

> On Jun 25, 2015, at 6:01 AM, Franz van Betteraey <fvbetteraey at web.de> wrote:
>
> Hi,
>
> we try to connect to a not responding corba service using JacORB 3.6.1. We set the properties jacorb.retries and jacorb.connection.client.pending_reply_timeout and hoped to get a failure after the number of specified retries.
> Instead it seems that JacORB is ending in an endless loop, trying to connect to the service
>
> (1) connect to nameservice (success)
> (2) connect to corba service (timeout failure); retry
> (3) goto (1) - we did not expect this
>
> The log is attached below. I can't imagine that JacORB is the problem - but the SUN ORRB works as expected. Probably we are doing something wrong. Does anyone knows the cause for this behaviour?
>
> Any help is appreciated.
>
> Kind regards
> Franz
>
>
> --- log
> -- first attempt
> Jun 24, 2015 12:25:23 PM org.jacorb.orb.giop.ClientConnectionManager getConnection
> INFORMATION: ClientConnectionManager: created new ClientGIOPConnection to <NameServiceIp>:9999 (705052f9)
> Jun 24, 2015 12:25:23 PM org.jacorb.orb.iiop.ClientIIOPConnection connect
> INFORMATION: Connected to <NameServiceIp>:9999 from local port 54679 Timeout: 4000
> Jun 24, 2015 12:25:23 PM org.jacorb.orb.giop.ClientConnectionManager getConnection
> INFORMATION: ClientConnectionManager: created new ClientGIOPConnection to <CorbaServiceIp>:10000 (65da9f66)
> Jun 24, 2015 12:25:24 PM org.jacorb.orb.iiop.ClientIIOPConnection connect
> INFORMATION: Retrying to connect to <CorbaServiceIp>:10000
> Jun 24, 2015 12:25:25 PM org.jacorb.orb.iiop.ClientIIOPConnection connect
> INFORMATION: Retrying to connect to <CorbaServiceIp>:10000
> Jun 24, 2015 12:25:27 PM org.jacorb.orb.iiop.ClientIIOPConnection close
> INFORMATION: Client-side TCP transport to <NameServiceIp>:9999 closed.
> Jun 24, 2015 12:25:27 PM org.jacorb.orb.iiop.ClientIIOPConnection connect
> INFORMATION: Retrying to connect to <CorbaServiceIp>:10000
> Jun 24, 2015 12:25:28 PM org.jacorb.orb.iiop.ClientIIOPConnection connect
> INFORMATION: Retrying to connect to <CorbaServiceIp>:10000
> Jun 24, 2015 12:25:30 PM org.jacorb.orb.iiop.ClientIIOPConnection connect
> INFORMATION: Retrying to connect to <CorbaServiceIp>:10000
> -- second attempt
> Jun 24, 2015 12:25:31 PM org.jacorb.orb.giop.ClientConnectionManager getConnection
> INFORMATION: ClientConnectionManager: found ClientGIOPConnection to <NameServiceIp>:9999 (705052f9)
> Jun 24, 2015 12:25:31 PM org.jacorb.orb.iiop.ClientIIOPConnection connect
> INFORMATION: Connected to <NameServiceIp>:9999 from local port 54689 Timeout: 4000
> Jun 24, 2015 12:25:31 PM org.jacorb.orb.giop.ClientConnectionManager getConnection
> INFORMATION: ClientConnectionManager: found ClientGIOPConnection to <NameServiceIp>:9999 (705052f9)
> Jun 24, 2015 12:25:31 PM org.jacorb.orb.giop.ClientConnectionManager getConnection
> INFORMATION: ClientConnectionManager: created new ClientGIOPConnection to <CorbaServiceIp>:10000 (6e638cdc)
> Jun 24, 2015 12:25:31 PM org.jacorb.orb.giop.ClientConnectionManager getConnection
> INFORMATION: ClientConnectionManager: created new ClientGIOPConnection to <CorbaServiceIp>:10000 (5ced3d95)
> Jun 24, 2015 12:25:32 PM org.jacorb.orb.iiop.ClientIIOPConnection connect
> INFORMATION: Retrying to connect to <CorbaServiceIp>:10000
> Jun 24, 2015 12:25:34 PM org.jacorb.orb.iiop.ClientIIOPConnection connect
> INFORMATION: Retrying to connect to <CorbaServiceIp>:10000
> Jun 24, 2015 12:25:35 PM org.jacorb.orb.iiop.ClientIIOPConnection close
> INFORMATION: Client-side TCP transport to <NameServiceIp>:9999 closed.
> Jun 24, 2015 12:25:35 PM org.jacorb.orb.iiop.ClientIIOPConnection connect
> INFORMATION: Retrying to connect to <CorbaServiceIp>:10000
> Jun 24, 2015 12:25:37 PM org.jacorb.orb.iiop.ClientIIOPConnection connect
> INFORMATION: Retrying to connect to <CorbaServiceIp>:10000
> Jun 24, 2015 12:25:38 PM org.jacorb.orb.iiop.ClientIIOPConnection connect
> INFORMATION: Retrying to connect to <CorbaServiceIp>:10000
> -- and so on ...
> _______________________________________________
> jacorb-developer maillist - jacorb-developer at lists.spline.inf.fu-berlin.de
> https://lists.spline.inf.fu-berlin.de/mailman/listinfo/jacorb-developer

--
Phil Mesnier
Principal Software Engineer and Partner, http://www.ociweb.com[http://www.ociweb.com]
Object Computing, Inc. +01.314.579.0066 x225



 


More information about the jacorb-developer mailing list