Git Product home page Git Product logo

advanced-vertx-guide's People

Contributors

gitplaneta avatar ismailmarmoush avatar kuujo avatar vietj 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  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  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

advanced-vertx-guide's Issues

Building instructions are incorrect or incomplete

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 does not work with the newer release of VertX

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)

Build error

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

TCP proxy ssh error

`
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
`

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.