diff --git a/google-cloud-graalvm-samples/logging-sample/pom.xml b/google-cloud-graalvm-samples/logging-sample/pom.xml index 1c3a08e9..77a25318 100644 --- a/google-cloud-graalvm-samples/logging-sample/pom.xml +++ b/google-cloud-graalvm-samples/logging-sample/pom.xml @@ -93,6 +93,8 @@ -H:EnableURLProtocols=http,https --report-unsupported-elements-at-runtime --enable-all-security-services + -H:+TraceClassInitialization + -H:+ReportExceptionStackTraces diff --git a/google-cloud-graalvm-samples/pubsub-sample/pom.xml b/google-cloud-graalvm-samples/pubsub-sample/pom.xml index 9ca07cfc..bd1633ab 100644 --- a/google-cloud-graalvm-samples/pubsub-sample/pom.xml +++ b/google-cloud-graalvm-samples/pubsub-sample/pom.xml @@ -99,6 +99,8 @@ -H:EnableURLProtocols=http,https --report-unsupported-elements-at-runtime --enable-all-security-services + -H:+TraceClassInitialization + -H:+ReportExceptionStackTraces diff --git a/google-cloud-graalvm-samples/storage-sample/pom.xml b/google-cloud-graalvm-samples/storage-sample/pom.xml index 61578a9d..5d6fc37c 100644 --- a/google-cloud-graalvm-samples/storage-sample/pom.xml +++ b/google-cloud-graalvm-samples/storage-sample/pom.xml @@ -98,6 +98,8 @@ -H:EnableURLProtocols=http,https --report-unsupported-elements-at-runtime --enable-all-security-services + -H:+TraceClassInitialization + -H:+ReportExceptionStackTraces diff --git a/google-cloud-graalvm-samples/trace-sample/pom.xml b/google-cloud-graalvm-samples/trace-sample/pom.xml index c247a468..ba6370e9 100644 --- a/google-cloud-graalvm-samples/trace-sample/pom.xml +++ b/google-cloud-graalvm-samples/trace-sample/pom.xml @@ -98,6 +98,8 @@ -H:EnableURLProtocols=http,https --report-unsupported-elements-at-runtime --enable-all-security-services + -H:+TraceClassInitialization + -H:+ReportExceptionStackTraces diff --git a/google-cloud-graalvm-support/src/main/resources/META-INF/native-image/com.google.cloud/google-cloud-graalvm-support/grpc-netty-shaded/buffer/native-image.properties b/google-cloud-graalvm-support/src/main/resources/META-INF/native-image/com.google.cloud/google-cloud-graalvm-support/grpc-netty-shaded/buffer/native-image.properties new file mode 100644 index 00000000..8d6d83ad --- /dev/null +++ b/google-cloud-graalvm-support/src/main/resources/META-INF/native-image/com.google.cloud/google-cloud-graalvm-support/grpc-netty-shaded/buffer/native-image.properties @@ -0,0 +1,15 @@ +# Copyright 2019 The Netty Project +# +# The Netty Project licenses this file to you under the Apache License, +# version 2.0 (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at: +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + +Args = --initialize-at-run-time=io.grpc.netty.shaded.io.netty.buffer.PooledByteBufAllocator,io.grpc.netty.shaded.io.netty.buffer.ByteBufAllocator,io.grpc.netty.shaded.io.netty.buffer.ByteBufUtil,io.grpc.netty.shaded.io.netty.buffer.AbstractReferenceCountedByteBuf diff --git a/google-cloud-graalvm-support/src/main/resources/META-INF/native-image/com.google.cloud/google-cloud-graalvm-support/grpc-netty-shaded/codec-http/native-image.properties b/google-cloud-graalvm-support/src/main/resources/META-INF/native-image/com.google.cloud/google-cloud-graalvm-support/grpc-netty-shaded/codec-http/native-image.properties new file mode 100644 index 00000000..8aa6c4b8 --- /dev/null +++ b/google-cloud-graalvm-support/src/main/resources/META-INF/native-image/com.google.cloud/google-cloud-graalvm-support/grpc-netty-shaded/codec-http/native-image.properties @@ -0,0 +1,16 @@ +# Copyright 2019 The Netty Project +# +# The Netty Project licenses this file to you under the Apache License, +# version 2.0 (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at: +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + +Args = --initialize-at-build-time=io.grpc.netty.shaded.io.netty \ + --initialize-at-run-time=io.grpc.netty.shaded.io.netty.handler.codec.http.HttpObjectEncoder,io.grpc.netty.shaded.io.netty.handler.codec.http.websocketx.WebSocket00FrameEncoder,io.grpc.netty.shaded.io.netty.handler.codec.http.websocketx.extensions.compression.DeflateDecoder diff --git a/google-cloud-graalvm-support/src/main/resources/META-INF/native-image/com.google.cloud/google-cloud-graalvm-support/grpc-netty-shaded/codec-http2/native-image.properties b/google-cloud-graalvm-support/src/main/resources/META-INF/native-image/com.google.cloud/google-cloud-graalvm-support/grpc-netty-shaded/codec-http2/native-image.properties new file mode 100644 index 00000000..0f2a8cc6 --- /dev/null +++ b/google-cloud-graalvm-support/src/main/resources/META-INF/native-image/com.google.cloud/google-cloud-graalvm-support/grpc-netty-shaded/codec-http2/native-image.properties @@ -0,0 +1,16 @@ +# Copyright 2019 The Netty Project +# +# The Netty Project licenses this file to you under the Apache License, +# version 2.0 (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at: +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + +Args = --initialize-at-build-time=io.grpc.netty.shaded.io.netty \ + --initialize-at-run-time=io.grpc.netty.shaded.io.netty.handler.codec.http2.Http2CodecUtil,io.grpc.netty.shaded.io.netty.handler.codec.http2.Http2ClientUpgradeCodec,io.grpc.netty.shaded.io.netty.handler.codec.http2.Http2ConnectionHandler,io.grpc.netty.shaded.io.netty.handler.codec.http2.DefaultHttp2FrameWriter diff --git a/google-cloud-graalvm-support/src/main/resources/META-INF/native-image/com.google.cloud/google-cloud-graalvm-support/grpc-netty-shaded/common/native-image.properties b/google-cloud-graalvm-support/src/main/resources/META-INF/native-image/com.google.cloud/google-cloud-graalvm-support/grpc-netty-shaded/common/native-image.properties new file mode 100644 index 00000000..c3aae04b --- /dev/null +++ b/google-cloud-graalvm-support/src/main/resources/META-INF/native-image/com.google.cloud/google-cloud-graalvm-support/grpc-netty-shaded/common/native-image.properties @@ -0,0 +1,15 @@ +# Copyright 2019 The Netty Project +# +# The Netty Project licenses this file to you under the Apache License, +# version 2.0 (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at: +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + +Args = --initialize-at-run-time=io.grpc.netty.shaded.io.netty.util.AbstractReferenceCounted,io.grpc.netty.shaded.io.netty.util.concurrent.GlobalEventExecutor,io.grpc.netty.shaded.io.netty.util.concurrent.ImmediateEventExecutor,io.grpc.netty.shaded.io.netty.util.concurrent.ScheduledFutureTask,io.grpc.netty.shaded.io.netty.util.internal.ThreadLocalRandom diff --git a/google-cloud-graalvm-support/src/main/resources/META-INF/native-image/com.google.cloud/google-cloud-graalvm-support/grpc-netty-shaded/handler/native-image.properties b/google-cloud-graalvm-support/src/main/resources/META-INF/native-image/com.google.cloud/google-cloud-graalvm-support/grpc-netty-shaded/handler/native-image.properties new file mode 100644 index 00000000..5a6462d2 --- /dev/null +++ b/google-cloud-graalvm-support/src/main/resources/META-INF/native-image/com.google.cloud/google-cloud-graalvm-support/grpc-netty-shaded/handler/native-image.properties @@ -0,0 +1,15 @@ +# Copyright 2019 The Netty Project +# +# The Netty Project licenses this file to you under the Apache License, +# version 2.0 (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at: +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + +Args = --initialize-at-run-time=io.grpc.netty.shaded.io.netty.handler.ssl.util.ThreadLocalInsecureRandom diff --git a/google-cloud-graalvm-support/src/main/resources/META-INF/native-image/com.google.cloud/google-cloud-graalvm-support/grpc-netty-shaded/transport/native-image.properties b/google-cloud-graalvm-support/src/main/resources/META-INF/native-image/com.google.cloud/google-cloud-graalvm-support/grpc-netty-shaded/transport/native-image.properties new file mode 100644 index 00000000..dc335612 --- /dev/null +++ b/google-cloud-graalvm-support/src/main/resources/META-INF/native-image/com.google.cloud/google-cloud-graalvm-support/grpc-netty-shaded/transport/native-image.properties @@ -0,0 +1,15 @@ +# Copyright 2019 The Netty Project +# +# The Netty Project licenses this file to you under the Apache License, +# version 2.0 (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at: +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + +Args = -H:ReflectionConfigurationResources=${.}/reflection-config.json diff --git a/google-cloud-graalvm-support/src/main/resources/META-INF/native-image/com.google.cloud/google-cloud-graalvm-support/grpc-netty-shaded/transport/reflection-config.json b/google-cloud-graalvm-support/src/main/resources/META-INF/native-image/com.google.cloud/google-cloud-graalvm-support/grpc-netty-shaded/transport/reflection-config.json new file mode 100644 index 00000000..774e6843 --- /dev/null +++ b/google-cloud-graalvm-support/src/main/resources/META-INF/native-image/com.google.cloud/google-cloud-graalvm-support/grpc-netty-shaded/transport/reflection-config.json @@ -0,0 +1,15 @@ +[ + { + "name": "io.grpc.netty.shaded.io.netty.channel.socket.nio.NioServerSocketChannel", + "methods": [ + { "name": "", "parameterTypes": [] } + ] + }, + { + "name": "sun.nio.ch.SelectorImpl", + "fields": [ + { "name": "selectedKeys", "allowUnsafeAccess" : true}, + { "name": "publicSelectedKeys", "allowUnsafeAccess" : true} + ] + } +] diff --git a/google-cloud-graalvm-support/src/main/resources/META-INF/native-image/com.google.cloud/google-cloud-graalvm-support/native-image.properties b/google-cloud-graalvm-support/src/main/resources/META-INF/native-image/com.google.cloud/google-cloud-graalvm-support/native-image.properties new file mode 100644 index 00000000..6d702f66 --- /dev/null +++ b/google-cloud-graalvm-support/src/main/resources/META-INF/native-image/com.google.cloud/google-cloud-graalvm-support/native-image.properties @@ -0,0 +1,10 @@ +Args = --initialize-at-build-time=org.conscrypt \ +--initialize-at-run-time=io.grpc.netty.shaded.io.netty.handler.ssl.OpenSsl,\ + io.grpc.netty.shaded.io.netty.handler.ssl.OpenSslContext,\ + io.grpc.netty.shaded.io.netty.handler.ssl.ReferenceCountedOpenSslEngine,\ + io.grpc.netty.shaded.io.netty.internal.tcnative.SSL,\ + io.grpc.netty.shaded.io.netty.internal.tcnative.CertificateVerifier,\ + io.grpc.netty.shaded.io.netty.internal.tcnative.SSLPrivateKeyMethod,\ + io.grpc.netty.shaded.io.grpc.netty,\ + io.grpc.netty.shaded.io.netty.channel.epoll,\ + io.grpc.netty.shaded.io.netty.channel.unix