$metadata not working with native test models
See original GitHub issueTried to test Person entity taken from olingo-jpa-processor-v4/jpa/odata-jpa-test/src/main/java/com/sap/olingo/jpa/processor/core/testmodel/Person.java
root URL it works perfectly
Collection is also works perfect
But $metadata not
Getting error
OData Library: An exception without message text was thrown.
Onse deleting Persons entity and related classes, $metadata works again
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
plugin-under-test-metadata.properties not created by Gradle ...
The first task -- pluginUnderTestMetadata -- makes sure to create the properties file, and is executed by native Gradle as well. The second...
Read more >Fixing metadata with component metadata rules
If a module was published with Gradle Module Metadata, the metadata is likely complete although there can still be cases where something is...
Read more >Use Shared Reachability Metadata with Native Image Gradle ...
The GraalVM Reachability Metadata Repository enables Native Image users to share and reuse metadata for libraries and frameworks in the Java ecosystem, and, ......
Read more >Use file metadata with Cloud Storage on Web - Firebase
There are a number of reasons why errors may occur on getting or updating metadata, including the file not existing, or the user...
Read more >JUnit 5 User Guide
Writing Tests in JUnit Jupiter. Migrating from JUnit 4 to JUnit Jupiter. Running Tests. Extension Model for JUnit Jupiter. Advanced Topics.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
It seems that an attribute of either
Person.class
orBusinessPartner.class
has an annotation EdmAnnotation, which can be used to generate simple OData annotation, but corresponding definition of the OData annotations is missing. This is a bug, as you do not get a meaningful error message.To solve the issue you have two options:
JPAEdmMetadataPostProcessor
and override methodprovideReferences
using the following code:I have enhanced the error processing with version 0.2.7