-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
properties of undefined .isWrapped error #80
Comments
Hello. Did you add the By default, Vaadin Flow only includes To do so, just add
More information on Spring whitelisted configuration here. |
@javier-godoy yes, I did |
Which version of Vaadin and which version of the add-on are you using? |
Vaadin V24, xterm-console addon 2.1.1, running with java 17 |
We had just released 2.2.0, which may have a different behavior (it upgrades the version of xterm.js) although it has no direct fix for this issue. Based on the error message, I think the issue likely related to the following line (which is a workaround for #70) XTermConsoleAddon/src/main/resources/META-INF/frontend/fc-xterm/xterm-insertfix-mixin.ts Line 66 in 97fd2fc
If the error persists with 2.2.0, please let me know if you have some reproducible example of that issue (perhaps it's related to writing a lot of lines at once, or writing long lines) or if you are willing to try some snapshot version with enhanced logs. That fragment of code is rather fragile, and there may be some corner case that is not covered by the integration tests. |
I upgraded to 2.2.0 and the error still persists. Also, i was accesing the web using chrome, but trying firefox I get a different error: If you want to reproduce the error, this is the spected output:
And it is able to write this before it starts giving the error every time you attempt to write another line:
You can also run the Velocity server jar, a minecraft server proxy, on a separate thread and redirect the output to the console. Im writing using this in a separate thread: int num = inputStream.available();
if (num > 0) {
int n = inputStream.read(buffer, 0, Math.min(num, buffer.length));
String line = new String(buffer, 0, n);
System.out.println(line);
final String out = line;
ui.access(() -> {
terminal.writeln(out);
terminal.scrollToBottom();
ui.push();
});
} Also, I first tried getting the output from the process with a BufferedReader and .readLine(), but it enters on an infinite loop, probably because the process waits for input. |
Can you supply a complete sample project that is able to reproduce the issue easily? What we would need is something like a zip file with a project that you download, unzip and start the application and then some simple steps to reproduce the problem. Thanks! |
Im trying to use XTerm as a console for a minecraft server, and every time I get this error after 20 lines or so

Uncaught TypeError: Cannot set properties of undefined (setting 'isWrapped') (http://localhost:8080/VAADIN/build/generated-flow-imports-4b12332d.js:16123:3143)
Mi XTerm variable looks like this
And for writing lines I use
In this case im trying to run a velocity server with a ProcessBuilder in a separate thread (the serverInput variable im using is the Buffered Reader of the process)
The line it strarts givin the error at is
at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:579) ~[paper-1.19.4.jar:3.2.0-SNAPSHOT (git-7f776abf-b252)]
With is part of an
Address already in use: bind
error caused by the port allready being used, witch im specting when running the JAR.The text was updated successfully, but these errors were encountered: