forrestzhu / odata4j

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

InMemoryProducerExample throws exception during startup #68

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Run the InMemoryProducerExample.

What is the expected output? What do you see instead?
Instead of starting the server, the following error is reported:

Exception in thread "main" java.lang.RuntimeException: Inconsistent types for 
property DeclaredNavigationProperties: getter type org.core4j.Enumerable, 
setter type java.util.Collection
    at org.odata4j.producer.inmemory.BeanModel.computeTypes(BeanModel.java:233)
    at org.odata4j.producer.inmemory.BeanModel.<init>(BeanModel.java:40)
    at org.odata4j.producer.inmemory.BeanBasedPropertyModel.<init>(BeanBasedPropertyModel.java:8)
    at org.odata4j.producer.inmemory.InMemoryProducer.register(InMemoryProducer.java:395)
    at org.odata4j.producer.inmemory.InMemoryProducer.register(InMemoryProducer.java:376)
    at org.odata4j.examples.producer.InMemoryProducerExample.main(InMemoryProducerExample.java:54)

This error refers to class org.odata4j.edm.EdmEntityType.

What version of the product are you using? On what operating system?
0.5.SNAPSHOT

Original issue reported on code.google.com by philipp.sebastian.thun on 14 Sep 2011 at 2:11

GoogleCodeExporter commented 8 years ago
Fixed in ra7559bed7940

Original comment by john.spurlock on 25 Sep 2011 at 8:37