-
Notifications
You must be signed in to change notification settings - Fork 354
Introduce a spring-data-mongodb sample #25
Comments
I suspect you are trying this on master of the project? The 19.3 branch includes fixes for some of this I think, I'm going to try your sample with the current branch. |
I updated my sample using graal 19.3.1 (olivierboudet@56045f9). It's a littler better, I managed to get a native image.
|
How should I check the app is working? I see no controller to ping or command line output indicating success - is it just by virtue of starting without error? By adding RepositoryType to the manual configuration (just to test if it was computed, things would behave), the image seems ok but I don't know whether it is doing what it is supposed to:
|
Thanks. Yes, for the first try, I limited the test to just a startup without error. Please, can you show me changes you did to add the RepositoryType to the manual configuration ? |
I created a simple
then i specified that in the compile.sh script:
|
This commmit also switches the sample to a regular Boot application and renames the sample to spring-data-mongodb. See spring-atticgh-25
This commit also switches the sample to a regular Boot application and renames the sample to spring-data-mongodb. See spring-atticgh-25
This commit also switches the sample to a regular Boot application. See spring-atticgh-25
The spring-data-mongodb sample is now live and working ( https://github.com/spring-projects-experimental/spring-graalvm-native/tree/master/spring-graalvm-native-samples/spring-data-mongodb) . I tried the current state of the feature against Oliviers original project and it did start cleanly for me (simple project with just the mongo dependency - that wasn't working before). So I think we're in much better shape. Will every feature work? Perhaps not but we have a good starting point to work from. |
This commit also switches the sample to a regular Boot application. See spring-atticgh-25
This commit also switches the sample to a regular Boot application. See spring-atticgh-25
Hi,
I am trying to build a minimal sample with spring-data-mongodb. The project is here : https://github.com/olivierboudet/spring-graal-native/tree/master/spring-graal-native-samples/spring-data-mongodb
I encounter this error when running native-image :
I tried to add some reflection hint to reflect.json like this :
I modified the class Type.java of the feature to add some logs and I am surprised to see that the parameters of the constructor is not detected.
This is the change I did :
And this is the log when running native-image : the parameters are always null and hasOnlySimpleConstructor is always true for all classes.
The text was updated successfully, but these errors were encountered: