You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Sandeep Ghosh <sa...@rediffmail.com.INVALID> on 2019/05/05 04:55:48 UTC

olingo2 - How to resolve No enum constant found

Hi,&nbsp;I am using camel-olingo2 to read row count of my resource. My route is simple&nbsp;.to(&quot;olingo2://read/questionAnswers/$count&quot;)It is failing with the exception.&nbsp;&nbsp;Caused by: java.lang.IllegalArgumentException: No enum constant org.apache.olingo.odata2.api.edm.EdmSimpleTypeKind.AllocationOrderSessions&nbsp; &nbsp;at java.lang.Enum.valueOf(Enum.java:238) ~[na:1.8.0_45]&nbsp; &nbsp;at org.apache.olingo.odata2.api.edm.EdmSimpleTypeKind.valueOf(EdmSimpleTypeKind.java:28) ~[olingo-odata2-api-2.0.10.jar:2.0.10]&nbsp; &nbsp;at org.apache.olingo.odata2.core.ep.consumer.XmlMetadataConsumer.readFunctionImportParameter(XmlMetadataConsumer.java:314) ~[olingo-odata2-core-2.0.10.jar:2.0.10]&nbsp; &nbsp;at org.apache.olingo.odata2.core.ep.consumer.XmlMetadataConsumer.readFunctionImport(XmlMetadataConsumer.java:288) ~[olingo-odata2-core-2.0.10.jar:2.0.10]&nbsp; &nbsp;at org.apache.olingo.odata2.core.ep.consumer.XmlMetadataConsumer.readEntityContainer(XmlMetadataConsumer.ja
 va:239) ~[olingo-odata2-core-2.0.10.jar:2.0.10]&nbsp; &nbsp;at org.apache.olingo.odata2.core.ep.consumer.XmlMetadataConsumer.readSchema(XmlMetadataConsumer.java:160) ~[olingo-odata2-core-2.0.10.jar:2.0.10]&nbsp; &nbsp;at org.apache.olingo.odata2.core.ep.consumer.XmlMetadataConsumer.readMetadata(XmlMetadataConsumer.java:102) ~[olingo-odata2-core-2.0.10.jar:2.0.10]&nbsp; &nbsp;at org.apache.olingo.odata2.core.edm.provider.EdmxProvider.parse(EdmxProvider.java:51) ~[olingo-odata2-core-2.0.10.jar:2.0.10]&nbsp; &nbsp;at org.apache.olingo.odata2.core.ep.ProviderFacadeImpl.readMetadata(ProviderFacadeImpl.java:231) ~[olingo-odata2-core-2.0.10.jar:2.0.10]&nbsp; &nbsp;at org.apache.olingo.odata2.api.ep.EntityProvider.readMetadata(EntityProvider.java:876) ~[olingo-odata2-api-2.0.10.jar:2.0.10]In my metadata, I can see this entry&nbsp;&lt;EntitySet Name=&quot;AllocationOrderSessions&quot; EntityType=&quot;Tcib.AllocationOrderSessions&quot;/&gt;It seems olingo2 is trying to find an enum of type A
 llocationOrderSessions, which it couldn&#39;t find.&nbsp; Is there any configuration in olingo2, that will stop searching for any application-specific enum.&nbsp;