ef-labs / vertx-when Goto Github PK
View Code? Open in Web Editor NEWProvides when.java wrappers for standard vert.x objects to return promises.
License: MIT License
Provides when.java wrappers for standard vert.x objects to return promises.
License: MIT License
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)
I'm planning to use this library in a project in my organization. Is it still maintained?
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?
I am using 3.0.1 version of vertx-when with Vertx 2.1.5. What is the proper way to use WhenHttpClient to
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.