RedHat-Middleware-Workshops / quarkus-workshop-m1m2-labs

Source code for Quarkus Workshop
13 stars 42 forks source link

0.27 breaks the native build #2

Closed phillip-kruger closed 4 years ago

phillip-kruger commented 4 years ago

Hi. The latest upgrade breaks the native build. If I revert back to 0.21.1 the builds works fine.

jamesfalkner commented 4 years ago

Can you verify the version of GraalVM you are using? It needs to be 19.2.1 .

phillip-kruger commented 4 years ago

I am using the one as provisioned by die code ready workspaces environment inside that OpenShift.

jamesfalkner commented 4 years ago

Which was updated recently to a newer GraalVM so I want to ensure you're using the latest CRW stack .

Can you open a Terminal and run:

$GRAALVM_HOME/bin/native-image --version

and let me know the output?

phillip-kruger commented 4 years ago

Ok, so the version is GraalVM Version 19.1.1 CE

This is from RHPDS > Workshops > OCP4 Quarkus Workshop

The environment is up if you want to have a look:

here the error:

[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] /usr/local/graalvm-ce-19.1.1/bin/native-image -J-Dsun.nio.ch.maxUpdateArraySize=100 -J-Djava.util.logging.manager=org.jboss.logmanager.LogManager -J-Dvertx.logger-delegate-factory-class-name=io.quarkus.vertx.core.runtime.VertxLogDelegateFactory -J-Dvertx.disableDnsResolver=true -J-Dio.netty.leakDetection.level=DISABLED -J-Dio.netty.allocator.maxOrder=1 --initialize-at-build-time= -H:InitialCollectionPolicy=com.oracle.svm.core.genscavenge.CollectionPolicy$BySpaceAndTime -jar people-1.0-SNAPSHOT-runner.jar -J-Djava.util.concurrent.ForkJoinPool.common.parallelism=1 -H:FallbackThreshold=0 -H:+ReportExceptionStackTraces -H:-AddAllCharsets -H:EnableURLProtocols=http -H:NativeLinkerOption=-no-pie -H:-JNI --no-server -H:-UseServiceLoaderFeature -H:+StackTrace people-1.0-SNAPSHOT-runner

[people-1.0-SNAPSHOT-runner:668]    classlist:   7,492.53 ms

[people-1.0-SNAPSHOT-runner:668]        (cap):   1,558.15 ms

[people-1.0-SNAPSHOT-runner:668]        setup:   3,982.21 ms

09:04:17,267 INFO  [org.jbo.threads] JBoss Threads version 3.0.0.Final

[people-1.0-SNAPSHOT-runner:668]     analysis:  40,831.88 ms

Error: Unsupported features in 6 methods

Detailed message:

Error: No instances are allowed in the image heap for a class that is initialized or reinitialized at image runtime: io.netty.buffer.UnpooledByteBufAllocator. Try marking this class for build-time initialization with --initialize-at-build-time=io.netty.buffer.UnpooledByteBufAllocator

Trace:  object io.netty.buffer.EmptyByteBuf

    method io.netty.handler.stream.ChunkedWriteHandler.doFlush(ChannelHandlerContext)

Call path from entry point to io.netty.handler.stream.ChunkedWriteHandler.doFlush(ChannelHandlerContext): 

    at io.netty.handler.stream.ChunkedWriteHandler.doFlush(ChunkedWriteHandler.java:200)

    at io.netty.handler.stream.ChunkedWriteHandler.resumeTransfer0(ChunkedWriteHandler.java:120)

    at io.netty.handler.stream.ChunkedWriteHandler.access$000(ChunkedWriteHandler.java:68)

    at io.netty.handler.stream.ChunkedWriteHandler$1.run(ChunkedWriteHandler.java:112)

    at java.lang.Shutdown.runHooks(Shutdown.java:123)

    at java.lang.Shutdown.sequence(Shutdown.java:167)

    at java.lang.Shutdown.shutdown(Shutdown.java:234)

    at com.oracle.svm.core.jdk.RuntimeSupport.shutdown(RuntimeSupport.java:181)

    at com.oracle.svm.core.JavaMainWrapper.run(JavaMainWrapper.java:172)

    at com.oracle.svm.core.code.IsolateEnterStub.JavaMainWrapper_run_5087f5482cc9a6abc971913ece43acb471d2631b(generated:0)

Error: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: No instances are allowed in the image heap for a class that is initialized or reinitialized at image runtime: io.netty.buffer.UnpooledByteBufAllocator. Try marking this class for build-time initialization with --initialize-at-build-time=io.netty.buffer.UnpooledByteBufAllocator

Trace: 

    at parsing io.netty.buffer.Unpooled.buffer(Unpooled.java:99)

Call path from entry point to io.netty.buffer.Unpooled.buffer(): 

    at io.netty.buffer.Unpooled.buffer(Unpooled.java:99)

    at io.netty.handler.codec.http2.DefaultHttp2HeadersEncoder.<init>(DefaultHttp2HeadersEncoder.java:30)

    at io.netty.handler.codec.http2.DefaultHttp2HeadersEncoder.<init>(DefaultHttp2HeadersEncoder.java:41)

    at io.netty.handler.codec.http2.DefaultHttp2FrameWriter.<init>(DefaultHttp2FrameWriter.java:96)

    at io.netty.handler.codec.http2.AbstractHttp2ConnectionHandlerBuilder.buildFromConnection(AbstractHttp2ConnectionHandlerBuilder.java:514)

    at io.netty.handler.codec.http2.AbstractHttp2ConnectionHandlerBuilder.build(AbstractHttp2ConnectionHandlerBuilder.java:504)

    at io.vertx.core.http.impl.VertxHttp2ConnectionHandlerBuilder.build(VertxHttp2ConnectionHandlerBuilder.java:161)

    at io.vertx.core.http.impl.HttpServerChannelInitializer.buildHttp2ConnectionHandler(HttpServerChannelInitializer.java:202)

    at io.vertx.core.http.impl.Http1xUpgradeToH2CHandler.channelRead(Http1xUpgradeToH2CHandler.java:84)

    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:374)

    at io.netty.channel.AbstractChannelHandlerContext.access$600(AbstractChannelHandlerContext.java:56)

    at io.netty.channel.AbstractChannelHandlerContext$7.run(AbstractChannelHandlerContext.java:365)

    at java.lang.Shutdown.runHooks(Shutdown.java:123)

    at java.lang.Shutdown.sequence(Shutdown.java:167)

    at java.lang.Shutdown.shutdown(Shutdown.java:234)

    at com.oracle.svm.core.jdk.RuntimeSupport.shutdown(RuntimeSupport.java:181)

    at com.oracle.svm.core.JavaMainWrapper.run(JavaMainWrapper.java:172)

    at com.oracle.svm.core.code.IsolateEnterStub.JavaMainWrapper_run_5087f5482cc9a6abc971913ece43acb471d2631b(generated:0)

Error: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: No instances are allowed in the image heap for a class that is initialized or reinitialized at image runtime: io.netty.buffer.UnpooledByteBufAllocator. Try marking this class for build-time initialization with --initialize-at-build-time=io.netty.buffer.UnpooledByteBufAllocator

Trace: 

    at parsing io.netty.buffer.Unpooled.buffer(Unpooled.java:116)

Call path from entry point to io.netty.buffer.Unpooled.buffer(int): 

    at io.netty.buffer.Unpooled.buffer(Unpooled.java:116)

    at io.vertx.core.http.impl.Http1xOrH2CHandler.end(Http1xOrH2CHandler.java:53)

    at io.vertx.core.http.impl.Http1xOrH2CHandler.channelRead(Http1xOrH2CHandler.java:44)

    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:374)

    at io.netty.channel.AbstractChannelHandlerContext.access$600(AbstractChannelHandlerContext.java:56)

    at io.netty.channel.AbstractChannelHandlerContext$7.run(AbstractChannelHandlerContext.java:365)

    at java.lang.Shutdown.runHooks(Shutdown.java:123)

    at java.lang.Shutdown.sequence(Shutdown.java:167)

    at java.lang.Shutdown.shutdown(Shutdown.java:234)

    at com.oracle.svm.core.jdk.RuntimeSupport.shutdown(RuntimeSupport.java:181)

    at com.oracle.svm.core.JavaMainWrapper.run(JavaMainWrapper.java:172)

    at com.oracle.svm.core.code.IsolateEnterStub.JavaMainWrapper_run_5087f5482cc9a6abc971913ece43acb471d2631b(generated:0)

Error: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: No instances are allowed in the image heap for a class that is initialized or reinitialized at image runtime: io.netty.buffer.UnpooledByteBufAllocator. Try marking this class for build-time initialization with --initialize-at-build-time=io.netty.buffer.UnpooledByteBufAllocator

Trace: 

    at parsing io.netty.buffer.Unpooled.buffer(Unpooled.java:135)

Call path from entry point to io.netty.buffer.Unpooled.buffer(int, int): 

    at io.netty.buffer.Unpooled.buffer(Unpooled.java:135)

    at io.vertx.core.buffer.impl.BufferImpl.<init>(BufferImpl.java:44)

    at io.vertx.core.buffer.impl.BufferFactoryImpl.buffer(BufferFactoryImpl.java:49)

    at io.vertx.core.buffer.Buffer.buffer(Buffer.java:94)

    at io.vertx.core.http.impl.HttpUtils.decodeSettings(HttpUtils.java:475)

    at io.vertx.core.http.impl.Http1xUpgradeToH2CHandler.channelRead(Http1xUpgradeToH2CHandler.java:69)

    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:374)

    at io.netty.channel.AbstractChannelHandlerContext.access$600(AbstractChannelHandlerContext.java:56)

    at io.netty.channel.AbstractChannelHandlerContext$7.run(AbstractChannelHandlerContext.java:365)

    at java.lang.Shutdown.runHooks(Shutdown.java:123)

    at java.lang.Shutdown.sequence(Shutdown.java:167)

    at java.lang.Shutdown.shutdown(Shutdown.java:234)

    at com.oracle.svm.core.jdk.RuntimeSupport.shutdown(RuntimeSupport.java:181)

    at com.oracle.svm.core.JavaMainWrapper.run(JavaMainWrapper.java:172)

    at com.oracle.svm.core.code.IsolateEnterStub.JavaMainWrapper_run_5087f5482cc9a6abc971913ece43acb471d2631b(generated:0)

Error: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: No instances are allowed in the image heap for a class that is initialized or reinitialized at image runtime: io.netty.buffer.UnpooledByteBufAllocator. Try marking this class for build-time initialization with --initialize-at-build-time=io.netty.buffer.UnpooledByteBufAllocator

Trace: 

    at parsing io.netty.buffer.Unpooled.copiedBuffer(Unpooled.java:652)

Call path from entry point to io.netty.buffer.Unpooled.copiedBuffer(CharBuffer, Charset): 

    at io.netty.buffer.Unpooled.copiedBuffer(Unpooled.java:652)

    at io.netty.buffer.Unpooled.copiedBuffer(Unpooled.java:583)

    at io.vertx.core.http.impl.HttpServerChannelInitializer.sendServiceUnavailable(HttpServerChannelInitializer.java:170)

    at io.vertx.core.http.impl.HttpServerChannelInitializer.handleHttp1(HttpServerChannelInitializer.java:162)

    at io.vertx.core.http.impl.HttpServerChannelInitializer.lambda$initChannel$0(HttpServerChannelInitializer.java:95)

    at io.vertx.core.http.impl.HttpServerChannelInitializer$$Lambda$543/332059589.handle(Unknown Source)

    at io.vertx.core.impl.ContextImpl.executeTask(ContextImpl.java:369)

    at io.vertx.core.impl.WorkerContext.lambda$wrapTask$0(WorkerContext.java:35)

    at io.vertx.core.impl.WorkerContext$$Lambda$471/1919822124.run(Unknown Source)

    at java.lang.Shutdown.runHooks(Shutdown.java:123)

    at java.lang.Shutdown.sequence(Shutdown.java:167)

    at java.lang.Shutdown.shutdown(Shutdown.java:234)

    at com.oracle.svm.core.jdk.RuntimeSupport.shutdown(RuntimeSupport.java:181)

    at com.oracle.svm.core.JavaMainWrapper.run(JavaMainWrapper.java:172)

    at com.oracle.svm.core.code.IsolateEnterStub.JavaMainWrapper_run_5087f5482cc9a6abc971913ece43acb471d2631b(generated:0)

Error: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: No instances are allowed in the image heap for a class that is initialized or reinitialized at image runtime: io.netty.buffer.UnpooledByteBufAllocator. Try marking this class for build-time initialization with --initialize-at-build-time=io.netty.buffer.UnpooledByteBufAllocator

Trace: 

    at parsing io.netty.buffer.Unpooled.wrappedBuffer(Unpooled.java:157)

Call path from entry point to io.netty.buffer.Unpooled.wrappedBuffer(byte[]): 

    at io.netty.buffer.Unpooled.wrappedBuffer(Unpooled.java:154)

    at io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker00.newHandshakeResponse(WebSocketServerHandshaker00.java:179)

    at io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker.handshake(WebSocketServerHandshaker.java:194)

    at io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker$2.channelRead0(WebSocketServerHandshaker.java:298)

    at io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker$2.channelRead0(WebSocketServerHandshaker.java:293)

    at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)

    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:374)

    at io.netty.channel.AbstractChannelHandlerContext.access$600(AbstractChannelHandlerContext.java:56)

    at io.netty.channel.AbstractChannelHandlerContext$7.run(AbstractChannelHandlerContext.java:365)

    at java.lang.Shutdown.runHooks(Shutdown.java:123)

    at java.lang.Shutdown.sequence(Shutdown.java:167)

    at java.lang.Shutdown.shutdown(Shutdown.java:234)

    at com.oracle.svm.core.jdk.RuntimeSupport.shutdown(RuntimeSupport.java:181)

    at com.oracle.svm.core.JavaMainWrapper.run(JavaMainWrapper.java:172)

    at com.oracle.svm.core.code.IsolateEnterStub.JavaMainWrapper_run_5087f5482cc9a6abc971913ece43acb471d2631b(generated:0)

com.oracle.svm.core.util.UserError$UserException: Unsupported features in 6 methods

Detailed message:

Error: No instances are allowed in the image heap for a class that is initialized or reinitialized at image runtime: io.netty.buffer.UnpooledByteBufAllocator. Try marking this class for build-time initialization with --initialize-at-build-time=io.netty.buffer.UnpooledByteBufAllocator

Trace:  object io.netty.buffer.EmptyByteBuf

    method io.netty.handler.stream.ChunkedWriteHandler.doFlush(ChannelHandlerContext)

Call path from entry point to io.netty.handler.stream.ChunkedWriteHandler.doFlush(ChannelHandlerContext): 

    at io.netty.handler.stream.ChunkedWriteHandler.doFlush(ChunkedWriteHandler.java:200)

    at io.netty.handler.stream.ChunkedWriteHandler.resumeTransfer0(ChunkedWriteHandler.java:120)

    at io.netty.handler.stream.ChunkedWriteHandler.access$000(ChunkedWriteHandler.java:68)

    at io.netty.handler.stream.ChunkedWriteHandler$1.run(ChunkedWriteHandler.java:112)

    at java.lang.Shutdown.runHooks(Shutdown.java:123)

    at java.lang.Shutdown.sequence(Shutdown.java:167)

    at java.lang.Shutdown.shutdown(Shutdown.java:234)

    at com.oracle.svm.core.jdk.RuntimeSupport.shutdown(RuntimeSupport.java:181)

    at com.oracle.svm.core.JavaMainWrapper.run(JavaMainWrapper.java:172)

    at com.oracle.svm.core.code.IsolateEnterStub.JavaMainWrapper_run_5087f5482cc9a6abc971913ece43acb471d2631b(generated:0)

Error: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: No instances are allowed in the image heap for a class that is initialized or reinitialized at image runtime: io.netty.buffer.UnpooledByteBufAllocator. Try marking this class for build-time initialization with --initialize-at-build-time=io.netty.buffer.UnpooledByteBufAllocator

Trace: 

    at parsing io.netty.buffer.Unpooled.buffer(Unpooled.java:99)

Call path from entry point to io.netty.buffer.Unpooled.buffer(): 

    at io.netty.buffer.Unpooled.buffer(Unpooled.java:99)

    at io.netty.handler.codec.http2.DefaultHttp2HeadersEncoder.<init>(DefaultHttp2HeadersEncoder.java:30)

    at io.netty.handler.codec.http2.DefaultHttp2HeadersEncoder.<init>(DefaultHttp2HeadersEncoder.java:41)

    at io.netty.handler.codec.http2.DefaultHttp2FrameWriter.<init>(DefaultHttp2FrameWriter.java:96)

    at io.netty.handler.codec.http2.AbstractHttp2ConnectionHandlerBuilder.buildFromConnection(AbstractHttp2ConnectionHandlerBuilder.java:514)

    at io.netty.handler.codec.http2.AbstractHttp2ConnectionHandlerBuilder.build(AbstractHttp2ConnectionHandlerBuilder.java:504)

    at io.vertx.core.http.impl.VertxHttp2ConnectionHandlerBuilder.build(VertxHttp2ConnectionHandlerBuilder.java:161)

    at io.vertx.core.http.impl.HttpServerChannelInitializer.buildHttp2ConnectionHandler(HttpServerChannelInitializer.java:202)

    at io.vertx.core.http.impl.Http1xUpgradeToH2CHandler.channelRead(Http1xUpgradeToH2CHandler.java:84)

    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:374)

    at io.netty.channel.AbstractChannelHandlerContext.access$600(AbstractChannelHandlerContext.java:56)

    at io.netty.channel.AbstractChannelHandlerContext$7.run(AbstractChannelHandlerContext.java:365)

    at java.lang.Shutdown.runHooks(Shutdown.java:123)

    at java.lang.Shutdown.sequence(Shutdown.java:167)

    at java.lang.Shutdown.shutdown(Shutdown.java:234)

    at com.oracle.svm.core.jdk.RuntimeSupport.shutdown(RuntimeSupport.java:181)

    at com.oracle.svm.core.JavaMainWrapper.run(JavaMainWrapper.java:172)

    at com.oracle.svm.core.code.IsolateEnterStub.JavaMainWrapper_run_5087f5482cc9a6abc971913ece43acb471d2631b(generated:0)

Error: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: No instances are allowed in the image heap for a class that is initialized or reinitialized at image runtime: io.netty.buffer.UnpooledByteBufAllocator. Try marking this class for build-time initialization with --initialize-at-build-time=io.netty.buffer.UnpooledByteBufAllocator

Trace: 

    at parsing io.netty.buffer.Unpooled.buffer(Unpooled.java:116)

Call path from entry point to io.netty.buffer.Unpooled.buffer(int): 

    at io.netty.buffer.Unpooled.buffer(Unpooled.java:116)

    at io.vertx.core.http.impl.Http1xOrH2CHandler.end(Http1xOrH2CHandler.java:53)

    at io.vertx.core.http.impl.Http1xOrH2CHandler.channelRead(Http1xOrH2CHandler.java:44)

    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:374)

    at io.netty.channel.AbstractChannelHandlerContext.access$600(AbstractChannelHandlerContext.java:56)

    at io.netty.channel.AbstractChannelHandlerContext$7.run(AbstractChannelHandlerContext.java:365)

    at java.lang.Shutdown.runHooks(Shutdown.java:123)

    at java.lang.Shutdown.sequence(Shutdown.java:167)

    at java.lang.Shutdown.shutdown(Shutdown.java:234)

    at com.oracle.svm.core.jdk.RuntimeSupport.shutdown(RuntimeSupport.java:181)

    at com.oracle.svm.core.JavaMainWrapper.run(JavaMainWrapper.java:172)

    at com.oracle.svm.core.code.IsolateEnterStub.JavaMainWrapper_run_5087f5482cc9a6abc971913ece43acb471d2631b(generated:0)

