chandransalem / odata4j

Automatically exported from code.google.com/p/odata4j
0 stars 0 forks source link

Consumer unable to parse EdmType if the alias different with the namespace it stands for #212

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. call ODataConsumer.getEntities("HourlyFcst") which will get the metadata and 
parse,
2.
3.

What is the expected output? What do you see instead?
got exception, below is the stack trace: 
Exception in thread "main" java.lang.RuntimeException: Edm-type not found: 
WCEX.Name
    at org.odata4j.edm.EdmType$DeferredBuilder.buildImpl(EdmType.java:146)
    at org.odata4j.edm.EdmType$Builder._build(EdmType.java:112)
    at org.odata4j.edm.EdmType$DeferredBuilder.build(EdmType.java:139)
    at org.odata4j.edm.EdmProperty$Builder.build(EdmProperty.java:244)
    at org.odata4j.edm.EdmStructuralType.<init>(EdmStructuralType.java:41)
    at org.odata4j.edm.EdmEntityType.<init>(EdmEntityType.java:44)
    at org.odata4j.edm.EdmEntityType.<init>(EdmEntityType.java:33)
    at org.odata4j.edm.EdmEntityType$Builder.buildImpl(EdmEntityType.java:172)
    at org.odata4j.edm.EdmEntityType$Builder.buildImpl(EdmEntityType.java:132)
    at org.odata4j.edm.EdmType$Builder._build(EdmType.java:112)
    at org.odata4j.edm.EdmEntityType$Builder.build(EdmEntityType.java:163)
    at org.odata4j.edm.EdmEntityType$Builder.build(EdmEntityType.java:132)
    at org.odata4j.edm.EdmCollectionType$Builder.buildImpl(EdmCollectionType.java:70)
    at org.odata4j.edm.EdmType$Builder._build(EdmType.java:112)
    at org.odata4j.edm.EdmCollectionType$Builder.build(EdmCollectionType.java:65)
    at org.odata4j.edm.EdmCollectionType$Builder.build(EdmCollectionType.java:42)
    at org.odata4j.edm.EdmFunctionImport$Builder.build(EdmFunctionImport.java:88)
    at org.odata4j.edm.EdmEntityContainer$Builder.build(EdmEntityContainer.java:101)
    at org.odata4j.edm.EdmSchema$Builder.build(EdmSchema.java:122)
    at org.odata4j.edm.EdmDataServices$Builder.build(EdmDataServices.java:231)
    at org.odata4j.format.xml.EdmxFormatParser.parseMetadata(EdmxFormatParser.java:83)
    at org.odata4j.consumer.AbstractODataClient.getMetadata(AbstractODataClient.java:44)
    at org.odata4j.consumer.AbstractODataConsumer$CachedEdmDataServices.refreshDelegate(AbstractODataConsumer.java:212)
    at org.odata4j.consumer.AbstractODataConsumer$CachedEdmDataServices.getDelegate(AbstractODataConsumer.java:205)
    at org.odata4j.internal.EdmDataServicesDecorator.findEdmEntitySet(EdmDataServicesDecorator.java:46)
    at org.odata4j.consumer.AbstractODataConsumer$CachedEdmDataServices.findEdmEntitySet(AbstractODataConsumer.java:221)
    at org.odata4j.consumer.AbstractODataConsumer.getFeedCustomizationMapping(AbstractODataConsumer.java:235)
    at org.odata4j.consumer.AbstractODataConsumer.getEntities(AbstractODataConsumer.java:73)
    at org.odata4j.consumer.AbstractODataConsumer.getEntities(AbstractODataConsumer.java:69)
    at WXCEXExample.run(WXCEXExample.java:32)
    at WXCEXExample.main(WXCEXExample.java:20)

What version of the product are you using? On what operating system?
0.7 Win7

Please provide any additional information below.

Original issue reported on code.google.com by evan.che...@gmail.com on 5 Sep 2012 at 12:50

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks for including the metadata.  I'm able to repro and will take a look.

Original comment by john.spurlock on 10 Nov 2012 at 5:48

GoogleCodeExporter commented 8 years ago
This issue was closed by revision dba140d77484.

Original comment by john.spurlock on 10 Nov 2012 at 6:15