From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

AOP5 get no Connection to ODS Server

Solved!
Go to solution

Hi,

 

we are using Diadem and the AOP5 Plugin to connect to different ODS servers. We have a tool from the toolprovider "HighQSoft" called ASAM-Commander. With this tool we get connetion to all our ODS servers.

But when connecting via AOP5 the most local server in the network works sometimes, the connection to the Server in another subnet does not work. Diadem shows the following Message:

 

 AOP5_ErrorMessage.png

 

 

I checked the CORBA Ports with NETSTAT and got connected after this try.

 

The Logile doesn't show more infomation:

 

162  Der gewünschte Datenbestand "TestODS" konnte nicht geöffnet werden.
     (187): Error while initializing interface
163  19.03.2014 07:13:29 Fehler:Fehler bei dem Öffnen der Datenquelle "TestODS" vom Typ "AOP5".

 

Is it possible that there is something that blocks the connection in Diadem?

 

0 Kudos
Message 1 of 15
(6,264 Views)

Ok as aditional Information I've tried with different ODS Models. It seems to work with the ASAM ODS Model 5.2.0 but not with 5.3.0.

 

Does the new AOP5 Plugin (11.1.1f5410) support the ODS Model 5.3.0?

0 Kudos
Message 2 of 15
(6,254 Views)

There should be no restriction in model ...

 

Additional information can be found if you canfigure a log file in the advanced options or by using Microsofts DbgView.

 

Does the error log show additional Information?

 

Maybe the actual version of the AOP5 plugin can help too.

 

0 Kudos
Message 3 of 15
(6,246 Views)

Hi AndreasK,

 

I'm using this plugin version. Thanks for the Hint with the extended Logging.

But there abut not so much Informations with the Error.

 

AOP5: Info(00): Try to receive Asam ODS Api 5.x AoFactory!
AOP5: Info(00): Try to connect session with parameter string 'user=hq_admin,password=*************'
AOP5: ERROR: Exception: AO_CONNECT_REFUSED (5): AO_CONNECT_REFUSED		The connection is refused.
Parameter:  
File .\AoFactory.c, line 331
AOP5: ERROR: Exception in Initialize: Status(60=eInterfaceNoConnectionDa, 'AO_CONNECT_REFUSED: AO_CONNECT_REFUSED		The connection is refused.
Parameter:  
File .\AoFactory.c, line 331')

 

Is the AoFactory.c a part of the AOP5 or of the Server?

0 Kudos
Message 4 of 15
(6,240 Views)
AO_CONNECT_REFUSED (5): AO_CONNECT_REFUSED		The connection is refused.
Parameter:  
File .\AoFactory.c, line 331

is returned by the server as error message. I would assume that either user or password is wrong.

0 Kudos
Message 5 of 15
(6,238 Views)

No,

 

I've double / tripple checked the user and password. 

And when I try to check if the Corba port is connected in the console via

netstat -ano 1 | findstr 53.69.91.199

 

I got back:

netstat.jpg

 

So I think the connection works so far.

0 Kudos
Message 6 of 15
(6,235 Views)

There is no Problem with Corba etc.

 

DIAdem did successfully establish a connection to the ASAM ODS server but when trying to create a new session

 

factory->newSession('user=hq_admin,password=*************');

the ASAM ODS Server himself raised

 

AO_CONNECT_REFUSED

I have no Idea why he did it.

The ASAM ODS spec says:

* AO_CONNECT_REFUSED
* The connection was refused by the server. This error may occur if the
* presented authentication information is either incorrect or incomplete.
* This error shall not occur if the server does not accept any more
* sessions due to overload problems. See AO_SESSION_LIMIT_REACHED for
* this case.

 

0 Kudos
Message 7 of 15
(6,228 Views)

Thanks for your support Andreas,

 

it seems to be a problem of the actual ODS Server Implemantation.

 

 

 

0 Kudos
Message 8 of 15
(6,206 Views)

Hi AndreasK,

 

It seems to be a problem with the connection string. HighQSoft has changed the login with the newest version of the Avalon (ODS Server) the connection string is case sensitive.

currently used: 'user=hq_admin,password=*************'
but in the new version  'USER=hq_admin,PASSWORD=*************'

which is defined in the  ASAM ODS OOAPI  5.3.0

 

Regards

 

Michaba

0 Kudos
Message 9 of 15
(6,184 Views)

Is it possible to configure the connection String?

0 Kudos
Message 10 of 15
(6,180 Views)