Giter VIP home page Giter VIP logo

netty-native-demo's People

Contributors

christianwimmer avatar cstancu avatar olpaw avatar vjovanov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

netty-native-demo's Issues

Cherry-pick fixes for netty-native-demo maven project

@cstancu please cherry-pick 04850b9
onto your master. It contains fixes for your netty-native-demo maven project that should also be useful for the workflow you are describing.

  • Most important, in line 20 I have added <scope>provided</scope> for the svm.jar dependency. This ensures that it is on the classpath only for building your project (with javac) but does not get transitively packed into the netty-svm-httpserver-full.jar.
  • The official maven groupId for the svm.jar is com.oracle.substratevm. By using the official name you avoid conflicts if we finally have substratevm in maven central.
  • By moving netty_reflection_config.json to src/main/resources/netty_reflection_config.json maven will automatically know this is a resource and package it into the jar file. This allows you to use -H:ReflectionConfigurationResources instead of -H:ReflectionConfigurationFiles which has the advantage of not being depended on where the resource file really is.

Unable to use netty-all version 4.1.38.Final

I managed to upgrade netty-all package to version 4.1.38.Final by modifying pom.xml:

@@ -11,7 +11,7 @@
     <dependency>
       <groupId>io.netty</groupId>
       <artifactId>netty-all</artifactId>
-      <version>4.1.24.Final</version>
+      <version>4.1.38.Final</version>
     </dependency>
     <dependency>
       <groupId>com.oracle.substratevm</groupId>

However, native-image with arguments mentioned by README.md could not generate execute along with the following error messages:

[netty-svm-http-server:47148]    classlist:   3,591.52 ms
[netty-svm-http-server:47148]        setup:   1,476.60 ms
Error: Already registered: io.netty.util.internal.CleanerJava6.CLEANER_FIELD_OFFSET
Error: Use -H:+ReportExceptionStackTraces to print stacktrace of underlying exception
Error: Image build request failed with exit status 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.