-
July 13th, 2021, 08:32 AM
#1
Graalvm native image
Hey folks, anyone else crazy enough to try and build native images from java using graalvm?
The promise is immense, take your java code base and finally be able to run as a single executable, my app that uses the java lightstreamer client is 37k, no messing with jre's, great for a container .... but doesn't work.
Will spend some time trying to figure out if there's a way to make ls work in a native image but wanted to ask if anyone else is working on this?
Getting the following messages:
NO THREADEXECUTOR FACTORY CLASS AVAILABLE, SOMETHING WENT WRONG AT BUILD TIME, CONTACT LIGHTSTREAMER SUPPORT
NO HTTP PROVIDER CLASS AVAILABLE, SOMETHING WENT WRONG AT BUILD TIME, CONTACT LIGHTSTREAMER SUPPORT
Exception in thread "main" java.lang.NullPointerException
at com.lightstreamer.client.session.InternalConnectio nOptions.<init>(InternalConnectionOptions.java:62)
at com.lightstreamer.client.LightstreamerClient.<init >(LightstreamerClient.java:136)
at xyz.arwhite.igflows.IGFlows.loggedIn(IGFlows.java: 230)
at xyz.arwhite.igflows.IGFlows.go(IGFlows.java:314)
at xyz.arwhite.igflows.IGFlows.main(IGFlows.java:322)
Cheers
Alan
-
July 13th, 2021, 02:30 PM
#2
Hello,
I don’t know how Graalvm works exactly but the error seems to be caused by a problem during the dynamic class loading of the thread executor and http provider. Indeed Lightstreamer client loads some classes by means of Class.forName.
You should check that the bundle made by Graalvm does contain the following classes:
• com.lightstreamer.client.transport.providers.netty .NettyHttpProviderFactory
• com.lightstreamer.client.transport.providers.oio.O IOHttpProviderFactory
• com.lightstreamer.client.transport.providers.netty .WebSocketProviderFactory
• com.lightstreamer.client.transport.providers.netty .NettyShutdownHook
• com.lightstreamer.client.platform_data.offline.Jav aSEOfflineStatus
• com.lightstreamer.util.threads.DefaultExecutorFact ory
and the following jars:
• io.netty:netty-codec-http:4.1.46.Final
• io.netty:netty-handler:4.1.46.Final
• io.netty:netty-handler-proxy:4.1.46.Final
• com.lightstreamer:ls-log-adapter-java:1.0.2
-
July 15th, 2021, 09:15 AM
#3
Thanks!! was looking for it too
Similar Threads
-
By kgstefan88 in forum Client SDKs
Replies: 3
Last Post: July 25th, 2017, 10:14 AM
-
By semua60 in forum Client SDKs
Replies: 5
Last Post: February 22nd, 2011, 03:39 AM
-
By mnanda in forum Client SDKs
Replies: 2
Last Post: July 16th, 2010, 12:04 PM
-
By Alessandro in forum Client SDKs
Replies: 4
Last Post: March 24th, 2009, 11:16 AM
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 06:16 AM.
Bookmarks