Jump to content
Excelsior Forums

All Activity

This stream auto-updates     

  1. Yesterday
  2. Load external configuration file

    Just to reiterate what has been discussed with @AndyDenby over email and to provide a public statement on this issue: It is highly discouraged to manually alter `java.class.path` property. If you will attempt to do it, you must provide ALL dependencies explicitly in that class path. So for this particular case the suggested workaround is: 1. Remove altering of `java.class.path` from `jvmArgs` configuration. Gradle plugin will handle adding all dependencies into class path on its own. 2. Exclude packaged configs (which you want to change after deployment) from created .jar file using following configuration: jar { exclude('config') } Assuming that all packaged config files are located in 'config' directory inside of .jar. The reason for such workaround is that Gradle plugin currently searches import class path entries before external class path entries, so if you don't exclude configs from .jar, JVM will find them in resources of compiled .jar file instead of your packaged external configs. There is a ticket in Excelsior JET Gradle plugin's bug tracker to add proper support for modification of `java.class.path` - https://github.com/excelsior-oss/excelsior-jet-gradle-plugin/issues/36
  3. Natively Compile a Spring Boot Application

    Hello, Could you please try compiling your .java files using `-parameters` argument for the javac and check if this helps?
  4. Last week
  5. Hello, I compiled a spring boot application as per the instruction given here: https://www.excelsiorjet.com/kb/38/howto-natively-compile-a-spring-boot-application The compilation worked fine, but after starting tomcat I POST requests are not working. GET requests are working though. With POST requests, I get the following error: java.lang.IllegalArgumentException: Name for argument type [java.lang.String] not available, and parameter name information not found in class file either.
  6. Load external configuration file

    Managed to get this going with the following excelsiorJet block. Key points in bold. 1. Add the classpath to the jvmArgs 2. Add the dependency block to copy the config files from src/ratpack to the config/ratpack folder under app excelsiorJet { // UNCOMMENT THIS ONCE YOU HAVE RUN GRADLE TEST RUN globalOptimizer = true // ONCE YOU HAVE EVERYTHING ELSE WORKING TRY... // protectData = true mainClass = 'ratpack.groovy.GroovyRatpackMain' groupId = 'com.group' version = '1.0.1' artifactName = 'myartifact' jvmArgs "-Djava.class.path=\$(Root)/config/ratpack", "-Xms256m", "-Xmx512m" stackAllocation = true inlineExpansion = 'aggressive' optimizationPreset = 'smart' compilerOptions = ["-Djet.gc.ratio=11", "-Djet.gc.no.swap"] dependencies { dependency { groupId = 'com.reshufl' isLibrary = false } dependency { path = new File(project.projectDir, "src/ratpack/") packagePath = 'config' pack = 'none' protect='not-required' optimize='auto-detect' } } runtime { flavor = 'server' components = ['jce'] } } Issue closed.
  7. Load external configuration file

    am using the Excelsior Jet Gradle plug-in to secure our java web application based on Ratpack. Using the excelsiorJet block below I have successfully compiled and ran the application using gradle jetTestRun. excelsiorJet { //UNCOMMENT THIS ONCE YOU HAVE RUN GRADLE TEST RUN globalOptimizer = true mainClass = 'ratpack.groovy.GroovyRatpackMain' groupId = 'com.reshufl' version = '1.0.1' //jvmArgs "-Xms256m", "-Xmx512m", "-Djava.class.path=./config/" jvmArgs "-Xms256m", "-Xmx512m" stackAllocation = true inlineExpansion = 'aggressive' compilerOptions = ["-Djet.gc.ratio=11", "-Djet.gc.no.swap", "-Djava.class.path=./config/application.properties"] //compilerOptions = ["-Djet.gc.ratio=11", "-Djet.gc.no.swap"] optimizationPreset = 'smart' dependencies { dependency { groupId = 'com.reshufl' isLibrary = false } //dependency { // path = new File(project.projectDir, "src/ratpack/application.properties") // packagePath = 'config' // pack = 'none' //} } packageFiles { file { path = new File(project.projectDir, "src/ratpack/application.properties") packagePath = "config" } } runtime { flavor = 'server' components = ['jce'] } } On startup Ratpack is configured to load the configuration file "src/ratpack/application.properties" that is currently being built into the deployment package. I am trying to externalize this configuration file so that it is read from a config directory created by the installer so that the end user can modify the application properties on start-up. So far I managed to create a copy of the file under the config directory however I've been unable to modify the classpath to read this version of the file first. I've looked at the documentation but just don't seem to be able to get this going. Please could you point me in the right direction for how to do this using the gradle plug in.
  8. Earlier
  9. Hello, Please find the answer to this question in the corresponding issue on GitHub: https://github.com/excelsior-oss/excelsior-jet-maven-plugin/issues/63 Excelsior Support
  10. Is there a way to do multi-component applications with this maven plugin? Our normal way of building excelsior installer is to have two excelsior projects "app.prj/exe" and "dep.prj/dll". In "app.exe" there is our application code, in "dep.dll" there are third party dependencies which are not changed a lot. With this two components we can quickly build excelsior installer without having to rebuild "dep" again. In "app.prj" we are using directive !uses, but I cannot find it in maven plugin. Now we want to use maven excelsior jet plugin in our project, but can/how we do it as multi-component application?
  11. Spring Lookup method injection

    Hello, Yes, dynamically generated code will be JIT-compiled by Excelsior JET runtime. You can try it out using our Evaluation edition: https://www.excelsiorjet.com/evaluate Also, there is an article in our Knowledge Base about compilation of Spring Boot application to which you may refer while evaluating: https://www.excelsiorjet.com/kb/38/howto-natively-compile-a-spring-boot-application If you have more question, please don't hesitate to ask them in our support: java@excelsior-usa.com Regards, Igor Jorch, Excelsior Suppor
  12. Hi, If I annotate a method with @Lookup Spring will dynamically generate code in that method using CGLIB. Will this work with AOT compilation? Tx.
  13. How to update previus build

    Hello, Yes, unfortunately for the current moment any change in an application triggers full recompilation. Also It is a known issue that big applications might require hours to compile as the compilation time depends on the application size. However sometimes it is possible to reduce the compilation time by correcting the project files or configuring the compiler. Please contact us via our support email: java [at] excelsior-usa.com Send us the following: *.prj files; Information about used JET (version and target architecture); Information about the machine where you build the application (OS, CPU, RAM). Ruslan Kim Excelsior Support
  14. How to update previus build

    Hi, I have TOMCAT web application, build action(inside Compile Step) take very long time to finish (more than 2 Hour). What should I do when I change just one class inside my application, it seems that build action start compiling everything because it takes very long time to compile again. Please help me if there is a way for updating previous build.
  15. Hello, Please contact us via our support mail: java [at] excelsior-usa.com Also please send us the project files you used to build and to deploy the application (*.prj & *.jpn) -- Ruslan Kim Excelsior Support
  16. Getting following error on startup of a tomcat executable, though it works perfectly as war. type Exception report message Servlet.init() for servlet jersey threw exception description The server encountered an internal error that prevented it from fulfilling this request. exception javax.servlet.ServletException: Servlet.init() for servlet jersey threw exception org.apache.catalina.authenticator.AuthenticatorBase.invoke(Unknown Source) org.apache.catalina.valves.ErrorReportValve.invoke(Unknown Source) org.apache.catalina.valves.AbstractAccessLogValve.invoke(Unknown Source) org.apache.catalina.connector.CoyoteAdapter.service(Unknown Source) org.apache.coyote.http11.AbstractHttp11Processor.process(Unknown Source) org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(Unknown Source) org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(Unknown Source) org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(Unknown Source) java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(Unknown Source) java.lang.Thread.run(Unknown Source) root cause java.lang.ArrayIndexOutOfBoundsException jersey.repackaged.org.objectweb.asm.ClassReader.readShort(Unknown Source) jersey.repackaged.org.objectweb.asm.ClassReader.<init>(Unknown Source) jersey.repackaged.org.objectweb.asm.ClassReader.<init>(Unknown Source) jersey.repackaged.org.objectweb.asm.ClassReader.<init>(Unknown Source) org.glassfish.jersey.server.internal.scanning.AnnotationAcceptingListener.process(Unknown Source) org.glassfish.jersey.server.ResourceConfig.scanClasses(Unknown Source) org.glassfish.jersey.server.ResourceConfig._getClasses(Unknown Source) org.glassfish.jersey.server.ResourceConfig.getClasses(Unknown Source) org.glassfish.jersey.server.ResourceConfig$RuntimeConfig.<init>(Unknown Source) org.glassfish.jersey.server.ResourceConfig$RuntimeConfig.<unknown>(Unknown Source) org.glassfish.jersey.server.ResourceConfig.createRuntimeConfig(Unknown Source) org.glassfish.jersey.server.ApplicationHandler.<init>(Unknown Source) org.glassfish.jersey.servlet.WebComponent.<init>(Unknown Source) org.glassfish.jersey.servlet.ServletContainer.init(Unknown Source) org.glassfish.jersey.servlet.ServletContainer.init(Unknown Source) javax.servlet.GenericServlet.init(Unknown Source) org.apache.catalina.authenticator.AuthenticatorBase.invoke(Unknown Source) org.apache.catalina.valves.ErrorReportValve.invoke(Unknown Source) org.apache.catalina.valves.AbstractAccessLogValve.invoke(Unknown Source) org.apache.catalina.connector.CoyoteAdapter.service(Unknown Source) org.apache.coyote.http11.AbstractHttp11Processor.process(Unknown Source) org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(Unknown Source) org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(Unknown Source) org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(Unknown Source) java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(Unknown Source) java.lang.Thread.run(Unknown Source) note The full stack trace of the root cause is available in the Apache Tomcat/8.0.46 logs.
  17. Attempt to compile synthetic class

    Hello, We are currently checking the asterisk-java library however we might need some more details regarding the issue. So to speed up the process please contact us via our support email: java [at] excelsior-usa.com -- Ruslan Kim Excelsior Support
  18. Attempt to compile synthetic class

    Hi, I have tomee web application that using asterisk-java library. when I use Excelsior Jet it compiles perfectly and run application without any error, but when I want to create package JetPack II produce following error: JET RUNTIME HAS DETECTED UNRECOVERABLE ERROR: runtime error at com/excelsior/jet/runtime/classload/classfile/ClassFile.java:1176 Attempt to compile synthetic class file for class 'asterisk/Command'. Please use either 'none' or 'as a whole' pack mode for the classpath entry/OSGi bundle containing the class. I test both none and whole for asterisk-java.jar but none of them work. asterisk-java.jar is 571KB so I can't attach it but you cloud see the source file here: https://github.com/asterisk-java/asterisk-java Please help me to resolve the issue it's very important to me.
  19. Complying with LGPL - runtime loading of classes

    small companies for sale
  20. Hello, Could you please tell us more information about compilation process: 1) How do you compile your application? Could you send us the compilation log? 2) Are there any active antivirus software on the system? It could block some file operations by filesystem monitoring protection. Any other details would be also helpful. Best regards, Excelsior Support Team
  21. Hi, I am new to Excelsior. I tried to compile a Jar but at the end got the following error: Fault 424 - file create error: Permission denied I am the admin, so should have full access right to the folder. Not sure which folder this error refer to? P.S. A pop-up window indicating I can click 'fix' button to auto-fix. But I did not see the 'fix' button anywhere...Can some one tell me where it is? Thanks! Ray
  22. Hi, I am new to Excelsior. I tried to compile a Jar but at the end got the following error: Fault 424 - file create error: Permission denied I am the admin, so should have full access right to the folder. Not sure which folder this error refer to? Thanks!
  23. Error with kotlin and tornadofx

    Thank you for the sample. We have reproduced the problem and can confirm that it is a bug in our verifier. We will fix it in the next Excelsior JET release (i.e. version 14). Could you please contact us by email (java (at) excelsior-usa.com)? We can make a hotfix for the current version or suggest a workaround. P.S. gradlew.bat is useless without gradle/wrapper/gradle-wrapper.jar. It is a good idea to add the following lines to your gitignore: !gradle/wrapper/gradle-wrapper.jar
  24. I'm trying to use kotlin with tornadofx (a kotlin javafx wrapper.) I keep getting errors similar to this one. Exception in Application constructor Exception in thread "main" java.lang.RuntimeException: Unable to construct Application instance: class TodoTestApp at com.sun.javafx.application.LauncherImpl.launchApplication1(Unknown Source) at com.sun.javafx.application.LauncherImpl.<unknown>(Unknown Source) at com.sun.javafx.application.LauncherImpl$$Lambda$37.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.<unknown>(Unknown Source) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at com.sun.javafx.application.LauncherImpl.<unknown>(Unknown Source) at com.sun.javafx.application.LauncherImpl$$Lambda$231.run(Unknown Source) at com.sun.javafx.application.PlatformImpl.<unknown>(Unknown Source) at com.sun.javafx.application.PlatformImpl$$Lambda$74.run(Unknown Source) at com.sun.javafx.application.PlatformImpl.<unknown>(Unknown Source) at com.sun.javafx.application.PlatformImpl$$Lambda$216.run(Unknown Source) at java.security.AccessController.<unknown>(Unknown Source) at com.sun.javafx.application.PlatformImpl.<unknown>(Unknown Source) at com.sun.javafx.application.PlatformImpl$$Lambda$62.run(Unknown Source) at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unknown Source) at com.sun.glass.ui.win.WinApplication._runLoop(Native Method) at com.sun.glass.ui.win.WinApplication.<unknown>(Unknown Source) at com.sun.glass.ui.win.WinApplication$$Lambda$108.run(Unknown Source) ... 1 more Caused by: java.lang.VerifyError: class: "tornadofx/CSSKt", method: "toSelector", signature: "(Ljava/lang/String;)Ltornadofx/CssSelector;", offset 123 Uninitialized object exists on backward branch 77 at tornadofx.Stylesheet.<clinit>(Unknown Source) at tornadofx.App.<init>(Unknown Source) at tornadofx.WorkspaceApp.<init>(Unknown Source) at TodoTestApp.<init>(Unknown Source) ... 18 more Here is a link to a demo app that exhibits the issue https://github.com/rwhite226/tornadofx-bug-demo
  25. org.modelmapper.PropertyMap issues

    It looks like a configuration issue if you code works fine after compilation and throws NPE while trial run in JetPackII. Maybe your application requires some configuration/property files or it depends on current directory. Does the problem reproduce after packaging ignoring results of trial run? Is it possible to add debug print in configure() method (i.e. print value of map(), map().getSomeProperty(), source)?
  26. I'm compiling a tomcat application. Everything works fine, except one thing. In the application I have the following: import org.modelmapper.PropertyMap; public class MyPropertyMap extends PropertyMap<X, Y> { @Override protected void configure() { map().getSomeProperty().setAnotherProperty(source.getId()); } } When I run the native compiled exe, the above runs fine. When I run the same exe through the trial run in JetPack II, I get a nullpointer exception in the map()... line. I assume because geSomeProperty() somehow returns null, or source is null, or both. What could be the issue?
  27. Installation failed

    Yes, it turned out Bitdefender was the culprit.
  1. Load more activity
×