Details
Description
Essentially, after replacing the olingo4 component in the context to bypass the null serviceUri issue, the route moves on to initialising the Olingo4Consumer. The latter tests the 'read' method to ensure all properties have been set (1). However, this fails due to the properties 'edm' and 'responseHandler' being missing.
Have come up with a test (2) that demonstrates the problem.
These properties are not documented (since they appear to be output properties). However
, they are added into the property names collection of the endpoint (3). This collection is compared against the method signatures in the Olingo4AppEndpointConfiguration and neither s/getEdm or s/getResponseHandler exist hence the exception thrown.
[1] https://github.com/apache/camel/blob/master/camel-core/src/main/java/org/apache/camel/util/component/ApiConsumerHelper.java#L55
[2] https://gist.github.com/phantomjinx/90ee08a989ddff4366d792cc621b36a9#file-properties-issue-java
[3] https://github.com/apache/camel/blob/master/components/camel-olingo4/camel-olingo4-component/src/main/java/org/apache/camel/component/olingo4/Olingo4Endpoint.java#L150
Attachments
Attachments
Issue Links
- is related to
-
CAMEL-13061 Missing properties on Olingo2 consumer initialisation
- Resolved
- relates to
-
CAMEL-13005 olingo4 component serviceUri not set
- Resolved