Search code examples
javaapache-cameljbossfuse

Apache Camel - UriEndpoint is missing values for attributes title,syntax


After upgrade of JBoss Fuse 6.1 -> 6.2 and as a result Apache Camel 2.12 -> 2.15, the following compilation error occurred in one of our custom components:

[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] [redacted].java:[11] error: annotation UriEndpoint is missing values for attributes title,syntax
[ERROR] [redacted].java:[8] error: annotation UriEndpoint is missing values for attributes title,syntax
[INFO] 2 errors 

*-note that the [redacted] means "removed" or "anonymized" part


Solution

  • The solution was to change from:

    @UriEndpoint(scheme = "[redacted]")
    

    to:

    @UriEndpoint(scheme = "[redacted]", syntax = "scheme:host:port/path", title = "[redacted]")
    

    More information in @UriEndpoint JavaDoc

    The documentation is quite enigmatic ATM.