Comments (8)
Sure, here is a minimal example. If I remove mongodb from dependencies then project does not throw the mentioned exception when running native executable.
from spring-data-mongodb.
Thank you @anguzo for the reproducer - GraalVM decides to not include AggregationOperation
in the image. However the core framework tries to inspect all methods when creating a proxy for the mongo template. This involves reading method signatures via BridgeMethodResolver
and fails because of the removed AggregationOperation
.
@sdeleuze is there a way BridgeMethodResolver
could be more lenient when resolving parameter types?
from spring-data-mongodb.
Sorry, I overlooked this. I'll check with Christoph.
from spring-data-mongodb.
If you'd like us to spend some time investigating, please take the time to provide a complete minimal sample (something that we can unzip or git clone, build, and deploy) that reproduces the problem.
from spring-data-mongodb.
Spring Framework is unlikely to change this code path which could introduce regressions on JVM side. I would suggest to add related hints on Spring Data side (and maybe check if other *Operation
types are impacted, included outside spring-data-mongodb
).
from spring-data-mongodb.
Given the number of projects potentially having both reactive and imperative variants manually adding those hints sounds quite cumbersome and error prone. Before we do that, do we know candidates for proxy creation during the AOT phase? If so, we could hook into the processing to add missing types based on method signatures.
from spring-data-mongodb.
@snicoll Could you please share with Christoph if that's possible (I am not sure it is)?
from spring-data-mongodb.
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.
from spring-data-mongodb.
Related Issues (20)
- Error Query JPA in INNER...INNER Id HOT 1
- MappingContext should not consider collection like types being an entity. HOT 1
- Cannot extend MongoRepository due to private properties / methods / classes HOT 5
- NPE when use MongoTemplate#updateFirst, MongoTemplate#updateMulti with Query#withHint HOT 2
- auto-index-creation will block app to start when one Mongo cluster node is offline HOT 6
- Reading entity with null value for primitive field fails since #4464 HOT 1
- Centering the documentation HOT 1
- Release 4.1.11 (2023.0.11)
- Release 4.2.5 (2023.1.5)
- Release 4.3 RC1 (2024.0.0)
- Upgrade to MongoDB 5.0 driver
- Aggregation `allowDiskUse` should not be `false` by default
- Incorrect Lock used in DefaultMessageListenerContainer HOT 1
- Redesign allowDiskUse attribute of Meta annotation.
- Nested JSON Handling Issue in Generic Class HOT 2
- Problem with replacement of @DBRef to @DocumentReference HOT 2
- AggregationResults include documents outside the MatchOperation when there is a MergeOperation present HOT 3
- Can't use properties in `@Indexed#expireAfter` HOT 1
- Align OffsetScrolling to zero-based indexes
- Criteria.regex is converted to String when applying to ID fields HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-data-mongodb.