You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by "Ghosh1, Sandeep" <Sa...@sc.com.INVALID> on 2019/05/07 04:01:47 UTC
olingo2 - How to resolve No enum constant found
Hi,
I am using camel-olingo2 to read row count of my resource. My route is simple
<quote>.to("olingo2://read/questionAnswers/$count")</quote>
It is failing with the below exception.
<quote>
Caused by: java.lang.IllegalArgumentException: No enum constant org.apache.olingo.odata2.api.edm.EdmSimpleTypeKind.AllocationOrderSessions
at java.lang.Enum.valueOf(Enum.java:238) ~[na:1.8.0_45]
at org.apache.olingo.odata2.api.edm.EdmSimpleTypeKind.valueOf(EdmSimpleTypeKind.java:28) ~[olingo-odata2-api-2.0.10.jar:2.0.10]
at org.apache.olingo.odata2.core.ep.consumer.XmlMetadataConsumer.readFunctionImportParameter(XmlMetadataConsumer.java:314) ~[olingo-odata2-core-2.0.10.jar:2.0.10]
at org.apache.olingo.odata2.core.ep.consumer.XmlMetadataConsumer.readFunctionImport(XmlMetadataConsumer.java:288) ~[olingo-odata2-core-2.0.10.jar:2.0.10]
at org.apache.olingo.odata2.core.ep.consumer.XmlMetadataConsumer.readEntityContainer(XmlMetadataConsumer.java:239) ~[olingo-odata2-core-2.0.10.jar:2.0.10]
at org.apache.olingo.odata2.core.ep.consumer.XmlMetadataConsumer.readSchema(XmlMetadataConsumer.java:160) ~[olingo-odata2-core-2.0.10.jar:2.0.10]
at org.apache.olingo.odata2.core.ep.consumer.XmlMetadataConsumer.readMetadata(XmlMetadataConsumer.java:102) ~[olingo-odata2-core-2.0.10.jar:2.0.10]
at org.apache.olingo.odata2.core.edm.provider.EdmxProvider.parse(EdmxProvider.java:51) ~[olingo-odata2-core-2.0.10.jar:2.0.10]
at org.apache.olingo.odata2.core.ep.ProviderFacadeImpl.readMetadata(ProviderFacadeImpl.java:231) ~[olingo-odata2-core-2.0.10.jar:2.0.10]
at org.apache.olingo.odata2.api.ep.EntityProvider.readMetadata(EntityProvider.java:876) ~[olingo-odata2-api-2.0.10.jar:2.0.10]
</quote>
In my metadata, I can see this entry
<EntitySet Name="AllocationOrderSessions" EntityType="Tcib.AllocationOrderSessions"/>
It seems olingo2 is trying to find a enum of type AllocationOrderSessions, which it couldn't find.
Is there any configuration in olingo2 component, that will stop searching for any application specific enum.
Regards,
Sandeep