question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problems with vertxRun task

See original GitHub issue

Hi,

I have the following in build.gradle:

vertx {
    mainVerticle = 'com.sample.SampleService'
}

vertxDebug {
    jvmArgs = ['-Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.SLF4JLogDelegateFactory']
}

vertxRun {
    jvmArgs = ['-Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.SLF4JLogDelegateFactory']
}

When I use vertxDebug, it works as expected.

But when I use vertxRun, I see the following issues:

  1. The specified jvmArgs is not passed along.
  2. On the command window, termination using [Ctrl] + [C] does not kill server. It keeps running in the background, and I get BindException because the port is occupied.

I am using Windows 10 and Java 8.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:18 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
re-thccommented, Jan 9, 2021

Pretty sure the problem is with the Vertx launcher code and not specifically this gradle plugin. If you run it without gradle the same problem occurs in Windows.

1reaction
duruercommented, Jan 10, 2020

Well, I’m not a Windows expert but yeah everything works fine on Unix system and moreover yeah all issues targeting to the Windows and they are not producable in Unix. In fact unfourtanetly I can only try the code.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Vert.x Starter Not Working With Gradle - Google Groups
Trying to run the Vert.x program (written in Kotlin 1.0.6) with Gradle via its run task and end up with the following output:...
Read more >
Problem with Gradle build when trying to run vertx application
IntelliJ and Vertx: How to run org.vertx.java.deploy.impl.cli.Starter ? 3 · gradle build , fails Execution failed for task ':compileJava'.
Read more >
eclipse-vertx/vertx-users - Gitter
Same issue for uploads ... the gradle plugin tests (mainly GradleRunner) and do not know how to test a gradle task (like vertxRun...
Read more >
Vert.x Core Manual
The trouble with a single thread is it can only run on a single core at any one ... Run a JavaScript verticle...
Read more >
The Problem with Gradle - Bruce Eckel
A build usually has multiple tasks and you typically invoke the desired task from the command-line, as in gradle build . Other build...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found