Closed ulinay closed 11 months ago
Hi, Thank you for reporting this. Which version of GraalVM you're using? did you generate config files before building the native image
proxy-config.json
[
{ "interfaces": [ "org.apache.http.conn.HttpClientConnectionManager", "org.apache.http.pool.ConnPoolControl", "com.amazonaws.http.conn.Wrapped"] },
{ "interfaces" : [ "org.springframework.boot.jackson.JsonComponent", "org.springframework.core.annotation.SynthesizedAnnotation"]}
]
reflect-config.json
[
{
"name" : "com.amazonaws.partitions.model.Partitions",
"allPublicMethods" : true,
"allDeclaredConstructors" : true
}, {
"name" : "com.amazonaws.partitions.model.Partition",
"allPublicMethods" : true,
"allDeclaredConstructors" : true
}, {
"name" : "com.amazonaws.partitions.model.Endpoint",
"allPublicMethods" : true,
"allDeclaredConstructors" : true
}, {
"name" : "com.amazonaws.partitions.model.Region",
"allPublicMethods" : true,
"allDeclaredConstructors" : true
}, {
"name" : "com.amazonaws.partitions.model.Service",
"allPublicMethods" : true,
"allDeclaredConstructors" : true
}, {
"name" : "com.amazonaws.partitions.model.CredentialScope",
"allPublicMethods" : true,
"allDeclaredConstructors" : true
}, {
"name" : "java.util.HashSet",
"allPublicMethods" : true,
"allDeclaredConstructors" : true
},
{
"name": "io.netty.channel.socket.nio.NioDatagramChannel",
"allPublicMethods" : true,
"allDeclaredConstructors" : true
},
{
"name": "org.springframework.validation.beanvalidation.OptionalValidatorFactoryBean",
"allPublicMethods" : true,
"allDeclaredConstructors" : true
},
{
"name": "org.springframework.boot.sql.init.dependency.DatabaseInitializationDependencyConfigurer",
"allPublicMethods" : true,
"allDeclaredConstructors" : true,
"allDeclaredClasses": true,
"allPublicClasses" : true
}
]
resource-config.json
{
"resources": [
{
"pattern": ".*\\.yml$"
},
{
"pattern": ".*\\.json$"
},
{
"pattern": ".*\\.properties$"
},
{
"pattern": ".*\\.env$"
}
]
}
Is it possible to share a reproducer for this?
Closing for inactivity
Dependency description
Plugins
Native-image builder task
Problem description
When I run task bootBuildImage I've got an error:
I know how to fix it, just add this argument to bootBuildImage:
--initialize-at-run-time=io.netty.handler.ssl.OpenSsl,io.netty.handler.ssl.OpenSslPrivateKeyMethod,io.netty.internal.tcnative.CertificateVerifier,io.netty.internal.tcnative.SSL,io.netty.internal.tcnative.SSLPrivateKeyMethod
In this case application is build successfully and I've got docker image. But when I run my docker image I've got this error, because OpenSsl class was added as run time initialization. How can I fix it ?