Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [milo-dev] Error when connecting to OPC server

Many of those don’t work, I’d rather not have to maintain that list. 

I will work on hosting a Milo demo server that I control and link to that, however. 


On May 23, 2019, at 05:10, Joe San <codeintheopen@xxxxxxxxx> wrote:

I found the list of servers here and just used one of them: https://github.com/node-opcua/node-opcua/wiki/publicly-available-OPC-UA-Servers-and-Clients

So this one: "opc.tcp://opcuaserver.com:48484works

I can read the values:

INFO: Using endpoint: opc.tcp://opcuaserver.com:48484, None
May 23, 2019 2:04:42 PM wvlet.log.Logger log
INFO: StartTime = DateTime{utcTime=132030173551650000, javaDate=Wed May 22 18:49:15 CEST 2019}
May 23, 2019 2:04:43 PM wvlet.log.Logger log
INFO: State = Running
May 23, 2019 2:04:43 PM wvlet.log.Logger log
INFO: CurrentTime = DateTime{utcTime=132030866808700000, javaDate=Thu May 23 14:04:40 CEST 2019}

May be can you please add the list of OPC servers and clients to the milo README?

On Thu, May 23, 2019 at 2:00 PM Kevin Herron <kevinherron@xxxxxxxxx> wrote:
Joe,

"opcuaserver" doesn't appear to be a hostname reachable from your machine.

Where is the server running?

On Thu, May 23, 2019 at 4:57 AM Joe San <codeintheopen@xxxxxxxxx> wrote:
I came up with a client version and was attempting to connect to a free OPC server here: opc.tcp://opcuaserver:4840

Here is the link to my project, where I run my unit test to get the server timestamp and state


When I run my unit test, I get this error:

May 23, 2019 1:51:40 PM wvlet.log.Logger log
INFO: Using endpoint: opc.tcp://opcuaserver:4840, None

java.net.UnknownHostException: opcuaserver: nodename nor servname provided, or not known
java.util.concurrent.CompletionException: java.net.UnknownHostException: opcuaserver: nodename nor servname provided, or not known
at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:292)
at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:308)
at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:593)
at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:577)
at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474)
.....

Any idea why is this?

_______________________________________________
milo-dev mailing list
milo-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/milo-dev
_______________________________________________
milo-dev mailing list
milo-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/milo-dev
_______________________________________________
milo-dev mailing list
milo-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/milo-dev

Back to the top