Results 1 to 3 of 3
  1. #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

  2. #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

  3. #3
    Thanks!! was looking for it too

 

 

Similar Threads

  1. React-Native release build fails
    By kgstefan88 in forum Client SDKs
    Replies: 3
    Last Post: July 25th, 2017, 10:14 AM
  2. push image
    By semua60 in forum Client SDKs
    Replies: 5
    Last Post: February 22nd, 2011, 03:39 AM
  3. Sending an image to the client
    By mnanda in forum Client SDKs
    Replies: 2
    Last Post: July 16th, 2010, 12:04 PM
  4. iPhone Native Client
    By Alessandro in forum Client SDKs
    Replies: 4
    Last Post: March 24th, 2009, 11:16 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 12:53 AM.