Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apache Camel Milo Client Timeout

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.

like image 647
Necrophades Avatar asked May 09 '26 13:05

Necrophades


1 Answers

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.

like image 198
Kevin Herron Avatar answered May 12 '26 03:05

Kevin Herron



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!