vert-x3 / advanced-vertx-guide Goto Github PK
View Code? Open in Web Editor NEWA gentle guide for advanced Vert.x users
A gentle guide for advanced Vert.x users
I can't build the documentation following the instructions. I get the following output:
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Non-resolvable import POM: Failure to find io.vertx:vertx-dependencies:pom:3.4.0-SNAPSHOT in https://oss.sonatype.org/content/repositories/snapshots was cached in the local repository, resolution will not be reattempted until the update interval of sonatype-nexus-snapshots has elapsed or updates are forced @ line 24, column 19
[ERROR] 'dependencies.dependency.version' for io.vertx:vertx-core:jar is missing. @ line 35, column 17
[ERROR] 'dependencies.dependency.version' for io.vertx:vertx-codegen:jar is missing. @ line 39, column 17
[ERROR] 'dependencies.dependency.version' for io.vertx:vertx-docgen:jar is missing. @ line 44, column 17
[ERROR] 'dependencies.dependency.version' for io.vertx:vertx-codetrans:jar is missing. @ line 49, column 17
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.vietj:vertx-material:1.0-SNAPSHOT (/home/castarco/Documentos/vertx-materials/pom.xml) has 5 errors
[ERROR] Non-resolvable import POM: Failure to find io.vertx:vertx-dependencies:pom:3.4.0-SNAPSHOT in https://oss.sonatype.org/content/repositories/snapshots was cached in the local repository, resolution will not be reattempted until the update interval of sonatype-nexus-snapshots has elapsed or updates are forced @ line 24, column 19 -> [Help 2]
[ERROR] 'dependencies.dependency.version' for io.vertx:vertx-core:jar is missing. @ line 35, column 17
[ERROR] 'dependencies.dependency.version' for io.vertx:vertx-codegen:jar is missing. @ line 39, column 17
[ERROR] 'dependencies.dependency.version' for io.vertx:vertx-docgen:jar is missing. @ line 44, column 17
[ERROR] 'dependencies.dependency.version' for io.vertx:vertx-codetrans:jar is missing. @ line 49, column 17
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
CreatingAnEventLoopFromHttpServer.java with vertx 3.5.1 throws an exception
Exception in thread "main" java.lang.IllegalStateException: Set request or websocket handler first at io.vertx.core.http.impl.HttpServerImpl.listen(HttpServerImpl.java:232) at io.vertx.core.http.impl.HttpServerImpl.listen(HttpServerImpl.java:212) at org.vietj.vertx.eventloop.CreatingAnEventLoopFromHttpServer.main(CreatingAnEventLoopFromHttpServer.java:12)
Attempting to build as referenced output text is not dereferenced on the webpage.
A snippet just before failure.
[INFO] --- asciidoctor-maven-plugin:1.5.3:process-asciidoc (default) @ vertx-material ---
io/console not supported; tty will not be manipulated
Jul 30, 2018 4:28:02 PM org.asciidoctor.internal.JRubyAsciidoctor renderFile
SEVERE: (ArgumentError) invalid byte sequence in UTF-8
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8.857 s
[INFO] Finished at: 2018-07-30T16:28:02+05:30
[INFO] Final Memory: 32M/577M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.asciidoctor:asciidoctor-maven-plugin:1.5.3:process-asciidoc (default) on project vertx-material: Execution default of goal org.asciidoctor:asciidoctor-maven-plugin:1.5.3:process-asciidoc failed: org.jruby.exceptions.RaiseException: (ArgumentError) invalid byte sequence in UTF-8 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
Explain and show VertxInternal#getAcceptorEventLoopGroup()
in Netty server doc.
The Java source code in https://github.com/vert-x3/advanced-vertx-guide/blob/master/src/main/asciidoc/Integrating_Netty.adoc is not displayed though the sources exist in the repository.
`
public class VpsVerticle extends AbstractVerticle {
private static final Map<String, Vps> vps = new ConcurrentHashMap<>();
@Override
public void start(Promise<Void> promise) {
vertx.createNetServer().connectHandler(server -> {
System.out.println("PTO: " + server.remoteAddress());
vertx.createNetClient().connect(22, "192.168.10.211", event -> {
if (event.succeeded()) {
vps.put("xxxxx", new Vps(server, event.result()).proxy());
} else {
event.cause().printStackTrace();
}
});
}).listen(10022, tcp -> {
if (tcp.succeeded()) {
System.out.println("proxy:10022");
promise.complete();
} else {
promise.fail(tcp.cause());
}
});
}
}
public class Vps implements Serializable {
private static final long serialVersionUID = -4212035958492348735L;
private final NetSocket server,client;
public Vps(NetSocket server, NetSocket client) {
this.server = server;
this.client = client;
}
public Vps proxy() {
//转发到客户端
server.handler(buffer -> {
System.out.println("111==" + BytesHelper.string(buffer.getBytes()));
client.write(buffer);
});
//转发给终端
client.handler(buffer -> {
System.out.println("222==" + BytesHelper.string(buffer.getBytes()));
server.write(buffer);
});
//服务关闭
server.closeHandler(v -> client.close());
client.closeHandler(v -> server.close());
//服务异常
server.exceptionHandler(e -> {
e.printStackTrace();
close();
});
client.exceptionHandler(e -> {
e.printStackTrace();
close();
}); return this;
}
private void close() {
server.close();
client.close();
}
}
`
`
ssh -p 10022 [email protected]
Bad packet length 1231976033.
ssh_dispatch_run_fatal: Connection to 10.21.101.149 port 10022: message authentication code incorrect
`
a prerequisite should be added for each section, so the reader knows whether he can read the section or not.
In https://github.com/vietj/vertx-materials/blob/master/src/main/asciidoc/Demystifying_the_event_loop.adoc the code examples are broken.
The text results are not dereferenced it seems.
Where is the published document for this source?
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.