Code Monkey home page Code Monkey logo

vertx-when's People

Contributors

adrianluisgonzalez avatar johnwarneref avatar mikaelkaron avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vertx-when's Issues

FileNotFoundException inside then()

When using a relative path to a file inside a then()-block, I get always a FileNotFoundException from vertx. Here is a small example:

    FileProps fileProps = vertx.fileSystem.propsSync("test.html");

"test.html" is beneath "resources". This code works outside of a then()-block, but not inside. I have to use an absolute path to get it working. (vertx 2.1.5 and vertx-when 3.0.1)

Unable to integrate vertx-when with Vert.x application

I was not able to find a version of vertx-when available in a public Maven repository. Thus, I cloned the project and built it locally. To build it I had to switch from Java 7 to Java 8, which I did. The project is installed locally as "com.englishtown.vertx:vertx-when:4.0.0-SNAPSHOT".

I added this statement to my build.gradle:
compile "com.englishtown.vertx:vertx-when:4.0.0-SNAPSHOT"

I am able to run 'gradle install' or 'gradle fatjar' for my Vert.x applicationwritten in Groovy without any problems.

Here is the code, which gives me trouble:

package test
import org.vertx.groovy.core.eventbus.Message
import org.vertx.groovy.platform.Verticle
import org.vertx.java.core.Future
import com.englishtown.promises.WhenFactory
import com.englishtown.vertx.promises.WhenVertx
import com.englishtown.promises.When
import com.englishtown.vertx.promises.impl.DefaultWhenVertx

class ApplicationVerticle extends Verticle {

    def start(Future startedResult) {
        def config = container.config

        When when = WhenFactory.createSync();
        WhenVertx whenContainer = new DefaultWhenVertx(vertx, when);
        ...

I get a runtime error when trying to run either the ApplicationVerticle or the entire module.
On line When when = WhenFactory.createSync(); I get this error:

java.lang.NoClassDefFoundError: javax/inject/Provider

I found your post suggesting adding this line to Vert.x langs.properties

groovy=com.englishtown~vertx-mod-hk2~1.7.0:com.englishtown.vertx.hk2.HK2VerticleFactory

Adding this line causes another error when I try to run the Verticle (it has no effect on the module):

java.lang.NoClassDefFoundError: org/vertx/groovy/platform/Verticle

What is the proper way of integrating vertx-when with a Vert.x application?

Processing HTTP requests

I am using 3.0.1 version of vertx-when with Vertx 2.1.5. What is the proper way to use WhenHttpClient to

  • Set HTTP headers
  • Send POST body

Neither the documentation, nor the source code make it clear. I could not find a place in the code where headers or requestBody can be passed in or where they would be added to the HttpClientRequest object.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.