spring-attic / spring-native

Spring Native is now superseded by Spring Boot 3 official native support
https://docs.spring.io/spring-boot/docs/current/reference/html/native-image.html
Apache License 2.0
2.74k stars 356 forks source link

Issue with Spring Cloud Function #1730

Closed paologazzola closed 1 year ago

paologazzola commented 1 year ago

Hi All, I found this issue during the repackaging of my native app.

My environment is:

My Spring Boot project is

If I launch the command mvn -Pnative package I get this error during che analysis phase:

ERROR io.netty.handler.ssl.BouncyCastleAlpnSslUtils - Unable to initialize BouncyCastleAlpnSslUtils.
java.lang.ClassNotFoundException: org.bouncycastle.jsse.BCSSLEngine

My app is not able to be packaged and published. The error is generated by the Spring Cloud Function dependency. I tried:

Is this a bug, or am I doing something wrong?

Thanks a lot!

sdeleuze commented 1 year ago

As the native support moves on Spring Boot 3 side, please test with Spring Boot 3 snapshots using https://start.spring.io/#!type=gradle-project&language=java&platformVersion=3.0.0-SNAPSHOT&packaging=jar&jvmVersion=17&groupId=com.example&artifactId=demo&name=demo&description=Demo%20project%20for%20Spring%20Boot&packageName=com.example.demo&dependencies=native,cloud-function by building the native application with mvn -Pnative native:compile, and if it fails create an issue on https://github.com/spring-cloud/spring-cloud-function/issues with a repro.