Skip to main content

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

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

欢迎关注微信公众号:

Attachment: 1.txt
Description: Binary data

Attachment: 2.txt
Description: Binary data


Back to the top