protocols_whitelist: ["iframe-htmlfile", "iframe-eventsource", "iframe-xhr-polling", "jsonp-polling"]Closed transport: iframe-eventsource SimpleEvent(type=close, code=1006, reason=Unable to load an iframe (onload timeout), wasClean=false)
Closed transport: iframe-htmlfile SimpleEvent(type=close, code=2007, reason=Transport timeouted, wasClean=false) Opening transport: iframe-eventsource  url:https://rt.fling.com:443/rtn/053/nps4h4ma  RTO:324rtbus.js (line 27)Closed transport: iframe-eventsource SimpleEvent(type=close, code=2007, reason=Transport timeouted, wasClean=false)rtbus.js (line 27)Opening transport: iframe-xhr-polling  url:https://rt.fling.com:443/rtn/053/znlo1bu8  RTO:324rtbus.js (line 27)log: Closed transport: iframe-xhr-polling SimpleEvent(type=close, code=2007, reason=Transport timeouted, wasClean=false)[ root @ statix ]: /tmp/vert.x-master$ gradlew assemble:vertx-core:compileJavaNote: /tmp/vert.x-master/vertx-core/src/main/java/org/vertx/java/core/net/impl/VertxEventLoopGroup.java uses or overrides a deprecated API.Note: Recompile with -Xlint:deprecation for details.Note: Some input files use unchecked or unsafe operations.Note: Recompile with -Xlint:unchecked for details.:vertx-core:processResources:vertx-core:classes:vertx-core:jar:vertx-core:javadoc:vertx-core:javadocJar:vertx-core:sourceJar:vertx-core:signArchives SKIPPED:vertx-core:assemble:vertx-platform:compileJava/tmp/vert.x-master/vertx-platform/src/main/java/org/vertx/java/platform/impl/ModuleIdentifier.java:30: error: unmappable character for encoding ASCII private static final String LEGAL = "[A-Za-z0-9!??$()-_+=@~;,]+";                         ^/tmp/vert.x-master/vertx-platform/src/main/java/org/vertx/java/platform/impl/ModuleIdentifier.java:30: error: unmappable character for encoding ASCII private static final String LEGAL = "[A-Za-z0-9!??$()-_+=@~;,]+";                          ^:vertx-platform:processResources:vertx-platform:classes:vertx-platform:jar:vertx-platform:javadoc:vertx-platform:javadocJar:vertx-platform:sourceJar:vertx-platform:signArchives SKIPPED:vertx-platform:assemble:assemble
BUILD SUCCESSFUL
Total time: 55.955 secsvert.x-master/vertx-platform/src/main/java/org/vertx/java/platform/impl/ModuleIdentifier.java:30: error: unmappable character for encoding ASCIIÂ private static final String LEGAL = "[A-Za-z0-9!??$()-_+=@~;,]+";$ cat /etc/redhat-releaseCentOS release 5.9 (Final)[compileJava, compileTestJava]*.options.collect {options ->
options.encoding = 'UTF-8'}
Also, regarding the gradle character encoding... where do you put that
option? The link you provided says to include this:
[compileJava, compileTestJava]*.options.collect {options ->
options.encoding = 'UTF-8'}
But I am new to using gradle, and there are a few files (settings.gradle,
gradle.properties etc...)
$ /tmp/vert.x-2.0.0-CR1/bin/vertx run BridgeServer.java -cp "/opt/overseer/new/:/opt/overseer/new/mods/"/opt/overseer/new/BridgeServer.java:12: error: package org.vertx.java.deploy does not existimport org.vertx.java.deploy.Verticle;Â Â Â Â Â Â Â Â Â Â Â Â Â Â ^/tmp/vert.x-2.0.0.0-CR1/
/tmp/vert.x-2.0.0-CR1/bin/vertx run BridgeServer.java -cp "/opt/overseer/new/:/opt/overseer/new/mods/"
Jonathans-MacBook-Pro:vert.x-2.0.0-CR1 je$ /Users/je/vertx/vert.x-2.0.0-CR1/bin/vertx run BridgeServer.java -cp "/Users/je/vertx/vert.x-2.0.0-CR1/:/Users/je/vertx/vert.x-2.0.0-CR1/mods/"/Users/je/vertx/vert.x-2.0.0-CR1/BridgeServer.java:12: error: package org.vertx.java.deploy does not existimport org.vertx.java.deploy.Verticle;Â Â Â Â Â Â Â Â Â Â Â Â Â Â ^/Users/je/vertx/vert.x-2.0.0-CR1/BridgeServer.java:25: error: cannot find symbolpublic class BridgeServer extends Verticle {Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ^Â symbol: class VerticleI have noticed however, that the vertx-lang-java-1.3.1.final.jar file isn't there like it is in 1.3.1.
) <https://bintray.com/vertx/downloads/distribution/2.0.0-CR1> On Wednesday, June 19, 2013 3:45:36 PM UTC-4, steven winner wrote: I am going to try to fix the character encoding UTF-8 a try. Would definitely like to see how the 2.0 version works. The reason I run it as root, is because we use supervisord, to daemonize vert.x, so it will be run like an actual daemon/service, and restart if it quits, and provide additional functionality... and that needs to run as root (although it doesn't run vertx as root when it daemonizes it) On Wednesday, June 19, 2013 3:41:14 PM UTC-4, Tim Fox wrote: On 19/06/13 20:36, steven winner wrote: Oh... rtbus.js is just the minified version of sockjs, vertbus.js and my javascript that does the calling. Just combines and minifies them into one file. Have also tried without minifying, just in case that was a potential issue. I am getting the original example setup to see if that fails for me. Could the character encoding issue I encountered be related to the current problems I'm having with sockjs 0.2.1/vert.x 1.3.1 ? It shouldn't do, but it's worth checking. I notice you're running as root, any particular reason for that? Perhaps try setting up the OS / user so Java uses a default char encoding of UTF-8, and see what happens. On Wednesday, June 19, 2013 3:28:52 PM UTC-4, Tim Fox wrote: On 19/06/13 20:04, steven winner wrote: I was thinking about that, so I just changed sockjs to use 0.2.1, and all the iframe transports are still failing :-/ Opening transport: iframe-eventsource url: https://rt.fling.com:443/rtn/053/nps4h4ma RTO:324 rtbus.js (line 27) One more question: what is rtbus.js? Closed transport: iframe-eventsource SimpleEvent(type=close, code=2007, reason=Transport timeouted, wasClean=false) rtbus.js (line 27) Opening transport: iframe-xhr-polling url:https://rt.fling.com:443/rtn/053/znlo1bu8 RTO:324 rtbus.js (line 27) log: Closed transport: iframe-xhr-polling SimpleEvent(type=close, code=2007, reason=Transport timeouted, wasClean=false) I also grabbed the latest version of master from git yesterday, and tried to build it, and while it said build was successful, this is what it said: [ root @ statix ]: /tmp/vert.x-master $ gradlew assemble :vertx-core:compileJava Note: /tmp/vert.x-master/vertx-core/src/main/java/org/vertx/java/core/net/impl/VertxEventLoopGroup.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. :vertx-core:processResources :vertx-core:classes :vertx-core:jar :vertx-core:javadoc :vertx-core:javadocJar :vertx-core:sourceJar :vertx-core:signArchives SKIPPED :vertx-core:assemble :vertx-platform:compileJava /tmp/vert.x-master/vertx-platform/src/main/java/org/vertx/java/platform/impl/ModuleIdentifier.java:30: error: unmappable character for encoding ASCII private static final String LEGAL = "[A-Za-z0-9!??$()-_+=@~;,]+"; ^ /tmp/vert.x-master/vertx-platform/src/main/java/org/vertx/java/platform/impl/ModuleIdentifier.java:30: error: unmappable character for encoding ASCII private static final String LEGAL = "[A-Za-z0-9!??$()-_+=@~;,]+"; ^ :vertx-platform:processResources :vertx-platform:classes :vertx-platform:jar :vertx-platform:javadoc :vertx-platform:javadocJar :vertx-platform:sourceJar :vertx-platform:signArchives SKIPPED :vertx-platform:assemble :assemble BUILD SUCCESSFUL Total time: 55.955 secs There is an error: vert.x-master/vertx-platform/src/main/java/org/vertx/java/platform/impl/ModuleIdentifier.java:30: error: unmappable character for encoding ASCII private static final String LEGAL = "[A-Za-z0-9!??$()-_+=@~;,]+"; And when I try to run my code, it says that it is missing: org.vertx.java.deploy.Verticle Not sure if that moved, or if the error messed up the build. Any help of this is greatly appreciated. On Wednesday, June 19, 2013 2:48:03 PM UTC-4, Tim Fox wrote: Can you try sockjs 0.2.1 - this is the version tested against for Vert.x 1.3.1 and specified in the documentation. Also... can you try Vert.x 2.0.CR1 (with sockjs 0.3.4)? On 19/06/13 19:42, steven winner wrote: Forgot to include the actual errors. In firefox I am getting this: Closed transport: iframe-eventsource SimpleEvent(type=close, code=1006,reason =Unable to load an iframe (onload timeout), wasClean=false) And IE I am getting: Closed transport: iframe-htmlfile SimpleEvent(type=close, code=2007, reason= Transport timeouted, wasClean=false) On Wednesday, June 19, 2013 2:28:40 PM UTC-4, steven winner wrote: I am testing the connection stability of vert.x and sockjs in our production environment to see how many connect/reconnect failures, and have been noticing that there are a decent amount of users not able to connect on ANY transport. I have all the transports whitelisted, and it seems like all of the iframe transports are failing. I am using vert.x 1.3.1 final, and sockjs 0.3.4 I have also been able to see this issue in firefox 21 and chrome 27 (os x 10.8.4), by changing the transport whitelist to not include websockets and xhr/xdr etc) protocols_whitelist: ["iframe-htmlfile", "iframe-eventsource", "iframe-xhr-polling", "jsonp-polling"] The iframe-* transports/protocols are failing, which is the "best/only" transport available for a sizable portion of our user base. Would really love to use vert.x/sockjs/eventbus if we can get these connection issues hashed out. Also, we switched to ssl port 443 for what its worth, because we had read that connections were more stable. Anyone have any experience with this?
#version 1.3.1
import org.vertx.java.deploy.Verticle;
#version 2.0
import org.vertx.java.platform.Verticle;
error: package org.vertx.java.deploy does not exist/tmp/vert.x-master/vertx-platform/src/main/java/org/vertx/java/platform/impl/ModuleIdentifier.java:30: error: unmappable character for encoding ASCII  private static final String LEGAL = "[A-Za-z0-9!??$()-_+=@~;,]+";                          ^/tmp/vert.x-master/vertx-platform/src/main/java/org/vertx/java/platform/impl/ModuleIdentifier.java:30: error: unmappable character for encoding ASCII  private static final String LEGAL = "[A-Za-z0-9!??$()-_+=@~;,]+";                          ^export JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8Opening transport: iframe-eventsource  url:http://domain.com/rtn/093/8gt39iyp  RTO:283 rtbus.js:288Closed transport: iframe-eventsource SimpleEvent(type=close, code=2007, reason=Transport timeouted, wasClean=false) rtbus.js:288Opening transport: iframe-xhr-polling  url:http://domain.com/rtn/093/g6cqgar8  RTO:283 rtbus.js:288Closed transport: iframe-xhr-polling SimpleEvent(type=close, code=2007, reason=Transport timeouted, wasClean=false) rtbus.js:288
Opening transport: iframe-eventsource  url:http://domain.com/rtn/722/vbplsj23  RTO:555rtbus.js (line 288)Closed transport: iframe-eventsource SimpleEvent(type=close, code=1006, reason=Unable to load an iframe (onload timeout), wasClean=false)log: Opening transport: iframe-xhr-polling  url:http://domain.com/rtn/722/ntqesf7i  RTO:555rtbus.js (line 288)Closed transport: iframe-xhr-polling SimpleEvent(type=close, code=1006, reason=Unable to load an iframe (onload timeout), wasClean=false)rtbus.js (line 288)container.deployVerticle("RtApiServer.java");