profile
viewpoint
Sébastien Deleuze sdeleuze Pivotal Lyon https://twitter.com/sdeleuze Spring Framework committer at Pivotal, Kotlin addict, WebAssembly believer, MiXiT conference organizer.

reactor/lite-rx-api-hands-on 679

Lite Rx API Hands-On with Reactor Core 3

sbrannen/spring-composed 82

Composed annotations for use with the Spring Framework

joshlong/devoxx-france-2015-microservices-hol 5

HOL for Devoxx France 2015

sdeleuze/booking-example 5

Example of a Spring / Backbone.js booking application based on RESThub 2 stack

sdeleuze/async-http-client 1

Asynchronous Http and WebSocket Client library for Java

sdeleuze/backbone.datagrid 1

A powerful component, based on Backbone.View, that displays your Backbone collections in a dynamic datagrid table.

aclement/spring-boot-graal-processor 0

Annotation processor for creating reflection json files for graal

push eventspring-projects-experimental/spring-graal-native

Sébastien Deleuze

commit sha 05b042e48642f74bfebefa175370268c209e35d5

Fix a typo

view details

push time in a month

push eventsdeleuze/spring-graal-native

Sébastien Deleuze

commit sha b1f8e47b30774bf901412a2e3e1446b743301fd7

Use GraalVM 20.0.0 dev builds See gh-45

view details

Sébastien Deleuze

commit sha ff69b04f27e24e87454ca39f76dd17ad41211470

Use GraalVM 20.0.0 dev builds See gh-45

view details

Sébastien Deleuze

commit sha 6ed18d8f76b69db19cab8024c14c7da688f65855

Increase agent running time from 3 to 10 seconds This commit tries to fix error reported on slow CI but not on a fast laptop with the very same build on a the same Docker image.

view details

Sébastien Deleuze

commit sha 05b042e48642f74bfebefa175370268c209e35d5

Fix a typo

view details

push time in a month

push eventspring-projects-experimental/spring-graal-native

Sébastien Deleuze

commit sha 6ed18d8f76b69db19cab8024c14c7da688f65855

Increase agent running time from 3 to 10 seconds This commit tries to fix error reported on slow CI but not on a fast laptop with the very same build on a the same Docker image.

view details

push time in a month

push eventspring-projects-experimental/spring-graal-native

Sébastien Deleuze

commit sha ff69b04f27e24e87454ca39f76dd17ad41211470

Use GraalVM 20.0.0 dev builds See gh-45

view details

push time in a month

push eventspring-projects-experimental/spring-graal-native

Sébastien Deleuze

commit sha 40db7cd7b67b237ac78eaa120c84c6f4309ce34d

Add docker.sh for building locally the project See gh-46

view details

Sébastien Deleuze

commit sha b1f8e47b30774bf901412a2e3e1446b743301fd7

Use GraalVM 20.0.0 dev builds See gh-45

view details

push time in a month

issue closedspring-projects-experimental/spring-graal-native

Upgrade to Spring Boot 2.3.0.M1

Update CI as well to use GraalVM dev builds.

closed time in a month

sdeleuze

push eventsdeleuze/spring-graal-native

Sébastien Deleuze

commit sha ddce70c856231398d96fe1b62d22b3449a3db5a0

Fix and polish Dockerfile Closes gh-46

view details

Sébastien Deleuze

commit sha 40db7cd7b67b237ac78eaa120c84c6f4309ce34d

Add docker.sh for building locally the project See gh-46

view details

push time in a month

push eventspring-projects-experimental/spring-graal-native

Sébastien Deleuze

commit sha ddce70c856231398d96fe1b62d22b3449a3db5a0

Fix and polish Dockerfile Closes gh-46

view details

push time in a month

push eventspring-projects-experimental/spring-graal-native

Sébastien Deleuze

commit sha 453b6617f57d3ca2b8fdafcdd72d4e69459fd92c

Add and use a custom Dockerfile for GraalVM dev builds See gh-46

view details

push time in a month

push eventsdeleuze/spring-graal-native

Sébastien Deleuze

commit sha 1ce047267833d11c8f3854ad2b770566bfd52201

Try without gu-wrapper.sh See gh-45

view details

Sébastien Deleuze

commit sha 081d2773e4b92d57c3c7408bd57a7d00c7243d24

Polish build.sh See gh-45

view details

Sébastien Deleuze

commit sha 453b6617f57d3ca2b8fdafcdd72d4e69459fd92c

Add and use a custom Dockerfile for GraalVM dev builds See gh-46

view details

push time in a month

fork sdeleuze/docker-images

Official source for Docker configurations, images, and examples of Dockerfiles for Oracle products and projects

http://developer.oracle.com/containers

fork in a month

push eventspring-projects-experimental/spring-graal-native

Sébastien Deleuze

commit sha 081d2773e4b92d57c3c7408bd57a7d00c7243d24

Polish build.sh See gh-45

view details

push time in a month

push eventspring-projects-experimental/spring-graal-native

Sébastien Deleuze

commit sha 1ce047267833d11c8f3854ad2b770566bfd52201

Try without gu-wrapper.sh See gh-45

view details

push time in a month

push eventspring-projects-experimental/spring-graal-native

Sébastien Deleuze

commit sha d6d5974afd0ad364a19586613470ba15ac972796

Upgrade to Spring Boot 2.3.0.M1 Update CI and documentation as well to use GraalVM dev builds. See gh-45

view details

push time in a month

push eventsdeleuze/spring-graal-native

Andy Clement

commit sha f69f49990a6a318fc3832aa0473911d0ea0392ed

Fix vanilla-tx sample on Java11

view details

Sébastien Deleuze

commit sha d6d5974afd0ad364a19586613470ba15ac972796

Upgrade to Spring Boot 2.3.0.M1 Update CI and documentation as well to use GraalVM dev builds. See gh-45

view details

push time in a month

push eventsdeleuze/spring-graal-native

Andy Clement

commit sha bff94234df1fa15b638d261d2975223ad71c5d17

Add grpcurl to get vanilla-grpc working on CI

view details

Andy Clement

commit sha b9211e99b86832294888f203e46dc66e84d32bbd

Use go to install grpcurl instead

view details

Andy Clement

commit sha 208e1298785ec8516df67dcf6236e8fdf7373ae1

remove use of go from build.sh

view details

Sébastien Deleuze

commit sha 5ac172cd4a534a9a8039fbbd582804ae8096ad49

Fix CI build script grpcurl and tty-table should work correctly now.

view details

Sébastien Deleuze

commit sha be77b7b23734c89e172585db18f2ea4696ff256f

Display build time in seconds instead of ms

view details

Sébastien Deleuze

commit sha 4001bf3291999cd1d98a2586d6c41411b3d1c5a9

Upgrade to Spring Boot 2.3.0.M1 Update CI and documentation as well to use GraalVM dev builds. See gh-45

view details

push time in a month

issue openedspring-projects-experimental/spring-graal-native

Upgrade to Spring Boot 2.3.0.M1

Update CI as well to use GraalVM dev builds.

created time in a month

push eventspring-projects-experimental/spring-fu

Sébastien Deleuze

commit sha 11daf5253d57b19e643e59294ccb78d02078326d

Switch to 0.3.0.BUILD-SNAPSHOT

view details

push time in a month

push eventspring-projects-experimental/spring-fu

Sébastien Deleuze

commit sha f5fa7ee5dd537bd5270559cbb555dcece35def49

Upgrade to Boot 2.3.0.M1 and release Spring Fu 0.3.0.M1

view details

push time in a month

push eventspring-projects-experimental/spring-fu

Sébastien Deleuze

commit sha 2f9becd39fc8a195c71236854b1d10be02e68990

Upgrade to Boot 2.3.0.M1 and release Spring Fu 0.3.0.M

view details

push time in a month

issue commentspring-projects/spring-framework

Support suspending handler methods in Spring MVC

Hi, such support is not yet available in snapshots so you have to wait or contribute a PR ;-)

sdeleuze

comment created time in a month

issue openedspring-projects-experimental/spring-graal-native

Deploy feature and samples artifacts

On https://repo.spring.io/libs-snapshot-local/ for snapshots and https://repo.spring.io/libs-milestone-local/ for releases.

created time in a month

push eventspring-projects-experimental/spring-graal-native

Sébastien Deleuze

commit sha be77b7b23734c89e172585db18f2ea4696ff256f

Display build time in seconds instead of ms

view details

push time in a month

push eventspring-projects-experimental/spring-graal-native

Sébastien Deleuze

commit sha 5ac172cd4a534a9a8039fbbd582804ae8096ad49

Fix CI build script grpcurl and tty-table should work correctly now.

view details

push time in a month

push eventspring-projects-experimental/spring-graal-native

Sébastien Deleuze

commit sha d9d1f03ab745682ad6a32937ef9b27fc87dc71c0

Refactor ConfigOptions to manage removeUnusedAutoconfig

view details

push time in a month

push eventsdeleuze/spring-graal-native

Sébastien Deleuze

commit sha d9d1f03ab745682ad6a32937ef9b27fc87dc71c0

Refactor ConfigOptions to manage removeUnusedAutoconfig

view details

push time in a month

push eventsdeleuze/spring-graal-native

Sébastien Deleuze

commit sha 7e02b8e3e74f10d965e5914a4f3aaa29d017da36

Refactor ConfigOptions to manage removeUnusedAutoconfig

view details

push time in a month

push eventspring-projects-experimental/spring-graal-native

Sébastien Deleuze

commit sha 481e977fa099a3c98d907a5ee129cdbc992937cb

Make it possible to remove Snakeyaml Closes gh-28

view details

push time in a month

issue closedspring-projects-experimental/spring-graal-native

Remove org.yaml.snakeyaml.* classes if no YAML file is used

We should identify at build time if YAML support is needed and avoid compiling and including org.yaml.snakeyaml.* classes if not used. Currently these classes are always included.

To be discussed with @bclozel and @snicoll.

closed time in a month

sdeleuze

push eventsdeleuze/spring-graal-native

Sébastien Deleuze

commit sha 0e016cbb1db8d8f78898967ddadaf4722ff5312e

Make substitution class names consistent

view details

Andy Clement

commit sha 0555ca52154c653a422369c17814cb2aaeb25490

more ci polish

view details

Sébastien Deleuze

commit sha 481e977fa099a3c98d907a5ee129cdbc992937cb

Make it possible to remove Snakeyaml Closes gh-28

view details

push time in a month

push eventspring-projects-experimental/spring-graal-native

Sébastien Deleuze

commit sha 0e016cbb1db8d8f78898967ddadaf4722ff5312e

Make substitution class names consistent

view details

push time in a month

push eventspring-projects-experimental/spring-graal-native

Sébastien Deleuze

commit sha b6c087a49a92c1f4c4bca081e8591f85a4d278bd

Fix PetClinic sample error when adding a new owner Closes gh-43

view details

push time in a month

issue closedspring-projects-experimental/spring-graal-native

PetClinic sample error when adding a new owner

The following error is displayed in the browser:

There was an unexpected error (type=Bad Request, status=400).
Type mismatch.

closed time in a month

sdeleuze

push eventsdeleuze/spring-graal-native

Sébastien Deleuze

commit sha b6c087a49a92c1f4c4bca081e8591f85a4d278bd

Fix PetClinic sample error when adding a new owner Closes gh-43

view details

push time in a month

issue commentspring-projects-experimental/spring-graal-native

PetClinic sample error when adding a new owner

With the Spring MVC variant of PetClini bring by #17 we now have a more meaningful error message:

SEVERE: Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is javax.validation.ValidationException: HV000083: The specified annotation javax.validation.constraints.Digits defines no attribute 'groups'.] with root cause
javax.validation.ValidationException: HV000083: The specified annotation javax.validation.constraints.Digits defines no attribute 'groups'.

It seems some reflection tuning is needed.

sdeleuze

comment created time in a month

push eventspring-projects-experimental/spring-graal-native

Sébastien Deleuze

commit sha f27304d424533d3e7022793ce5adf836985af3f8

Use regular (Spring MVC) variant of Pet Clinic Closes gh-17

view details

push time in a month

push eventsdeleuze/spring-graal-native

Sébastien Deleuze

commit sha 21a31415506ead09b80df684f829ab74917b15c2

Add build badge

view details

Sébastien Deleuze

commit sha f16e0c48ce55a9daa2d9194f10600137392e3ff8

Polish build script See gh-31

view details

Sébastien Deleuze

commit sha f274a3b537f4823b9faa4bc5fce2e5e813259711

Polish build script See gh-31

view details

Andy Clement

commit sha f95164bd9441f99239a2eb7125ae88b550278dd1

Fix vanilla-tx This tweaks the feature to support vanilla-tx. The hint on the Transaction Selector needing altering so that the autoconfig wasn't deactivated if one of the specific types it needs is not around, since they are not all always required. This also refactors out the configuration and hints into proper classes rather than mixing those in with the rest of the codebase. Fixes gh-40

view details

Andy Clement

commit sha f49b6f01d5831614d8b18d53e4906a97e6a8776a

avoid additional runs messing up results in test

view details

Andy Clement

commit sha 31358f94314e07bfa83ea55156c7248cfc84280b

Polish CI output

view details

Sébastien Deleuze

commit sha f27304d424533d3e7022793ce5adf836985af3f8

Use regular (Spring MVC) variant of Pet Clinic Closes gh-17

view details

push time in a month

push eventsdeleuze/spring-graal-native

Sébastien Deleuze

commit sha a897ed1181e913340b3e4f02690057e6905ba989

Use Spring MVC variant of PetClinic Currently broken when listing owners or veterinarians with following error: java.lang.ArrayIndexOutOfBoundsException: Index 89 out of bounds for length 2 at org.hibernate.hql.internal.ast.util.ASTPrinter.getTokenTypeName(ASTPrinter.java:95) at org.hibernate.hql.internal.ast.util.ASTPrinter.nodeToString(ASTPrinter.java:149) at org.hibernate.hql.internal.ast.util.ASTPrinter.showNode(ASTPrinter.java:140) at org.hibernate.hql.internal.ast.util.ASTPrinter.showAst(ASTPrinter.java:117) at org.hibernate.hql.internal.ast.util.ASTPrinter.showAst(ASTPrinter.java:82) at org.hibernate.hql.internal.ast.util.ASTPrinter.showAst(ASTPrinter.java:71) at org.hibernate.hql.internal.ast.util.ASTPrinter.showAsString(ASTPrinter.java:59) at org.hibernate.hql.internal.ast.QueryTranslatorImpl.showHqlAst(QueryTranslatorImpl.java:309) at org.hibernate.hql.internal.ast.QueryTranslatorImpl.parse(QueryTranslatorImpl.java:302) at org.hibernate.hql.internal.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:189) at org.hibernate.hql.internal.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:144) at org.hibernate.engine.query.spi.HQLQueryPlan.<init>(HQLQueryPlan.java:113) at org.hibernate.engine.query.spi.HQLQueryPlan.<init>(HQLQueryPlan.java:73) at org.hibernate.engine.query.spi.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:155) at org.hibernate.internal.AbstractSharedSessionContract.getQueryPlan(AbstractSharedSessionContract.java:600) at org.hibernate.internal.AbstractSharedSessionContract.createQuery(AbstractSharedSessionContract.java:709) at org.hibernate.internal.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:23) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:368) at com.sun.proxy.$Proxy300.createQuery(Unknown Source) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.orm.jpa.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke(SharedEntityManagerCreator.java:314) at com.sun.proxy.$Proxy300.createQuery(Unknown Source) at org.springframework.samples.petclinic.vet.JpaVetRepositoryImpl.findAll(JpaVetRepositoryImpl.java:45) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:139) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:366) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:99) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212) at com.sun.proxy.$Proxy290.findAll(Unknown Source) at org.springframework.samples.petclinic.vet.VetController.showVetList(VetController.java:44) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190) at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138) at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:106) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:888) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:793) at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1040) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898) at javax.servlet.http.HttpServlet.service(HttpServlet.java:634) at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883) at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)

view details

push time in a month

issue commentspring-projects-experimental/spring-graal-native

Add actuator support

This error happens when you add actuator support, so I turn it into a more general one.

mbagliojr

comment created time in a month

issue closedspring-projects-experimental/spring-graal-native

Error occurred while native image building

I'm facing error during building native image.

Here is Dockerfile which I used (Current latest version is 19.3.0)

FROM oracle/graalvm-ce:latest

RUN gu install native-image
RUN yum install git -y
RUN git clone https://github.com/spring-projects-experimental/spring-graal-native.git
WORKDIR spring-graal-native
RUN ./mvnw clean package
RUN git clone --single-branch --branch postgres-r2dbc https://github.com/sausageRoll/kotlindemo.git
WORKDIR /spring-graal-native/spring-graal-native-samples/kotlin-webmvc
RUN ../../mvnw clean install
RUN printf "Unpacking $JAR"
RUN rm -rf unpack
RUN mkdir unpack
WORKDIR /spring-graal-native/spring-graal-native-samples/kotlin-webmvc/unpack
RUN jar -xvf ../target/kotlin-webmvc-0.0.1-SNAPSHOT.jar >/dev/null 2>&1
RUN cp -R META-INF BOOT-INF/classes
WORKDIR /spring-graal-native/spring-graal-native-samples/kotlin-webmvc/unpack/BOOT-INF/classes
RUN LIBPATH=$(find ../../BOOT-INF/lib | tr '\n' ':') && \
    echo $LIBPATH && \
    CP=.:$LIBPATH && \
    echo $CP && \
    CP=$CP:../../../../../spring-graal-native-feature/target/spring-graal-native-feature-0.6.0.BUILD-SNAPSHOT.jar && \
    echo $CP && \
    echo "Compile" && \
    native-image \
      --no-server \
      -H:+TraceClassInitialization \
      -H:Name=kotlindemo \
      -H:+ReportExceptionStackTraces \
      --no-fallback \
      --allow-incomplete-classpath \
      --report-unsupported-elements-at-runtime \
      -DremoveUnusedAutoconfig=true \
      -cp $CP com.example.demo.DemoApplicationKt 

All steps are just copied appropriately from compile.sh And get the error below:

Fatal error: java.lang.RuntimeException: java.lang.RuntimeException: host C compiler or linker does not seem to work: java.lang.RuntimeException: returned 1

Running command: cc -v -o /spring-graal-native/spring-graal-native-samples/kotlin-webmvc/unpack/BOOT-INF/classes/kotlindemo -z noexecstack -Wl,--gc-sections -Wl,--dynamic-list -Wl,/tmp/SVM-2757203419255951332/exported_symbols.list -Wl,-x -L/tmp/SVM-2757203419255951332 -L/opt/graalvm-ce-java8-19.3.0/jre/lib -L/opt/graalvm-ce-java8-19.3.0/jre/lib/svm/clibraries/linux-amd64 /tmp/SVM-2757203419255951332/kotlindemo.o /opt/graalvm-ce-java8-19.3.0/jre/lib/svm/clibraries/linux-amd64/libffi.a /opt/graalvm-ce-java8-19.3.0/jre/lib/svm/clibraries/linux-amd64/liblibchelper.a /opt/graalvm-ce-java8-19.3.0/jre/lib/svm/clibraries/linux-amd64/libjvm.a /opt/graalvm-ce-java8-19.3.0/jre/lib/svm/clibraries/linux-amd64/libstrictmath.a /opt/graalvm-ce-java8-19.3.0/jre/lib/libnet.a /opt/graalvm-ce-java8-19.3.0/jre/lib/libzip.a /opt/graalvm-ce-java8-19.3.0/jre/lib/libjava.a /opt/graalvm-ce-java8-19.3.0/jre/lib/libnio.a -lm -lpthread -ldl -lpthread -lz -lrt

Using built-in specs.
COLLECT_GCC=cc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.8.5 20150623 (Red Hat 4.8.5-39.0.1) (GCC) 
COMPILER_PATH=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/:/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/:/usr/libexec/gcc/x86_64-redhat-linux/:/usr/lib/gcc/x86_64-redhat-linux/4.8.5/:/usr/lib/gcc/x86_64-redhat-linux/
LIBRARY_PATH=/usr/lib/gcc/x86_64-redhat-linux/4.8.5/:/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-v' '-o' '/spring-graal-native/spring-graal-native-samples/kotlin-webmvc/unpack/BOOT-INF/classes/kotlindemo' '-z' 'noexecstack' '-L/tmp/SVM-2757203419255951332' '-L/opt/graalvm-ce-java8-19.3.0/jre/lib' '-L/opt/graalvm-ce-java8-19.3.0/jre/lib/svm/clibraries/linux-amd64' '-mtune=generic' '-march=x86-64'
 /usr/libexec/gcc/x86_64-redhat-linux/4.8.5/collect2 --build-id --no-add-needed --eh-frame-hdr --hash-style=gnu -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o /spring-graal-native/spring-graal-native-samples/kotlin-webmvc/unpack/BOOT-INF/classes/kotlindemo -z noexecstack /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crt1.o /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crti.o /usr/lib/gcc/x86_64-redhat-linux/4.8.5/crtbegin.o -L/tmp/SVM-2757203419255951332 -L/opt/graalvm-ce-java8-19.3.0/jre/lib -L/opt/graalvm-ce-java8-19.3.0/jre/lib/svm/clibraries/linux-amd64 -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5 -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../.. --gc-sections --dynamic-list /tmp/SVM-2757203419255951332/exported_symbols.list -x /tmp/SVM-2757203419255951332/kotlindemo.o /opt/graalvm-ce-java8-19.3.0/jre/lib/svm/clibraries/linux-amd64/libffi.a /opt/graalvm-ce-java8-19.3.0/jre/lib/svm/clibraries/linux-amd64/liblibchelper.a /opt/graalvm-ce-java8-19.3.0/jre/lib/svm/clibraries/linux-amd64/libjvm.a /opt/graalvm-ce-java8-19.3.0/jre/lib/svm/clibraries/linux-amd64/libstrictmath.a /opt/graalvm-ce-java8-19.3.0/jre/lib/libnet.a /opt/graalvm-ce-java8-19.3.0/jre/lib/libzip.a /opt/graalvm-ce-java8-19.3.0/jre/lib/libjava.a /opt/graalvm-ce-java8-19.3.0/jre/lib/libnio.a -lm -lpthread -ldl -lpthread -lz -lrt -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/x86_64-redhat-linux/4.8.5/crtend.o /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crtn.o
/tmp/SVM-2757203419255951332/kotlindemo.o:(.data+0x2c0): undefined reference to `Java_sun_misc_Unsafe_defineClass'
/opt/graalvm-ce-java8-19.3.0/jre/lib/libjava.a(Throwable.o): In function `Java_java_lang_Throwable_fillInStackTrace':
/opt/jprt/T/P1/225159.buildslave/s/jdk/src/share/native/java/lang/Throwable.c:49: undefined reference to `JVM_FillInStackTrace'
/opt/graalvm-ce-java8-19.3.0/jre/lib/libjava.a(URLClassPath.o): In function `Java_sun_misc_URLClassPath_getLookupCacheForClassLoader':
/opt/jprt/T/P1/225159.buildslave/s/jdk/src/share/native/sun/misc/URLClassPath.c:100: undefined reference to `JVM_GetResourceLookupCache'
/opt/graalvm-ce-java8-19.3.0/jre/lib/libjava.a(URLClassPath.o): In function `Java_sun_misc_URLClassPath_getLookupCacheURLs':
/opt/jprt/T/P1/225159.buildslave/s/jdk/src/share/native/sun/misc/URLClassPath.c:77: undefined reference to `JVM_GetResourceLookupCacheURLs'
/opt/graalvm-ce-java8-19.3.0/jre/lib/libjava.a(VM.o): In function `Java_sun_misc_VM_latestUserDefinedLoader0':
/opt/jprt/T/P1/225159.buildslave/s/jdk/src/share/native/sun/misc/VM.c:116: undefined reference to `JVM_LatestUserDefinedLoader'
collect2: error: ld returned 1 exit status

        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at java.util.concurrent.ForkJoinTask.getThrowableException(ForkJoinTask.java:593)
        at java.util.concurrent.ForkJoinTask.get(ForkJoinTask.java:1005)
        at com.oracle.svm.hosted.NativeImageGenerator.run(NativeImageGenerator.java:462)
        at com.oracle.svm.hosted.NativeImageGeneratorRunner.buildImage(NativeImageGeneratorRunner.java:315)
        at com.oracle.svm.hosted.NativeImageGeneratorRunner.build(NativeImageGeneratorRunner.java:454)
        at com.oracle.svm.hosted.NativeImageGeneratorRunner.main(NativeImageGeneratorRunner.java:115)
Caused by: java.lang.RuntimeException: host C compiler or linker does not seem to work: java.lang.RuntimeException: returned 1

Running command: cc -v -o /spring-graal-native/spring-graal-native-samples/kotlin-webmvc/unpack/BOOT-INF/classes/kotlindemo -z noexecstack -Wl,--gc-sections -Wl,--dynamic-list -Wl,/tmp/SVM-2757203419255951332/exported_symbols.list -Wl,-x -L/tmp/SVM-2757203419255951332 -L/opt/graalvm-ce-java8-19.3.0/jre/lib -L/opt/graalvm-ce-java8-19.3.0/jre/lib/svm/clibraries/linux-amd64 /tmp/SVM-2757203419255951332/kotlindemo.o /opt/graalvm-ce-java8-19.3.0/jre/lib/svm/clibraries/linux-amd64/libffi.a /opt/graalvm-ce-java8-19.3.0/jre/lib/svm/clibraries/linux-amd64/liblibchelper.a /opt/graalvm-ce-java8-19.3.0/jre/lib/svm/clibraries/linux-amd64/libjvm.a /opt/graalvm-ce-java8-19.3.0/jre/lib/svm/clibraries/linux-amd64/libstrictmath.a /opt/graalvm-ce-java8-19.3.0/jre/lib/libnet.a /opt/graalvm-ce-java8-19.3.0/jre/lib/libzip.a /opt/graalvm-ce-java8-19.3.0/jre/lib/libjava.a /opt/graalvm-ce-java8-19.3.0/jre/lib/libnio.a -lm -lpthread -ldl -lpthread -lz -lrt

Using built-in specs.
COLLECT_GCC=cc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.8.5 20150623 (Red Hat 4.8.5-39.0.1) (GCC) 
COMPILER_PATH=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/:/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/:/usr/libexec/gcc/x86_64-redhat-linux/:/usr/lib/gcc/x86_64-redhat-linux/4.8.5/:/usr/lib/gcc/x86_64-redhat-linux/
LIBRARY_PATH=/usr/lib/gcc/x86_64-redhat-linux/4.8.5/:/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-v' '-o' '/spring-graal-native/spring-graal-native-samples/kotlin-webmvc/unpack/BOOT-INF/classes/kotlindemo' '-z' 'noexecstack' '-L/tmp/SVM-2757203419255951332' '-L/opt/graalvm-ce-java8-19.3.0/jre/lib' '-L/opt/graalvm-ce-java8-19.3.0/jre/lib/svm/clibraries/linux-amd64' '-mtune=generic' '-march=x86-64'
 /usr/libexec/gcc/x86_64-redhat-linux/4.8.5/collect2 --build-id --no-add-needed --eh-frame-hdr --hash-style=gnu -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o /spring-graal-native/spring-graal-native-samples/kotlin-webmvc/unpack/BOOT-INF/classes/kotlindemo -z noexecstack /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crt1.o /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crti.o /usr/lib/gcc/x86_64-redhat-linux/4.8.5/crtbegin.o -L/tmp/SVM-2757203419255951332 -L/opt/graalvm-ce-java8-19.3.0/jre/lib -L/opt/graalvm-ce-java8-19.3.0/jre/lib/svm/clibraries/linux-amd64 -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5 -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../.. --gc-sections --dynamic-list /tmp/SVM-2757203419255951332/exported_symbols.list -x /tmp/SVM-2757203419255951332/kotlindemo.o /opt/graalvm-ce-java8-19.3.0/jre/lib/svm/clibraries/linux-amd64/libffi.a /opt/graalvm-ce-java8-19.3.0/jre/lib/svm/clibraries/linux-amd64/liblibchelper.a /opt/graalvm-ce-java8-19.3.0/jre/lib/svm/clibraries/linux-amd64/libjvm.a /opt/graalvm-ce-java8-19.3.0/jre/lib/svm/clibraries/linux-amd64/libstrictmath.a /opt/graalvm-ce-java8-19.3.0/jre/lib/libnet.a /opt/graalvm-ce-java8-19.3.0/jre/lib/libzip.a /opt/graalvm-ce-java8-19.3.0/jre/lib/libjava.a /opt/graalvm-ce-java8-19.3.0/jre/lib/libnio.a -lm -lpthread -ldl -lpthread -lz -lrt -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/x86_64-redhat-linux/4.8.5/crtend.o /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crtn.o
/tmp/SVM-2757203419255951332/kotlindemo.o:(.data+0x2c0): undefined reference to `Java_sun_misc_Unsafe_defineClass'
/opt/graalvm-ce-java8-19.3.0/jre/lib/libjava.a(Throwable.o): In function `Java_java_lang_Throwable_fillInStackTrace':
/opt/jprt/T/P1/225159.buildslave/s/jdk/src/share/native/java/lang/Throwable.c:49: undefined reference to `JVM_FillInStackTrace'
/opt/graalvm-ce-java8-19.3.0/jre/lib/libjava.a(URLClassPath.o): In function `Java_sun_misc_URLClassPath_getLookupCacheForClassLoader':
/opt/jprt/T/P1/225159.buildslave/s/jdk/src/share/native/sun/misc/URLClassPath.c:100: undefined reference to `JVM_GetResourceLookupCache'
/opt/graalvm-ce-java8-19.3.0/jre/lib/libjava.a(URLClassPath.o): In function `Java_sun_misc_URLClassPath_getLookupCacheURLs':
/opt/jprt/T/P1/225159.buildslave/s/jdk/src/share/native/sun/misc/URLClassPath.c:77: undefined reference to `JVM_GetResourceLookupCacheURLs'
/opt/graalvm-ce-java8-19.3.0/jre/lib/libjava.a(VM.o): In function `Java_sun_misc_VM_latestUserDefinedLoader0':
/opt/jprt/T/P1/225159.buildslave/s/jdk/src/share/native/sun/misc/VM.c:116: undefined reference to `JVM_LatestUserDefinedLoader'
collect2: error: ld returned 1 exit status

        at com.oracle.svm.hosted.image.NativeBootImageViaCC.write(NativeBootImageViaCC.java:382)
        at com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:652)
        at com.oracle.svm.hosted.NativeImageGenerator.lambda$run$0(NativeImageGenerator.java:445)
        at java.util.concurrent.ForkJoinTask$AdaptedRunnableAction.exec(ForkJoinTask.java:1386)
        at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
        at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
        at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
        at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)

closed time in a month

igor-drozdov-n26

create barnchsdeleuze/spring-graal-native

branch : springmvc-petclinic

created branch time in a month

push eventspring-projects-experimental/spring-graal-native

Sébastien Deleuze

commit sha f274a3b537f4823b9faa4bc5fce2e5e813259711

Polish build script See gh-31

view details

push time in a month

push eventspring-projects-experimental/spring-graal-native

Sébastien Deleuze

commit sha f16e0c48ce55a9daa2d9194f10600137392e3ff8

Polish build script See gh-31

view details

push time in a month

push eventspring-projects-experimental/spring-graal-native

Sébastien Deleuze

commit sha bc32de28a80de712446cc32385e79a1c69714bbe

Polish build script Closes gh-31

view details

Sébastien Deleuze

commit sha 21a31415506ead09b80df684f829ab74917b15c2

Add build badge

view details

push time in a month

push eventsdeleuze/spring-graal-native

Sébastien Deleuze

commit sha 5a2f64cf2ff3fbecd4916f64f1f3dce75b270684

Polish build script See gh-31

view details

Sébastien Deleuze

commit sha bc32de28a80de712446cc32385e79a1c69714bbe

Polish build script Closes gh-31

view details

push time in a month

push eventspring-projects-experimental/spring-graal-native

Sébastien Deleuze

commit sha 5a2f64cf2ff3fbecd4916f64f1f3dce75b270684

Polish build script See gh-31

view details

push time in a month

push eventspring-projects-experimental/spring-graal-native

Sébastien Deleuze

commit sha 03f72e710af0336639cb0b406d273016554dc790

Add Maven in the CI build script See gh-31

view details

push time in a month

push eventsdeleuze/spring-graal-native

Sébastien Deleuze

commit sha 03f72e710af0336639cb0b406d273016554dc790

Add Maven in the CI build script See gh-31

view details

push time in a month

push eventspring-projects-experimental/spring-graal-native

Sébastien Deleuze

commit sha 54f4178b591b95eef4b65cbc89684ef34b2a00fd

Setup CI See gh-31

view details

push time in a month

push eventsdeleuze/spring-graal-native

Sébastien Deleuze

commit sha 54f4178b591b95eef4b65cbc89684ef34b2a00fd

Setup CI See gh-31

view details

push time in a month

push eventsdeleuze/spring-graal-native

Sébastien Deleuze

commit sha 8a4329e83ef555ebc879abe0ffe378535d6f7753

Setup CI See gh-31

view details

push time in a month

push eventspring-projects-experimental/spring-graal-native

Sébastien Deleuze

commit sha 8617669c09b64b64cdf951ce338d0f954d2add91

Remove Xerces from Tomcat samples

view details

push time in a month

push eventsdeleuze/spring-graal-native

Andy Clement

commit sha 1fec723f63db9cc7b0244280d78dafaee502b31f

Start migration to Graal 19.3 The commandlinerunner and webflux-netty samples are working with Graal 19.3 (Java11 flavour). Some leftover 'hacks' from the optimization branch have been more properly fixed. Notice the image sizes here have increased due to 19.3 (commandlinerunner by 5M). The current netty changes to runtime initialize some types (to work around InetAddress changes) have been put in the initialization.json file in the feature whilst waiting for them to come through in real netty. The springmvc-tomcat sample is not yet working.

view details

Andy Clement

commit sha fbdd6dc0fc79ebabc6f5f90b168647f2ac3e1e09

progressing towards 19.3 compatibility

view details

Andy Clement

commit sha e5c2b5d082d5354ffa99ce9c84a148948494fcda

fixes/optimizations following graal 19.3+ dev build progress

view details

Andy Clement

commit sha 32a90690f544119b792ad32c161c19cccf6b7f61

Scripts for running CLR sample with pure agent produced config

view details

Andy Clement

commit sha d3e234144df23fe057f51a44e5f1d1e8f5c88672

agent scripts for webflux-netty

view details

Andy Clement

commit sha 62caf60829bfb192c6b5e17d6d306ab67b00262c

petclinic sample compiling with graal master

view details

Andy Clement

commit sha 3c547a849f91f3df1981bf39f718ceb908a1ba53

working petclinic polish

view details

Andy Clement

commit sha fa26cc05b0452d05dcef4a6646206edc30d3fc6f

add script to just run native-image step

view details

Andy Clement

commit sha 012dc5dab7274d9eb9fd2fddf598b6493c8d1681

proceeding to remove petclinic related entries from reflect.json

view details

Andy Clement

commit sha 6b3e078b3202830b97aa2cd1b7f14f736ed40f84

removed more reflect.json and turned it into computation

view details

Andy Clement

commit sha cf3a132b23ce31c338dac95f875a31c13bd7f35b

Merge branch 'master' into upgrade_19_3

view details

Andy Clement

commit sha 8c819c0fd2493d0ebedddca7cde0372930ed7495

add init config to allow mvc sample to succeed

view details

Andy Clement

commit sha 3f63d66d013ed437ad28a977150ebd58050a13cb

thymeleaf sample fully working

view details

Andy Clement

commit sha 5367b3460665edf41bbc20071c77755d13867de0

Fix compilation of vanilla-jpa

view details

Sébastien Deleuze

commit sha 628a9a0653668b21d5d80af6d0290c9b9c208c64

Remove CGLIB classes from native images Closes gh-27

view details

Andy Clement

commit sha e990ceba42fe0f30bad997e9fac61c827eb22879

Necessary info for running mvctomcat with agent

view details

Andy Clement

commit sha 36eae7e82f28fa45d53f92ce69f51d43e48accef

Added indexer directly so pure agent config can be tested

view details

Andy Clement

commit sha 8b55f5a4b55610284ebecee67e3de7f662a9a97c

Upgrade sample to latest boot

view details

Andy Clement

commit sha 8019b4f41d4ee9d3cf2effff62bd2b7b0b15fc34

Add extra bits to enable webflux-netty execution with agent

view details

Andy Clement

commit sha eaf2261666bbe6e0e746f11edd72d14a579915cb

Working to get more samples behaving

view details

push time in a month

push eventsdeleuze/spring-graal-native

Sébastien Deleuze

commit sha 8517960ed05309e41e03f7d93df8f80c7c310b8d

Remove Xerces from Tomcat samples

view details

push time in a month

CommitCommentEvent

delete branch spring-projects-experimental/spring-graal-native

delete branch : upgrade_19_3

delete time in a month

issue closedspring-projects-experimental/spring-graal-native

Error occurred using compile.sh in the example

There is a compile error in the example

I am trying to test kotlin graal native. I found this example. https://github.com/spring-projects-experimental/spring-graal-native/tree/master/spring-graal-native-samples/kotlin-webmvc

But when I complied using compile.sh as instructed. It gave me an error as below

Error: No instances of org.springframework.util.unit.DataSize are allowed in the image heap as this class should be initialized at image runtime.Object has been initialized without the native-image initialization instrumentation and the stack trace can't be tracked.
Detailed message:
Trace:  object org.springframework.util.unit.DataUnit
        method org.springframework.util.unit.DataSize.determineDataUnit(String, DataUnit)
