Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.3.1 of this module does not work #66

Open
smiklosovic opened this issue Jun 1, 2015 · 1 comment
Open

0.3.1 of this module does not work #66

smiklosovic opened this issue Jun 1, 2015 · 1 comment

Comments

@smiklosovic
Copy link

@Narigo @purplefox

Hi, I'll be little bit detailed here.

I need to use this module. I put this line into mod.json

"deploys": "io.vertx~lang-scala_2.10~1.1.0-M1,io.vertx~mod-mysql-postgresql_2.10~0.3.1"

I have this in langs.properties:

scala=io.vertx~lang-scala_2.10~1.1.0-M1:org.vertx.scala.platform.impl.ScalaVerticleFactory

What I am doing here is that I am adding this module to deployments hence when I run my fat jar, it will automatically use this plugin.

Then I have my main verticle in which I am deploying this module

container.deployModule("io.vertx~mod-mysql-postgresql_2.10~0.3.1",
    new Handler<AsyncResult<String>>() {

    @Override
    public void handle(AsyncResult<String> event) {
        if (event.succeeded()) {
            System.out.println("succeeded");
        } else {
            System.out.println("not succeeded");
            System.out.println(event.cause().getMessage());
        }
    }
});

So it does this: http://pastebin.com/CJ5fjy7X

The bad thing is that this occurs randomly. Once it runs ok, once it fails with that ouptup.

Things I do not understand:

  1. Why it downloads scala module even I have bundled it into fat jar? I can see that module in mods dir in fat jar but when I start it, it downloads it every time. I have pulled in all dependencies into fat jar hence I do not see any reason why it should download them all over again.
  2. It downloads it EVERY TIME even I do have it in VERTX_HOME/sys-mods directory as it is system module
  3. It downloads it EVERY TIME even I do have that scala module in VERTX_MODS directory.
  4. Why it fails to deploy it and that promise error is there?

I am using Java 1.8

Is there any recomanded way how to use this module in my runnable vert.x module?

Thanks!

@smiklosovic smiklosovic changed the title 0.3.0 of this module does not work 0.3.1 of this module does not work Jun 1, 2015
@Narigo
Copy link
Member

Narigo commented Jun 3, 2015

Did you try putting lang-scala into the includes property?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants