Replies: 1 comment 6 replies
-
What server are you browsing against? Typically when I've seen this it's because the Server address space is put together incorrectly. It may help if you can provide the full log export and a Wireshark capture. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am new to the project, so I am sorry if this is an ignorant question, but I am trying to browse nodes using these nice examples, and I run into exceptions like this (there are actually roughly 4000 lines of similar printed to the console). I wonder if there's some type checking I could do to avoid this.
08:43:45.002 [milo-shared-thread-pool-1] WARN o.e.m.opcua.sdk.client.AddressSpace - Failed to create Node from Reference to ExpandedNodeId{ns=0, id=2318, serverIndex=0} java.util.concurrent.CompletionException: UaException: status=Bad_UnexpectedError, message=java.lang.IllegalArgumentException: expected NodeClass.Object, got NodeClass.ObjectType at java.base/java.util.concurrent.CompletableFuture.encodeRelay(CompletableFuture.java:368) at java.base/java.util.concurrent.CompletableFuture.completeRelay(CompletableFuture.java:377) at java.base/java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1152) at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510) at java.base/java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:2147) at org.eclipse.milo.opcua.stack.client.UaStackClient.lambda$deliverResponse$5(UaStackClient.java:318) at org.eclipse.milo.opcua.stack.core.util.ExecutionQueue$InlineTask.run(ExecutionQueue.java:154) at org.eclipse.milo.opcua.stack.core.util.ExecutionQueue$Task.run(ExecutionQueue.java:136) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:840) Caused by: org.eclipse.milo.opcua.stack.core.UaException: java.lang.IllegalArgumentException: expected NodeClass.Object, got NodeClass.ObjectType at org.eclipse.milo.opcua.sdk.client.AddressSpace.newObjectNode(AddressSpace.java:1243) at org.eclipse.milo.opcua.sdk.client.AddressSpace.lambda$getObjectNodeAsync$2(AddressSpace.java:215) at java.base/java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1150) ... 8 common frames omitted
Beta Was this translation helpful? Give feedback.
All reactions