Call path from entry point to org.springframework.util.unit.DataSize.determineDataUnit(String, DataUnit): 
        at org.springframework.util.unit.DataSize.determineDataUnit(DataSize.java:192)
        at org.springframework.util.unit.DataSize.parse(DataSize.java:182)
        at org.springframework.boot.convert.StringToDataSizeConverter.convert(StringToDataSizeConverter.java:57)
        at org.springframework.boot.convert.StringToDataSizeConverter.convert(StringToDataSizeConverter.java:48)
        at org.springframework.core.convert.support.ConversionUtils.invokeConverter(ConversionUtils.java:41)
        at org.springframework.core.convert.support.GenericConversionService.convert(GenericConversionService.java:191)
        at org.springframework.boot.convert.DelimitedStringToCollectionConverter.lambda$convert$0(DelimitedStringToCollectionConverter.java:72)
        at org.springframework.boot.convert.DelimitedStringToCollectionConverter$$Lambda$513/1107588916.apply(Unknown Source)
        at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
        at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
        at java.util.stream.SpinedBuffer.forEach(SpinedBuffer.java:246)
        at java.util.stream.SpinedBuffer.toString(SpinedBuffer.java:269)
        at java.lang.String.valueOf(String.java:2994)
        at java.lang.StringBuilder.append(StringBuilder.java:131)
        at com.oracle.svm.core.amd64.AMD64CPUFeatureAccess.verifyHostSupportsArchitecture(AMD64CPUFeatureAccess.java:179)
        at com.oracle.svm.core.JavaMainWrapper.runCore(JavaMainWrapper.java:129)
        at com.oracle.svm.core.JavaMainWrapper.run(JavaMainWrapper.java:186)
        at com.oracle.svm.core.code.IsolateEnterStub.JavaMainWrapper_run_5087f5482cc9a6abc971913ece43acb471d2631b(generated:0)

com.oracle.svm.core.util.UserError$UserException: No instances of org.springframework.util.unit.DataSize are allowed in the image heap as this class should be initialized at image runtime.Object has been initialized without the native-image initialization instrumentation and the stack trace can't be tracked.
Detailed message:
Trace:  object org.springframework.util.unit.DataUnit
        method org.springframework.util.unit.DataSize.determineDataUnit(String, DataUnit)
Call path from entry point to org.springframework.util.unit.DataSize.determineDataUnit(String, DataUnit): 
        at org.springframework.util.unit.DataSize.determineDataUnit(DataSize.java:192)
        at org.springframework.util.unit.DataSize.parse(DataSize.java:182)
        at org.springframework.boot.convert.StringToDataSizeConverter.convert(StringToDataSizeConverter.java:57)
        at org.springframework.boot.convert.StringToDataSizeConverter.convert(StringToDataSizeConverter.java:48)
        at org.springframework.core.convert.support.ConversionUtils.invokeConverter(ConversionUtils.java:41)
        at org.springframework.core.convert.support.GenericConversionService.convert(GenericConversionService.java:191)
        at org.springframework.boot.convert.DelimitedStringToCollectionConverter.lambda$convert$0(DelimitedStringToCollectionConverter.java:72)
        at org.springframework.boot.convert.DelimitedStringToCollectionConverter$$Lambda$513/1107588916.apply(Unknown Source)
        at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
        at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
        at java.util.stream.SpinedBuffer.forEach(SpinedBuffer.java:246)
        at java.util.stream.SpinedBuffer.toString(SpinedBuffer.java:269)
        at java.lang.String.valueOf(String.java:2994)
        at java.lang.StringBuilder.append(StringBuilder.java:131)
        at com.oracle.svm.core.amd64.AMD64CPUFeatureAccess.verifyHostSupportsArchitecture(AMD64CPUFeatureAccess.java:179)
        at com.oracle.svm.core.JavaMainWrapper.runCore(JavaMainWrapper.java:129)
        at com.oracle.svm.core.JavaMainWrapper.run(JavaMainWrapper.java:186)
        at com.oracle.svm.core.code.IsolateEnterStub.JavaMainWrapper_run_5087f5482cc9a6abc971913ece43acb471d2631b(generated:0)

        at com.oracle.svm.core.util.UserError.abort(UserError.java:75)
        at com.oracle.svm.hosted.FallbackFeature.reportAsFallback(FallbackFeature.java:223)
        at com.oracle.svm.hosted.NativeImageGenerator.runPointsToAnalysis(NativeImageGenerator.java:737)
        at com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:526)
        at com.oracle.svm.hosted.NativeImageGenerator.lambda$run$0(NativeImageGenerator.java:444)
        at java.util.concurrent.ForkJoinTask$AdaptedRunnableAction.exec(ForkJoinTask.java:1386)
        at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
        at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
        at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
        at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
Caused by: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: No instances of org.springframework.util.unit.DataSize are allowed in the image heap as this class should be initialized at image runtime.Object has been initialized without the native-image initialization instrumentation and the stack trace can't be tracked.
Detailed message:
Trace:  object org.springframework.util.unit.DataUnit
        method org.springframework.util.unit.DataSize.determineDataUnit(String, DataUnit)
Call path from entry point to org.springframework.util.unit.DataSize.determineDataUnit(String, DataUnit): 
        at org.springframework.util.unit.DataSize.determineDataUnit(DataSize.java:192)
        at org.springframework.util.unit.DataSize.parse(DataSize.java:182)
        at org.springframework.boot.convert.StringToDataSizeConverter.convert(StringToDataSizeConverter.java:57)
        at org.springframework.boot.convert.StringToDataSizeConverter.convert(StringToDataSizeConverter.java:48)
        at org.springframework.core.convert.support.ConversionUtils.invokeConverter(ConversionUtils.java:41)
        at org.springframework.core.convert.support.GenericConversionService.convert(GenericConversionService.java:191)
        at org.springframework.boot.convert.DelimitedStringToCollectionConverter.lambda$convert$0(DelimitedStringToCollectionConverter.java:72)
        at org.springframework.boot.convert.DelimitedStringToCollectionConverter$$Lambda$513/1107588916.apply(Unknown Source)
        at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
        at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
        at java.util.stream.SpinedBuffer.forEach(SpinedBuffer.java:246)
        at java.util.stream.SpinedBuffer.toString(SpinedBuffer.java:269)
        at java.lang.String.valueOf(String.java:2994)
        at java.lang.StringBuilder.append(StringBuilder.java:131)
        at com.oracle.svm.core.amd64.AMD64CPUFeatureAccess.verifyHostSupportsArchitecture(AMD64CPUFeatureAccess.java:179)
        at com.oracle.svm.core.JavaMainWrapper.runCore(JavaMainWrapper.java:129)
        at com.oracle.svm.core.JavaMainWrapper.run(JavaMainWrapper.java:186)
        at com.oracle.svm.core.code.IsolateEnterStub.JavaMainWrapper_run_5087f5482cc9a6abc971913ece43acb471d2631b(generated:0)

        at com.oracle.graal.pointsto.constraints.UnsupportedFeatures.report(UnsupportedFeatures.java:130)
        at com.oracle.graal.pointsto.BigBang.finish(BigBang.java:565)
        at com.oracle.svm.hosted.NativeImageGenerator.runPointsToAnalysis(NativeImageGenerator.java:688)
        ... 7 more
Error: Image build request failed with exit status 1

image

image

closed time in a month

RoySRose

issue commentspring-projects-experimental/spring-graal-native

Error occurred using compile.sh in the example

I have tested, it works as expected in upgrade_19_3 branch about to be merged in master.

RoySRose

comment created time in a month

issue closedspring-projects-experimental/spring-graal-native

Static initializer in reactor Traces barfs

I had to add this to make the riff streaming-processor work as a native image:

[
    {
        "name": "reactor.core.publisher.Traces$StackWalkerCallSiteSupplierFactory",
        "allDeclaredConstructors": true
    },
    {
        "name": "reactor.core.publisher.Traces$SharedSecretsCallSiteSupplierFactory",
        "allDeclaredConstructors": true
    },
    {
        "name": "reactor.core.publisher.Traces$ExceptionCallSiteSupplierFactory",
        "allDeclaredConstructors": true
    }
]

closed time in a month

dsyer

issue commentspring-projects-experimental/spring-graal-native

Static initializer in reactor Traces barfs

Fixed in upgrade_19_3 about to be merged in master.

dsyer

comment created time in a month

push eventspring-projects-experimental/spring-graal-native

Sébastien Deleuze

commit sha 311bb35a1c9a25ff3d14f8503f1c480d297512ba

Fix reactor Traces Closes gh-13

view details

push time in a month

issue closedspring-projects-experimental/spring-graal-native

ConditionalOnUse

Here is the idea. ConditionalOnUse is not an annotation but a behavior that intends to avoid creating unused feature even if they are on the classpath if the related beans and/or annotations are not used.

The interesting point of convergence here is that with the tracing agent we need a phase where we run the application. Combined with closed world assumptions and the fact that most singletons are instantiated at startup, could we use this opportunity to identify unused beans, to remove them from what we provide to native-image allowing then to avoid compiling and bundled these classes in the native image? This could for example apply to RestTemplate and WebClient builders and avoid to load client related infrastructure when just the server is needed.

Another source of waste is Hibernate Validator (provided by default with spring-boot-starter-web and spring-boot-starter-webflux via spring-boot-starter-validation), I have briefly discuss this one with @bclozel, it is more complex because it depends of the validation classes used in the application, so just analyzing the whole classpath is likely to not be precise enough. A more simple and pragmatic approach for this case would be to find a way to solve how users could use thespring-boot-starter-validation without the non-intuitive exclude, that could potentially allow to avoid providing this spring-boot-starter-validation by default with the web starters.

Any thoughts?

closed time in a month

sdeleuze

issue commentspring-projects-experimental/spring-graal-native

ConditionalOnUse

Since #24 is closed and conditional on use out of the scope of this project, I close this issue.

sdeleuze

comment created time in a month

issue openedspring-projects-experimental/spring-graal-native

PetClinic example error when adding a new owner

The following error is displayed in the browser:

There was an unexpected error (type=Bad Request, status=400).
Type mismatch.

created time in a month

issue closedspring-projects-experimental/spring-graal-native

Error occurred while native image building springmvc-tomcat

When executing the compile.sh of springmvc-tomcat. Native image is not getting generated.

Can you please let me know what needs to be done.

Receiving the following error. Fatal error: java.lang.NoClassDefFoundError: org/springframework/orm/jpa/JpaVendorAdapter at java.base/java.lang.Class.getDeclaringClass0(Native Method) at java.base/java.lang.Class.isMemberClass(Class.java:1668) at java.base/sun.reflect.annotation.TypeAnnotationParser.buildAnnotatedTypes(TypeAnnotationParser.java:134) at java.base/java.lang.reflect.Executable.getAnnotatedParameterTypes(Executable.java:700) at com.oracle.svm.reflect.target.Target_java_lang_reflect_Executable$AnnotatedParameterTypesComputer.compute(Target_java_lang_reflect_Executable.java:154) at com.oracle.svm.hosted.substitute.ComputedValueField.readValue(ComputedValueField.java:265) at com.oracle.svm.core.meta.ReadableJavaField.readFieldValue(ReadableJavaField.java:35) at com.oracle.svm.hosted.ameta.AnalysisConstantReflectionProvider.readValue(AnalysisConstantReflectionProvider.java:98) at com.oracle.svm.hosted.ameta.AnalysisConstantReflectionProvider.readFieldValue(AnalysisConstantReflectionProvider.java:77) at com.oracle.graal.pointsto.ObjectScanner.scanField(ObjectScanner.java:175) at com.oracle.graal.pointsto.ObjectScanner.doScan(ObjectScanner.java:344) at com.oracle.graal.pointsto.ObjectScanner.access$400(ObjectScanner.java:62) at com.oracle.graal.pointsto.ObjectScanner$3$1.run(ObjectScanner.java:414) at com.oracle.graal.pointsto.util.CompletionExecutor.lambda$execute$0(CompletionExecutor.java:171) at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1426) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:177) Error: Image build request failed with exit status 1

closed time in a month

Anand0583

issue commentspring-projects-experimental/spring-graal-native

Error occurred while native image building springmvc-tomcat

I have just check that springmvc-tomcat on upgrade_19_3 branch (about to merged in master) works as expected with GraalVM 19.3.1 (broken on Mac but we will provide shortly compatbible GraalVM builds with the required fixes). Sorry for the lag.

Anand0583

comment created time in a month

issue closedspring-projects-experimental/spring-graal-native

proxy and reflection settings are insufficient for Pet Clinic

The Pet Clinic application can be built as Native Image. However, when I click the "Add New Pet" button in "Owner Information" page, an internal error has occurred.

The settings seem to be insufficient. After I added org.springframework.web.bind.annotation.ModelAttribute and org.springframework.format.annotation.DateTimeFormat to both proxies.json and reflect.json, it works fine.

closed time in a month

tiwatsuka

issue commentspring-projects-experimental/spring-graal-native

proxy and reflection settings are insufficient for Pet Clinic

Fixed on upgrade_19_3 which is about to merged in master, thanks for providing compatibility hints.

tiwatsuka

comment created time in a month

push eventspring-projects-experimental/spring-graal-native

Sébastien Deleuze

commit sha 1e7740a9d0ba64dc040bcc0b26368df0496062f2

Fix PetClinic "Add new pet" button Closes gh-23

view details

push time in a month

issue closedspring-projects-experimental/spring-graal-native

Backport FilteringSpringBootCondition on Boot 2.2.x via a substitution

To make it possible to run the agent out of the box, see https://github.com/spring-projects/spring-boot/pull/19490.

closed time in a month

sdeleuze

issue commentspring-projects-experimental/spring-graal-native

Backport FilteringSpringBootCondition on Boot 2.2.x via a substitution

That won't work since that will not be used on the JIT with the agent, so the only solution is to switch on Spring Boot 2.3 snapshots.

sdeleuze

comment created time in a month

push eventspring-projects-experimental/spring-graal-native

Sébastien Deleuze

commit sha 275d9ca0c9465b4399018bb47b9f767be999c159

Upgrade to Spring Boot 2.2.3 Use Spring Boot BOM for dependency management in the feature. See gh-14

view details

push time in a month

issue commentspring-projects-experimental/spring-graal-native

Backport FilteringSpringBootCondition on Boot 2.2.x via a substitution

@aclement I tried following substitution:

@TargetClass(className="org.springframework.boot.autoconfigure.condition.FilteringSpringBootCondition")
final class Target_FilteringSpringBootCondition {

	@Substitute
	protected static Class<?> resolve(String className, ClassLoader classLoader) throws ClassNotFoundException {
		if (classLoader != null) {
			return Class.forName(className, false, classLoader);
		}
		return Class.forName(className);
	}
}

But I get a ava.lang.ClassNotFoundException: org.springframework.context.support.PropertySourcesPlaceholderConfigurer error if I remove the commandline-runner agent patch witg GraalVM 19.3.1, any thoughts?

sdeleuze

comment created time in a month

issue openedspring-projects-experimental/spring-graal-native

Backport FilteringSpringBootCondition on Boot 2.2.x via a substitution

To make it possible to run the agent out of the box, see https://github.com/spring-projects/spring-boot/pull/19490.

created time in a month

delete branch spring-projects-experimental/spring-graal-native

delete branch : wip_optimizing

delete time in a month

issue closedspring-projects-experimental/spring-graal-native

Switch to build time initialization by default

To limit the RSS memory consumption.

Proposal:

  • Use --initialize-at-build-time in all compile.sh scripts
  • Remove the buildTimeInitialization part from initialization.json
  • Add classes known to be required to be initialized at runtime like org.springframework.core.io.VfsUtils, org.apache.tomcat.jni.SSL or InetAddress and related subclasses (see #21)
  • Check all samples and fine tune the feature accordingly

closed time in a month

sdeleuze

issue commentspring-projects-experimental/spring-graal-native

Switch to build time initialization by default

Discarded for now since we favor compatibility and leveraging GraalVM default against the minor RSS and startup type gains, at least for now.

sdeleuze

comment created time in a month

issue openedspring-projects-experimental/spring-graal-native

Fix vanilla-orm sample

Running vanilla-orm in upgrade_19_3 branch currently fails with the following error:

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
Jan 20, 2020 1:57:07 PM org.springframework.boot.SpringApplication reportFailure
SEVERE: Application run failed
java.lang.IllegalStateException: Failed to execute CommandLineRunner
	at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:787)
	at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:768)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:322)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215)
	at app.main.SampleApplication.main(SampleApplication.java:38)
Caused by: javax.persistence.TransactionRequiredException: No EntityManager with actual transaction available for current thread - cannot reliably process 'persist' call
	at org.springframework.orm.jpa.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke(SharedEntityManagerCreator.java:298)
	at com.sun.proxy.$Proxy229.persist(Unknown Source)
	at app.main.Bootstrap.run(SampleApplication.java:55)
	at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:784)
	... 5 more

Notice that vanilla-orm2 works, and the main difference between the 2 seems to be the fact that vanilla-orm uses @Transactional while vanilla-orm2 uses programmatic transactions. Surprisingly, spring-petclinic-jpa works even if it uses @Transactional.

created time in a month

issue openedspring-projects-experimental/spring-graal-native

Fix vanilla-tx sample

Running vanilla-tx currently fails with the following error:

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
Jan 20, 2020 1:54:21 PM org.springframework.boot.SpringApplication reportFailure
SEVERE: Application run failed
java.lang.IllegalStateException: Failed to execute CommandLineRunner
	at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:787)
	at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:768)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:322)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215)
	at app.main.SampleApplication.main(SampleApplication.java:26)
Caused by: java.lang.IllegalArgumentException: Expected transaction
	at org.springframework.util.Assert.isTrue(Assert.java:118)
	at app.main.Runner.run(Runner.java:53)
	at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:784)
	... 5 more

created time in a month

issue closedspring-projects-experimental/spring-graal-native

Upgrade to GraalVM 19.3

Main breaking change is about InetAddress and related subclasses, after the java 11 support refactoring, they now need to be initialized at runtime and not at build time. See this related issue.

closed time in a month

sdeleuze

issue commentspring-projects-experimental/spring-graal-native

Upgrade to GraalVM 19.3

Fixed in upgrade_19_3 and about to be merged in master.

sdeleuze

comment created time in a month

issue closedspring-projects-experimental/spring-graal-native

Remove Hibernate Validator from web samples

Removing Hibernate Validator allows to reduce RSS memory by 3.3M and image size by 10M!

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-web</artifactId>
    <exclusions>
        <exclusion>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-validation</artifactId>
        </exclusion>
    </exclusions>
</dependency>

closed time in a month

sdeleuze

push eventspring-projects-experimental/spring-graal-native

Sébastien Deleuze

commit sha 636ecf78652c5408fe7d2779e4404814b6d510d9

Remove Hibernate Validator from web samples Closes gh-34

view details

push time in a month

push eventspring-projects-experimental/spring-graal-native

Sébastien Deleuze

commit sha ec98813ef76fe33e05e0ddfc692599b2a12e8632

Upgrade to Spring Boot 2.2.3 closes gh-14

view details

push time in a month

issue commentspring-projects/spring-framework

MockMvcResultHandlersDsl.handle() should take a function as argument

@jnizet Is this issue still relevant?

jnizet

comment created time in a month

issue commentspring-projects/spring-framework

Functional Bean Definition DSL for noarg functions

Thanks for reporting it and sorry for the lag.

juergenzimmermann

comment created time in a month

push eventspring-projects/spring-framework

Sébastien Deleuze

commit sha 3f1882c4eb2ec7a749555d0b7ef05e1262e35447

Support noarg callable references in Kotlin beans DSL Closes gh-23395

view details

push time in a month

issue closedspring-projects/spring-framework

Functional Bean Definition DSL for noarg functions

Affects: 5.2.0.M3

When using the Kotlin-based Functional Bean Definition DSL I'm having a definition like this one:

val beans = beans {
    bean<CustomerService>()
    bean<CustomerHandler>()

    // 3 args resp. 1 arg
    bean(::router)    
    bean(::securityWebFilterChain)

    // userDetailsService has no args
    // bean(::userDetailsService) DOESN'T COMPILE
    bean { userDetailsService() }
}

For readability reasons it would be nice to also use a function reference when the bean function has no arguments.

closed time in a month

juergenzimmermann

push eventsdeleuze/spring-framework

Juergen Hoeller

commit sha 0801a7d7e4d3ffbc50cfe99a009d75983d966ddd

Upgrade to RxJava 2.2.17, OkHttp 3.14.6, Jetty Reactive HttpClient 1.1.1

view details

Sébastien Deleuze

commit sha 3f1882c4eb2ec7a749555d0b7ef05e1262e35447

Support noarg callable references in Kotlin beans DSL Closes gh-23395

view details

push time in a month

push eventsdeleuze/spring-framework

Sébastien Deleuze

commit sha d198d6ed73642abb09f67bb9082cf409f7234a18

Support noarg callable references in Kotlin beans DSL Closes gh-23395

view details

push time in a month

push eventspring-projects/spring-framework

Sébastien Deleuze

commit sha bc7d01048579430b4b2df668178809b63d3f1929

Update CORS support This commit updates CORS support in order to check Origin header in CorsUtils#isPreFlightRequest which does not change how Spring MVC or WebFlux process CORS request but is more correct in term of behavior since it is a public API potentially used in another contexts. It also removes an unnecessary check in AbstractHandlerMethodMapping#hasCorsConfigurationSource and processes every preflight request with PreFlightHandler. Closes gh-24327

view details

Sébastien Deleuze

commit sha 6747cc135375f4eb5772207d01aab658a5ebed8c

Make WebTestClientExtensions.expectBody generics compliant Closes gh-24142

view details

push time in a month

issue closedspring-projects/spring-framework

WebTestClientExtensions.expectBody doesn't work for generic types

Since WebTestClientExtensions.expectBody uses plain Class instead of ParameterizedTypeReference, it cannot correctly deserialize generic types.

package net.example

import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RestController

@SpringBootApplication
class ExampleApplication

@RestController
class ExampleController {
    @GetMapping("example")
    fun index(): ExampleWrapper<ExampleData> = ExampleWrapper(ExampleData("EXAMPLE"))
}

data class ExampleWrapper<T>(val payload: T)

data class ExampleData(val string: String)
package net.example

import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.Test
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.autoconfigure.web.reactive.WebFluxTest
import org.springframework.test.web.reactive.server.WebTestClient
import org.springframework.test.web.reactive.server.expectBody

@WebFluxTest(ExampleController::class)
class ExampleControllerTest @Autowired constructor(
    private val webClient: WebTestClient
) {
    @Test
    fun test() {
        webClient.get()
            .uri("/example")
            .exchange()
            .expectBody<ExampleWrapper<ExampleData>>()
            .consumeWith {
                Assertions.assertEquals(ExampleData::class, it.responseBody!!.payload::class)
            }
    }
}
java.lang.AssertionError: 
Expected :class net.example.ExampleData
Actual   :class java.util.LinkedHashMap

closed time in a month

hban

issue closedspring-projects/spring-framework

Update CORS support

This issue is about updating CORS support in order to check Origin header in CorsUtils#isPreFlightRequest which does not change how Spring MVC or WebFlux process CORS request but is more correct in term of behavior since it is a public API potentially used in another contexts.

It also includes other improvements and related tests.

closed time in a month

sdeleuze

push eventsdeleuze/spring-framework

Sébastien Deleuze

commit sha bc7d01048579430b4b2df668178809b63d3f1929

Update CORS support This commit updates CORS support in order to check Origin header in CorsUtils#isPreFlightRequest which does not change how Spring MVC or WebFlux process CORS request but is more correct in term of behavior since it is a public API potentially used in another contexts. It also removes an unnecessary check in AbstractHandlerMethodMapping#hasCorsConfigurationSource and processes every preflight request with PreFlightHandler. Closes gh-24327

view details

Sébastien Deleuze

commit sha 6747cc135375f4eb5772207d01aab658a5ebed8c

Make WebTestClientExtensions.expectBody generics compliant Closes gh-24142

view details

push time in a month

more