Error: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: No instances are allowed in the image heap for a class that is initialized or reinitialized at image runtime: io.netty.buffer.UnpooledByteBufAllocator. Try marking this class for build-time initialization with --initialize-at-build-time=io.netty.buffer.UnpooledByteBufAllocator

Trace: 

    at parsing io.netty.buffer.Unpooled.buffer(Unpooled.java:135)

Call path from entry point to io.netty.buffer.Unpooled.buffer(int, int): 

    at io.netty.buffer.Unpooled.buffer(Unpooled.java:135)

    at io.vertx.core.buffer.impl.BufferImpl.<init>(BufferImpl.java:44)

    at io.vertx.core.buffer.impl.BufferFactoryImpl.buffer(BufferFactoryImpl.java:49)

    at io.vertx.core.buffer.Buffer.buffer(Buffer.java:94)

    at io.vertx.core.http.impl.HttpUtils.decodeSettings(HttpUtils.java:475)

    at io.vertx.core.http.impl.Http1xUpgradeToH2CHandler.channelRead(Http1xUpgradeToH2CHandler.java:69)

    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:374)

    at io.netty.channel.AbstractChannelHandlerContext.access$600(AbstractChannelHandlerContext.java:56)

    at io.netty.channel.AbstractChannelHandlerContext$7.run(AbstractChannelHandlerContext.java:365)

    at java.lang.Shutdown.runHooks(Shutdown.java:123)

    at java.lang.Shutdown.sequence(Shutdown.java:167)

    at java.lang.Shutdown.shutdown(Shutdown.java:234)

    at com.oracle.svm.core.jdk.RuntimeSupport.shutdown(RuntimeSupport.java:181)

    at com.oracle.svm.core.JavaMainWrapper.run(JavaMainWrapper.java:172)

    at com.oracle.svm.core.code.IsolateEnterStub.JavaMainWrapper_run_5087f5482cc9a6abc971913ece43acb471d2631b(generated:0)

Error: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: No instances are allowed in the image heap for a class that is initialized or reinitialized at image runtime: io.netty.buffer.UnpooledByteBufAllocator. Try marking this class for build-time initialization with --initialize-at-build-time=io.netty.buffer.UnpooledByteBufAllocator

Trace: 

    at parsing io.netty.buffer.Unpooled.copiedBuffer(Unpooled.java:652)

Call path from entry point to io.netty.buffer.Unpooled.copiedBuffer(CharBuffer, Charset): 

    at io.netty.buffer.Unpooled.copiedBuffer(Unpooled.java:652)

    at io.netty.buffer.Unpooled.copiedBuffer(Unpooled.java:583)

    at io.vertx.core.http.impl.HttpServerChannelInitializer.sendServiceUnavailable(HttpServerChannelInitializer.java:170)

    at io.vertx.core.http.impl.HttpServerChannelInitializer.handleHttp1(HttpServerChannelInitializer.java:162)

    at io.vertx.core.http.impl.HttpServerChannelInitializer.lambda$initChannel$0(HttpServerChannelInitializer.java:95)

    at io.vertx.core.http.impl.HttpServerChannelInitializer$$Lambda$543/332059589.handle(Unknown Source)

    at io.vertx.core.impl.ContextImpl.executeTask(ContextImpl.java:369)

    at io.vertx.core.impl.WorkerContext.lambda$wrapTask$0(WorkerContext.java:35)

    at io.vertx.core.impl.WorkerContext$$Lambda$471/1919822124.run(Unknown Source)

    at java.lang.Shutdown.runHooks(Shutdown.java:123)

    at java.lang.Shutdown.sequence(Shutdown.java:167)

    at java.lang.Shutdown.shutdown(Shutdown.java:234)

    at com.oracle.svm.core.jdk.RuntimeSupport.shutdown(RuntimeSupport.java:181)

    at com.oracle.svm.core.JavaMainWrapper.run(JavaMainWrapper.java:172)

    at com.oracle.svm.core.code.IsolateEnterStub.JavaMainWrapper_run_5087f5482cc9a6abc971913ece43acb471d2631b(generated:0)

Error: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: No instances are allowed in the image heap for a class that is initialized or reinitialized at image runtime: io.netty.buffer.UnpooledByteBufAllocator. Try marking this class for build-time initialization with --initialize-at-build-time=io.netty.buffer.UnpooledByteBufAllocator

Trace: 

    at parsing io.netty.buffer.Unpooled.wrappedBuffer(Unpooled.java:157)

Call path from entry point to io.netty.buffer.Unpooled.wrappedBuffer(byte[]): 

    at io.netty.buffer.Unpooled.wrappedBuffer(Unpooled.java:154)

    at io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker00.newHandshakeResponse(WebSocketServerHandshaker00.java:179)

    at io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker.handshake(WebSocketServerHandshaker.java:194)

    at io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker$2.channelRead0(WebSocketServerHandshaker.java:298)

    at io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker$2.channelRead0(WebSocketServerHandshaker.java:293)

    at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)

    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:374)

    at io.netty.channel.AbstractChannelHandlerContext.access$600(AbstractChannelHandlerContext.java:56)

    at io.netty.channel.AbstractChannelHandlerContext$7.run(AbstractChannelHandlerContext.java:365)

    at java.lang.Shutdown.runHooks(Shutdown.java:123)

    at java.lang.Shutdown.sequence(Shutdown.java:167)

    at java.lang.Shutdown.shutdown(Shutdown.java:234)

    at com.oracle.svm.core.jdk.RuntimeSupport.shutdown(RuntimeSupport.java:181)

    at com.oracle.svm.core.JavaMainWrapper.run(JavaMainWrapper.java:172)

    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:216)

    at com.oracle.svm.hosted.NativeImageGenerator.runPointsToAnalysis(NativeImageGenerator.java:732)

    at com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:522)

    at com.oracle.svm.hosted.NativeImageGenerator.lambda$run$0(NativeImageGenerator.java:440)

    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: Unsupported features in 6 methods

Detailed message:

Error: No instances are allowed in the image heap for a class that is initialized or reinitialized at image runtime: io.netty.buffer.UnpooledByteBufAllocator. Try marking this class for build-time initialization with --initialize-at-build-time=io.netty.buffer.UnpooledByteBufAllocator

Trace:  object io.netty.buffer.EmptyByteBuf

    method io.netty.handler.stream.ChunkedWriteHandler.doFlush(ChannelHandlerContext)

Call path from entry point to io.netty.handler.stream.ChunkedWriteHandler.doFlush(ChannelHandlerContext): 

    at io.netty.handler.stream.ChunkedWriteHandler.doFlush(ChunkedWriteHandler.java:200)

    at io.netty.handler.stream.ChunkedWriteHandler.resumeTransfer0(ChunkedWriteHandler.java:120)

    at io.netty.handler.stream.ChunkedWriteHandler.access$000(ChunkedWriteHandler.java:68)

    at io.netty.handler.stream.ChunkedWriteHandler$1.run(ChunkedWriteHandler.java:112)

    at java.lang.Shutdown.runHooks(Shutdown.java:123)

    at java.lang.Shutdown.sequence(Shutdown.java:167)

    at java.lang.Shutdown.shutdown(Shutdown.java:234)

    at com.oracle.svm.core.jdk.RuntimeSupport.shutdown(RuntimeSupport.java:181)

    at com.oracle.svm.core.JavaMainWrapper.run(JavaMainWrapper.java:172)

    at com.oracle.svm.core.code.IsolateEnterStub.JavaMainWrapper_run_5087f5482cc9a6abc971913ece43acb471d2631b(generated:0)

Error: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: No instances are allowed in the image heap for a class that is initialized or reinitialized at image runtime: io.netty.buffer.UnpooledByteBufAllocator. Try marking this class for build-time initialization with --initialize-at-build-time=io.netty.buffer.UnpooledByteBufAllocator

Trace: 

    at parsing io.netty.buffer.Unpooled.buffer(Unpooled.java:99)

Call path from entry point to io.netty.buffer.Unpooled.buffer(): 

    at io.netty.buffer.Unpooled.buffer(Unpooled.java:99)

    at io.netty.handler.codec.http2.DefaultHttp2HeadersEncoder.<init>(DefaultHttp2HeadersEncoder.java:30)

    at io.netty.handler.codec.http2.DefaultHttp2HeadersEncoder.<init>(DefaultHttp2HeadersEncoder.java:41)

    at io.netty.handler.codec.http2.DefaultHttp2FrameWriter.<init>(DefaultHttp2FrameWriter.java:96)

    at io.netty.handler.codec.http2.AbstractHttp2ConnectionHandlerBuilder.buildFromConnection(AbstractHttp2ConnectionHandlerBuilder.java:514)

    at io.netty.handler.codec.http2.AbstractHttp2ConnectionHandlerBuilder.build(AbstractHttp2ConnectionHandlerBuilder.java:504)

    at io.vertx.core.http.impl.VertxHttp2ConnectionHandlerBuilder.build(VertxHttp2ConnectionHandlerBuilder.java:161)

    at io.vertx.core.http.impl.HttpServerChannelInitializer.buildHttp2ConnectionHandler(HttpServerChannelInitializer.java:202)

    at io.vertx.core.http.impl.Http1xUpgradeToH2CHandler.channelRead(Http1xUpgradeToH2CHandler.java:84)

    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:374)

    at io.netty.channel.AbstractChannelHandlerContext.access$600(AbstractChannelHandlerContext.java:56)

    at io.netty.channel.AbstractChannelHandlerContext$7.run(AbstractChannelHandlerContext.java:365)

    at java.lang.Shutdown.runHooks(Shutdown.java:123)

    at java.lang.Shutdown.sequence(Shutdown.java:167)

    at java.lang.Shutdown.shutdown(Shutdown.java:234)

    at com.oracle.svm.core.jdk.RuntimeSupport.shutdown(RuntimeSupport.java:181)

    at com.oracle.svm.core.JavaMainWrapper.run(JavaMainWrapper.java:172)

    at com.oracle.svm.core.code.IsolateEnterStub.JavaMainWrapper_run_5087f5482cc9a6abc971913ece43acb471d2631b(generated:0)

Error: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: No instances are allowed in the image heap for a class that is initialized or reinitialized at image runtime: io.netty.buffer.UnpooledByteBufAllocator. Try marking this class for build-time initialization with --initialize-at-build-time=io.netty.buffer.UnpooledByteBufAllocator

Trace: 

    at parsing io.netty.buffer.Unpooled.buffer(Unpooled.java:116)

Call path from entry point to io.netty.buffer.Unpooled.buffer(int): 

    at io.netty.buffer.Unpooled.buffer(Unpooled.java:116)

    at io.vertx.core.http.impl.Http1xOrH2CHandler.end(Http1xOrH2CHandler.java:53)

    at io.vertx.core.http.impl.Http1xOrH2CHandler.channelRead(Http1xOrH2CHandler.java:44)

    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:374)

    at io.netty.channel.AbstractChannelHandlerContext.access$600(AbstractChannelHandlerContext.java:56)

    at io.netty.channel.AbstractChannelHandlerContext$7.run(AbstractChannelHandlerContext.java:365)

    at java.lang.Shutdown.runHooks(Shutdown.java:123)

    at java.lang.Shutdown.sequence(Shutdown.java:167)

    at java.lang.Shutdown.shutdown(Shutdown.java:234)

    at com.oracle.svm.core.jdk.RuntimeSupport.shutdown(RuntimeSupport.java:181)

    at com.oracle.svm.core.JavaMainWrapper.run(JavaMainWrapper.java:172)

    at com.oracle.svm.core.code.IsolateEnterStub.JavaMainWrapper_run_5087f5482cc9a6abc971913ece43acb471d2631b(generated:0)

Error: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: No instances are allowed in the image heap for a class that is initialized or reinitialized at image runtime: io.netty.buffer.UnpooledByteBufAllocator. Try marking this class for build-time initialization with --initialize-at-build-time=io.netty.buffer.UnpooledByteBufAllocator

Trace: 

    at parsing io.netty.buffer.Unpooled.buffer(Unpooled.java:135)

Call path from entry point to io.netty.buffer.Unpooled.buffer(int, int): 

    at io.netty.buffer.Unpooled.buffer(Unpooled.java:135)

    at io.vertx.core.buffer.impl.BufferImpl.<init>(BufferImpl.java:44)

    at io.vertx.core.buffer.impl.BufferFactoryImpl.buffer(BufferFactoryImpl.java:49)

    at io.vertx.core.buffer.Buffer.buffer(Buffer.java:94)

    at io.vertx.core.http.impl.HttpUtils.decodeSettings(HttpUtils.java:475)

    at io.vertx.core.http.impl.Http1xUpgradeToH2CHandler.channelRead(Http1xUpgradeToH2CHandler.java:69)

    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:374)

    at io.netty.channel.AbstractChannelHandlerContext.access$600(AbstractChannelHandlerContext.java:56)

    at io.netty.channel.AbstractChannelHandlerContext$7.run(AbstractChannelHandlerContext.java:365)

    at java.lang.Shutdown.runHooks(Shutdown.java:123)

    at java.lang.Shutdown.sequence(Shutdown.java:167)

    at java.lang.Shutdown.shutdown(Shutdown.java:234)

    at com.oracle.svm.core.jdk.RuntimeSupport.shutdown(RuntimeSupport.java:181)

    at com.oracle.svm.core.JavaMainWrapper.run(JavaMainWrapper.java:172)

    at com.oracle.svm.core.code.IsolateEnterStub.JavaMainWrapper_run_5087f5482cc9a6abc971913ece43acb471d2631b(generated:0)

Error: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: No instances are allowed in the image heap for a class that is initialized or reinitialized at image runtime: io.netty.buffer.UnpooledByteBufAllocator. Try marking this class for build-time initialization with --initialize-at-build-time=io.netty.buffer.UnpooledByteBufAllocator

Trace: 

    at parsing io.netty.buffer.Unpooled.copiedBuffer(Unpooled.java:652)

