Vert.x 3.3 server.js失败的尝试(怎么就没NodeJS好使呢?)
来源:互联网 发布:php 文件上传插件 编辑:程序博客网 时间:2024/04/28 09:42
Server.js内容:
// server.js load('vertx.js'); vertx.createHttpServer().requestHandler(function(req){ req.response.end("hello vertx!"); }).listen(8080, 'localhost');
尝试运行:
D:\vertx>bin\vertx run server.jsFailed to create the vert.x instancejava.lang.IllegalStateException: failed to create a child event loop at io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:88) at io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:58) at io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:47) at io.netty.channel.MultithreadEventLoopGroup.<init>(MultithreadEventLoopGroup.java:58) at io.netty.channel.nio.NioEventLoopGroup.<init>(NioEventLoopGroup.java:75) at io.netty.channel.nio.NioEventLoopGroup.<init>(NioEventLoopGroup.java:70) at io.netty.channel.nio.NioEventLoopGroup.<init>(NioEventLoopGroup.java:57) at io.vertx.core.impl.VertxImpl.<init>(VertxImpl.java:129) at io.vertx.core.impl.VertxImpl.<init>(VertxImpl.java:119) at io.vertx.core.impl.VertxFactoryImpl.vertx(VertxFactoryImpl.java:42) at io.vertx.core.Vertx.vertx(Vertx.java:90) at io.vertx.core.impl.launcher.commands.ClasspathHandler.create(ClasspathHandler.java:114) at io.vertx.core.impl.launcher.commands.BareCommand.startVertx(BareCommand.java:194) at io.vertx.core.impl.launcher.commands.BareCommand.run(BareCommand.java:132) at io.vertx.core.impl.launcher.commands.RunCommand.run(RunCommand.java:249) at io.vertx.core.impl.launcher.VertxCommandLauncher.execute(VertxCommandLauncher.java:230) at io.vertx.core.impl.launcher.VertxCommandLauncher.dispatch(VertxCommandLauncher.java:365) at io.vertx.core.impl.launcher.VertxCommandLauncher.dispatch(VertxCommandLauncher.java:328) at io.vertx.core.Launcher.main(Launcher.java:49)Caused by: io.netty.channel.ChannelException: failed to open a new selector at io.netty.channel.nio.NioEventLoop.openSelector(NioEventLoop.java:150) at io.netty.channel.nio.NioEventLoop.<init>(NioEventLoop.java:141) at io.netty.channel.nio.NioEventLoopGroup.newChild(NioEventLoopGroup.java:116) at io.netty.channel.nio.NioEventLoopGroup.newChild(NioEventLoopGroup.java:34) at io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:84) ... 18 moreCaused by: java.io.IOException: Unable to establish loopback connection at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:101) at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:68) at java.security.AccessController.doPrivileged(Native Method) at sun.nio.ch.PipeImpl.<init>(PipeImpl.java:170) at sun.nio.ch.SelectorProviderImpl.openPipe(SelectorProviderImpl.java:50) at java.nio.channels.Pipe.open(Pipe.java:155) at sun.nio.ch.WindowsSelectorImpl.<init>(WindowsSelectorImpl.java:127) at sun.nio.ch.WindowsSelectorProvider.openSelector(WindowsSelectorProvider.java:44) at io.netty.channel.nio.NioEventLoop.openSelector(NioEventLoop.java:148) ... 22 moreCaused by: java.net.ConnectException: Connection timed out: connect at sun.nio.ch.Net.connect0(Native Method) at sun.nio.ch.Net.connect(Net.java:454) at sun.nio.ch.Net.connect(Net.java:446) at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:648) at java.nio.channels.SocketChannel.open(SocketChannel.java:189) at sun.nio.ch.PipeImpl$Initializer$LoopbackConnector.run(PipeImpl.java:130) at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:83) ... 30 moreException in thread "Thread-2" java.lang.NullPointerException at io.vertx.core.impl.launcher.commands.BareCommand$1.run(BareCommand.java:308)
难不成是防火墙在搞鬼?还是说load('vertx.js'); 这一句有问题??
1 0
- Vert.x 3.3 server.js失败的尝试(怎么就没NodeJS好使呢?)
- 无意之间听到经理的一句话,怎么我之前一直就没总结出来呢
- Vert.x3---Vert.x 应用的配置
- 【入门】vert.x中eventBus实现通信的例子(前端js部分)
- nativa java里面定义了函数,在JNI里面也实现了,函数名参数什么的都没有错,调用native函数是怎么就出现链接失败的情况呢???
- 怎么新人 就这么的难呢
- 怎么就不是本人捡到的呢
- 微信分享 突然就 没反应,不好使的问题
- Vert.x的eventBus实例
- CentOS NodeJS PhantomJS PhearJS 失败的尝试……
- Vert.x学习笔记(一) Vert.x 核心包
- Vert.x学习笔记(二) Vert.x Web Client
- Vert.x-Web的讲解和使用(一)
- Vert.x-web的讲解和使用(英文原版)
- Vert.x-Web的讲解和使用(二)
- Vert.x-Web的讲解和使用(三)
- 今天周五了。一大早还没怎么做东西就快12点了呢
- Vert.x
- fastjson解析json时报错 class not has default constructor
- js笔记
- 设计模式01_单例模式
- mysql IFNUll+leftpad
- SEED-XDS560V2连接不上ccs5.5
- Vert.x 3.3 server.js失败的尝试(怎么就没NodeJS好使呢?)
- NCS
- Android APP安装后不在桌面显示图标的应用场景举例和实现方法
- 教你如何拷贝IE浏览器的网址收藏夹
- COOKIE与SESSION区别
- 构建需求响应式亿级商品详情页
- 竞品分析工具汇总
- Java(Android)线程池
- GridView 刷新网格控件