Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [milo-dev] subscribe event failed

Thanks Kevin, as I run docker, the server use the wrong ip. I stop the docker, get the following errors(it is same with server writed by my self)

09:15:46.544 [main] INFO  o.e.milo.opcua.stack.core.Stack - Successfully removed cryptography restrictions.
09:15:46.735 [main] INFO  o.e.m.e.client.ClientExampleRunner - security temp dir: C:\Users\Admin\AppData\Local\Temp\security
09:15:46.756 [main] INFO  o.e.m.examples.client.KeyStoreLoader - Loading KeyStore at C:\Users\Admin\AppData\Local\Temp\security\example-client.pfx
09:15:47.933 [main] INFO  o.e.m.e.client.ClientExampleRunner - Using endpoint: opc.tcp://DESKTOP-VFA7NRS:53530/OPCUA/SimulationServer [None]
09:15:47.938 [main] INFO  o.e.m.opcua.sdk.client.OpcUaClient - Eclipse Milo OPC UA Stack version: 0.2.1
09:15:47.938 [main] INFO  o.e.m.opcua.sdk.client.OpcUaClient - Eclipse Milo OPC UA Client SDK version: 0.2.1
09:15:48.123 [NonceUtilSecureRandom] INFO  o.e.m.o.stack.core.util.NonceUtil - SecureRandom seeded in 0ms.
09:16:03.295 [main] ERROR o.e.m.e.client.ClientExampleRunner - Error running client example: null
java.util.concurrent.TimeoutException: null
at java.util.concurrent.CompletableFuture.timedGet(CompletableFuture.java:1771)
at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1915)
at org.eclipse.milo.examples.client.ClientExampleRunner.run(ClientExampleRunner.java:145)
at org.eclipse.milo.examples.client.ProsysEventSubscriptionExample.main(ProsysEventSubscriptionExample.java:50)
09:16:03.295 [main] ERROR o.e.m.e.client.ClientExampleRunner - Error running example: null
java.util.concurrent.TimeoutException: null
at java.util.concurrent.CompletableFuture.timedGet(CompletableFuture.java:1771)
at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1915)
at org.eclipse.milo.examples.client.ClientExampleRunner.run(ClientExampleRunner.java:145)
at org.eclipse.milo.examples.client.ProsysEventSubscriptionExample.main(ProsysEventSubscriptionExample.java:50)

Process finished with exit code 0 


孙建蛟 -- 研发部  IOT
************************************************************
浙江明度智控科技有限公司
公司地址:浙江省杭州市滨江区江虹南路316号京安创业园
工厂地址:江苏省昆山市汉浦路1937号欣昆产业园
电 话:0571-88196008   传 真:0571-86718570
邮 箱:sunjj@mingdutech.com

欢迎关注微信公众号:
 
Date: 2018-07-02 21:09
Subject: Re: [milo-dev] subscribe event failed
It's easier to focus on the first error because there is more information. The important part is this:

java.net.ConnectException: Connection refused: no further information: DESKTOP-VFA7NRS/10.0.75.1:53530

This is just a basic networking problem. Either the server is not running, or it's running but returning different IP address, or there's a firewall in between, or something else like this. You're just unable to even open a TCP connection to the server.

On Mon, Jul 2, 2018 at 1:15 AM, sunjj@xxxxxxxxxxxxxx <sunjj@xxxxxxxxxxxxxx> wrote:
Dears,
    I have run eclipse milo client for reading/writing/subscrbing "variable".  But I can't receive event as the example(https://github.com/eclipse/milo/blob/master/milo-examples/client-examples/src/main/java/org/eclipse/milo/examples/client/ProsysEventSubscriptionExample.java):
  • I change the "0.2.2-SNAPSHOT" to "0.2.1", as no 0.2.2-SNAPSHOT in maven repo.

    (1) First try.
  • I Run prosys simulation server V3.0.0-157。
    when I run the example, receive the following error (detail, reference to 1.txt attachment): 
        15:24:42.475 [main] INFO  o.e.m.opcua.sdk.client.OpcUaClient - Eclipse Milo OPC UA Stack version: 0.2.1
        15:24:42.475 [main] INFO  o.e.m.opcua.sdk.client.OpcUaClient - Eclipse Milo OPC UA Client SDK version: 0.2.1
        15:24:43.750 [main] ERROR o.e.m.e.client.ClientExampleRunner - Error running client example: UaException: status=Bad_ConnectionRejected, message=java.net.ConnectException: Connection refused: no further information: DESKTOP-VFA7NRS/10.0.75.1:53530
        java.util.concurrent.ExecutionException: UaException: status=Bad_ConnectionRejected, message=java.net.ConnectException: Connection refused: no further information: DESKTOP-VFA7NRS/10.0.75.1:53530
    at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:357)
    at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1895)
    at org.eclipse.milo.examples.client.ProsysEventSubscriptionExample.run(ProsysEventSubscriptionExample.java:60)

    
    (2) Second try
  •   I write the test code of Opc Ua server by prosys sdk。
  •  I Use UaExpert test the example server,  receive the event.
     when event trigger, receive the following error(detail: attachement of 2.txt ):
            15:54:02.473 [NonceUtilSecureRandom] INFO  o.e.m.o.stack.core.util.NonceUtil - SecureRandom seeded in 0ms.
            15:54:17.691 [main] ERROR o.e.m.e.client.ClientExampleRunner - Error running client example: null
             java.util.concurrent.TimeoutException: null
            at java.util.concurrent.CompletableFuture.timedGet(CompletableFuture.java:1771)
            at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1915)
            at org.eclipse.milo.examples.client.ClientExampleRunner.run(ClientExampleRunner.java:145)
            at org.eclipse.milo.examples.client.ProsysEventSubscriptionExample.main(ProsysEventSubscriptionExample.java:50)
            15:54:17.692 [main] ERROR o.e.m.e.client.ClientExampleRunner - Error running example: null
                    java.util.concurrent.TimeoutException: null
            at java.util.concurrent.CompletableFuture.timedGet(CompletableFuture.java:1771)
            at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1915)
            at org.eclipse.milo.examples.client.ClientExampleRunner.run(ClientExampleRunner.java:145)
            at org.eclipse.milo.examples.client.ProsysEventSubscriptionExample.main(ProsysEventSubscriptionExample.java:50)
            Disconnected from the target VM, address: '127.0.0.1:60991', transport: 'socket'

Thank you very much!
Jianjiao


孙建蛟 -- 研发部  IOT
************************************************************
浙江明度智控科技有限公司
公司地址:浙江省杭州市滨江区江虹南路316号京安创业园
工厂地址:江苏省昆山市汉浦路1937号欣昆产业园
电 话:0571-88196008   传 真:0571-86718570
邮 箱:sunjj@mingdutech.com

欢迎关注微信公众号:

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



Back to the top