Call path from entry point to io.netty.buffer.Unpooled.copiedBuffer(CharBuffer, Charset): 

    at io.netty.buffer.Unpooled.copiedBuffer(Unpooled.java:652)

    at io.netty.buffer.Unpooled.copiedBuffer(Unpooled.java:583)

    at io.vertx.core.http.impl.HttpServerChannelInitializer.sendServiceUnavailable(HttpServerChannelInitializer.java:170)

    at io.vertx.core.http.impl.HttpServerChannelInitializer.handleHttp1(HttpServerChannelInitializer.java:162)

    at io.vertx.core.http.impl.HttpServerChannelInitializer.lambda$initChannel$0(HttpServerChannelInitializer.java:95)

    at io.vertx.core.http.impl.HttpServerChannelInitializer$$Lambda$543/332059589.handle(Unknown Source)

    at io.vertx.core.impl.ContextImpl.executeTask(ContextImpl.java:369)

    at io.vertx.core.impl.WorkerContext.lambda$wrapTask$0(WorkerContext.java:35)

    at io.vertx.core.impl.WorkerContext$$Lambda$471/1919822124.run(Unknown Source)

    at java.lang.Shutdown.runHooks(Shutdown.java:123)

    at java.lang.Shutdown.sequence(Shutdown.java:167)

    at java.lang.Shutdown.shutdown(Shutdown.java:234)

    at com.oracle.svm.core.jdk.RuntimeSupport.shutdown(RuntimeSupport.java:181)

    at com.oracle.svm.core.JavaMainWrapper.run(JavaMainWrapper.java:172)

    at com.oracle.svm.core.code.IsolateEnterStub.JavaMainWrapper_run_5087f5482cc9a6abc971913ece43acb471d2631b(generated:0)

Error: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: No instances are allowed in the image heap for a class that is initialized or reinitialized at image runtime: io.netty.buffer.UnpooledByteBufAllocator. Try marking this class for build-time initialization with --initialize-at-build-time=io.netty.buffer.UnpooledByteBufAllocator

Trace: 

    at parsing io.netty.buffer.Unpooled.wrappedBuffer(Unpooled.java:157)

Call path from entry point to io.netty.buffer.Unpooled.wrappedBuffer(byte[]): 

    at io.netty.buffer.Unpooled.wrappedBuffer(Unpooled.java:154)

    at io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker00.newHandshakeResponse(WebSocketServerHandshaker00.java:179)

    at io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker.handshake(WebSocketServerHandshaker.java:194)

    at io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker$2.channelRead0(WebSocketServerHandshaker.java:298)

    at io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker$2.channelRead0(WebSocketServerHandshaker.java:293)

    at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)

    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:374)

    at io.netty.channel.AbstractChannelHandlerContext.access$600(AbstractChannelHandlerContext.java:56)

    at io.netty.channel.AbstractChannelHandlerContext$7.run(AbstractChannelHandlerContext.java:365)

    at java.lang.Shutdown.runHooks(Shutdown.java:123)

    at java.lang.Shutdown.sequence(Shutdown.java:167)

    at java.lang.Shutdown.shutdown(Shutdown.java:234)

    at com.oracle.svm.core.jdk.RuntimeSupport.shutdown(RuntimeSupport.java:181)

    at com.oracle.svm.core.JavaMainWrapper.run(JavaMainWrapper.java:172)

    at com.oracle.svm.core.code.IsolateEnterStub.JavaMainWrapper_run_5087f5482cc9a6abc971913ece43acb471d2631b(generated:0)

    at com.oracle.graal.pointsto.constraints.UnsupportedFeatures.report(UnsupportedFeatures.java:133)

    at com.oracle.graal.pointsto.BigBang.finish(BigBang.java:565)

    at com.oracle.svm.hosted.NativeImageGenerator.runPointsToAnalysis(NativeImageGenerator.java:683)

    ... 7 more

Error: Image build request failed with exit status 1

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time:  01:05 min

[INFO] Finished at: 2019-11-07T09:04:54Z

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal io.quarkus:quarkus-maven-plugin:0.27.0:native-image (default) on project people: Failed to generate a native image: Failed to augment application classes: Build failure: Build failed due to errors

[ERROR]     [error]: Build step io.quarkus.deployment.pkg.steps.NativeImageBuildStep#build threw an exception: java.lang.RuntimeException: Failed to build native image

[ERROR]     at io.quarkus.deployment.pkg.steps.NativeImageBuildStep.build(NativeImageBuildStep.java:294)

[ERROR]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

[ERROR]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

[ERROR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

[ERROR]     at java.lang.reflect.Method.invoke(Method.java:498)

[ERROR]     at io.quarkus.deployment.ExtensionLoader$1.execute(ExtensionLoader.java:941)

[ERROR]     at io.quarkus.builder.BuildContext.run(BuildContext.java:415)

[ERROR]     at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)

[ERROR]     at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:2011)

[ERROR]     at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1535)

[ERROR]     at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1426)

[ERROR]     at java.lang.Thread.run(Thread.java:748)

[ERROR]     at org.jboss.threads.JBossThread.run(JBossThread.java:479)

[ERROR] Caused by: java.lang.RuntimeException: Image generation failed

[ERROR]     at io.quarkus.deployment.pkg.steps.NativeImageBuildStep.build(NativeImageBuildStep.java:283)

[ERROR]     ... 12 more

[ERROR] -> [Help 1]

[ERROR] 

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR] 

[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
jamesfalkner commented 4 years ago

This is fixed with the latest update to the RHPDS-ified workshop.