I'm trying to connect to a OPC UA server with camel. I downloaded the camel java template via mvn:archetype. This is what my route looks like:
public class MyRouteBuilder extends RouteBuilder {
public void configure() {
from("milo-client:tcp://10.0.75.1:4840")
.log("From OPC UA: ${body}");
}
}
No matter what server I try to connect to, I always get:
java.util.concurrent.ExecutionException: UaException: status=Bad_Timeout, message=io.netty.channel.ConnectTimeoutException: connection timed out: /172.17.0.2:4840
The OPC servers aren't the problem, I can reach all of them with any other client.
Am I missing something here? Thank you for your help.
I'd have to guess that your OPC UA server is misconfigured and returning 172.17.0.2 in its EndpointDescriptions instead of 10.0.75.1.
This either needs to be fixed in the Camel/Milo integration, if there's not already an option to override the hostname, or you would need to correctly configure the server to include 10.0.75.1 in its endpoints.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With