jooby-project / jooby

The modular web framework for Java and Kotlin
https://jooby.io
Apache License 2.0
1.7k stars 200 forks source link

Problem with jooby-netty when typed mvn jooby:run #239

Closed Techniacz closed 8 years ago

Techniacz commented 8 years ago

Hi all, I have a little problem with run project. It was made in Linux, but I want run it at windows. I cloned it from git, made mvn clean install (without errors), and when i try typed mvn jooby:run, i have error (like on screenshot). I tried clean .m2 folder and target, but without any results.

error

Can anyone help ? I can paste needed files if You need it ?

jknack commented 8 years ago

Hello,

I need the files and everything that help me to reproduce the issue. I can't reproduce it on Windows 11.

Thanks

Techniacz commented 8 years ago

Hello, i attach archive with whole project. When i changed in pom.xml jooby version from 0.11.2 to 0.8.2 or 0.12.0 and after that clean .m2 folder and made new mvn clean install - project running without errors. Problematic is only 0.11.2 version. basic-app.zip

jknack commented 8 years ago

it works for me, I tried it with: 0.12.0, 0.11.2 and 0.8.2.

I think, maven download got corrupted and then makes jooby fails. This might be cause for a bad network connection or similar.

One thing you can try is to make sure you have latest maven 3.3 installed.

Techniacz commented 8 years ago

We tested it on 2 computers (one with win8 and second with win10), on 3 different localisations with different internet provider (every with good ping and d/u values). We tested it with two maven versions (newest and a little bit older). So it isnt a problem. Did You clean Your m2 folder?

Regards

jknack commented 8 years ago

I did now. I removed 0.11.2 from .m2

here is the output (do you see 0.11.2 being downloaded?):

ava HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
[INFO] Scanning for projects...
[INFO] Inspecting build with total of 1 modules...
[INFO] Installing Nexus Staging features:
[INFO]   ... total of 1 executions of maven-deploy-plugin replaced with nexus-staging-maven-plugin
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building basic-app 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> jooby-maven-plugin:0.11.2:run (default-cli) > test-compile @ basic-app >>>
Downloading: https://repo.maven.apache.org/maven2/org/jooby/jooby/0.11.2/jooby-0.11.2.pom
Downloaded: https://repo.maven.apache.org/maven2/org/jooby/jooby/0.11.2/jooby-0.11.2.pom (5 KB at 4.1 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/jooby/jooby-netty/0.11.2/jooby-netty-0.11.2.pom
Downloaded: https://repo.maven.apache.org/maven2/org/jooby/jooby-netty/0.11.2/jooby-netty-0.11.2.pom (3 KB at 8.3 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/jooby/jooby-hbs/0.11.2/jooby-hbs-0.11.2.pom
Downloaded: https://repo.maven.apache.org/maven2/org/jooby/jooby-hbs/0.11.2/jooby-hbs-0.11.2.pom (3 KB at 3.3 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/jooby/jooby/0.11.2/jooby-0.11.2.jar
Downloading: https://repo.maven.apache.org/maven2/org/jooby/jooby-netty/0.11.2/jooby-netty-0.11.2.jar
Downloading: https://repo.maven.apache.org/maven2/org/jooby/jooby-hbs/0.11.2/jooby-hbs-0.11.2.jar
Downloading: https://repo.maven.apache.org/maven2/org/jooby/jooby/0.11.2/jooby-0.11.2-tests.jar
Downloaded: https://repo.maven.apache.org/maven2/org/jooby/jooby-hbs/0.11.2/jooby-hbs-0.11.2.jar (11 KB at 14.6 KB/sec)
Downloaded: https://repo.maven.apache.org/maven2/org/jooby/jooby-netty/0.11.2/jooby-netty-0.11.2.jar (31 KB at 37.4 KB/sec)
Downloaded: https://repo.maven.apache.org/maven2/org/jooby/jooby/0.11.2/jooby-0.11.2-tests.jar (29 KB at 28.9 KB/sec)
Downloaded: https://repo.maven.apache.org/maven2/org/jooby/jooby/0.11.2/jooby-0.11.2.jar (341 KB at 268.6 KB/sec)
[INFO]
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce.versions) @ basic-app ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-versions) @ basic-app ---
[INFO]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ basic-app ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/edgar/Downloads/basic-app/src/main/resources
[INFO] Copying 3 resources
[INFO] skip non existing resourceDirectory /Users/edgar/Downloads/basic-app/src/main/resources
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ basic-app ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @ basic-app ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/edgar/Downloads/basic-app/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.2:testCompile (default-testCompile) @ basic-app ---
[INFO] No sources to compile
[INFO]
[INFO] <<< jooby-maven-plugin:0.11.2:run (default-cli) < test-compile @ basic-app <<<
[INFO]
[INFO] --- jooby-maven-plugin:0.11.2:run (default-cli) @ basic-app ---
Downloading: https://repo.maven.apache.org/maven2/org/jooby/jooby-assets/0.11.2/jooby-assets-0.11.2.pom
Downloaded: https://repo.maven.apache.org/maven2/org/jooby/jooby-assets/0.11.2/jooby-assets-0.11.2.pom (3 KB at 5.9 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/jooby/jooby-hotreload/0.11.2/jooby-hotreload-0.11.2.pom
Downloaded: https://repo.maven.apache.org/maven2/org/jooby/jooby-hotreload/0.11.2/jooby-hotreload-0.11.2.pom (3 KB at 5.8 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/jooby/jooby-assets/0.11.2/jooby-assets-0.11.2.jar
Downloading: https://repo.maven.apache.org/maven2/org/jooby/jooby-hotreload/0.11.2/jooby-hotreload-0.11.2.jar
Downloaded: https://repo.maven.apache.org/maven2/org/jooby/jooby-hotreload/0.11.2/jooby-hotreload-0.11.2.jar (20 KB at 54.1 KB/sec)
Downloaded: https://repo.maven.apache.org/maven2/org/jooby/jooby-assets/0.11.2/jooby-assets-0.11.2.jar (39 KB at 71.9 KB/sec)
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
Listening for transport dt_socket at address: 8000
Hotswap available on: [/Users/edgar/Downloads/basic-app]
  includes: [**/*.class,**/*.conf,**/*.properties,*.js, src/*.js]
  excludes: []
[2015-12-11 11:10:30,473]-[35722@pool-1-thread-1] INFO  basic.App - [dev@netty]: Server started in 535ms

  GET /assets/**    [*/*]     [*/*]    (/anonymous)
  GET /             [*/*]     [*/*]    (/anonymous)

listening on:
  http://localhost:8080/
Techniacz commented 8 years ago

Its strange but we have 3rd person with this same problem (but about her i dont have any details about environment besides it on some windows os)

jknack commented 8 years ago

Let's try something else:

  1. reproduce the error
  2. find the target/jboss-modules in your project base dir
  3. find the module.xml file (it should be in target/jboss-modules/basic/main/module.xml more or less)
  4. attach here the module.xml file
Techniacz commented 8 years ago

It is on archive above

jknack commented 8 years ago

so, was able to reproduce it. there is something wrong with netty-transport-native-epoll-4.0.32 and jooby-netty-0.11.2 on windows.

0.12.0 doesn't have this problem, so I recommended you to upgrade to 0.12.0.

still will commit something that I think it would help, but will be release it in 0.13.0