Open naivefun opened 8 years ago
Can you share the POM (or even better a small project) that triggers the problem?
@naivefun Does it still happen? If you can't share a project or a POM, what's your project setup? Is there a chance that you have Kryo version conflicts or classloading issues or are you excluding it explicitly? Kryo is a direct compile-time and run-time (but not instrumentation-time) Quasar dependency so it's quite strange that it can't be loaded. Do you have Quasar as a dependency?
Happens for me as well with
Quasar 0.7.9
Spring Boot
anyone managed to circumvent this problem? it works with spring-boot:run but fails while running regular java -jar.....
Sorry @bbarin. I don’t remember if I solved this or not. This was an experimental task where I compared using various async IO frameworks. In tthe end of the day I decided to use AsyncHttpClient because it produced best results in my tests.
Hey just to let anyone who is interested in this subject know. It turns out that spring boot uses a different classloader when packaged via its maven plugin. So I switched to shade plugin and after some tweaks, I've managed to make it work as an uber jar.
I'm also running into this with Quasar 0.7.9 and Sprint Boot 1.5.3.RELEASE. So far unable to get the uber jar to work using Maven shade plugin. However, I can run it with the mvn command, for example mvn test works fine. Going to fiddle with the shade config and see what I can do.
Hi Guys, I've solved basically using Capsule.
task fatCapsule(type: FatCapsule) { applicationClass 'com.myCompany.Application' }
gradle fatCapsule
Even I add the dependency to pom the same exception occurs. How to fix this? Thanks.