| Summary: | java.lang.IllegalStateException: Unable to read the json message on page reload under Internet Explorer 11 | ||
|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Benjamin Brandl <Benjamin.Brandl> |
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | ivan |
| Version: | 3.12 | ||
| Target Milestone: | 3.14 M3 | ||
| Hardware: | PC | ||
| OS: | All | ||
| See Also: |
https://bugs.eclipse.org/bugs/show_bug.cgi?id=560514 https://git.eclipse.org/r/c/rap/org.eclipse.rap/+/168133 https://git.eclipse.org/c/rap/org.eclipse.rap.git/commit/?id=8a518b8a362e5ad2de9e86c75df42134062fe164 |
||
| Whiteboard: | |||
|
Description
Benjamin Brandl
What also seems to help is flipping the sendImmediate flag:
diff --git a/bundles/org.eclipse.rap.rwt/js/rwt/widgets/Display.js b/bundles/org.eclipse.rap.rwt/js/rwt/widgets/Display.js
index e55c68df4..9f33d4c67 100644
--- a/bundles/org.eclipse.rap.rwt/js/rwt/widgets/Display.js
+++ b/bundles/org.eclipse.rap.rwt/js/rwt/widgets/Display.js
@@ -195,7 +195,7 @@ rwt.widgets.Display.prototype = {
if( navigator.sendBeacon ) {
this._connection.sendBeacon();
} else {
- this._connection.sendImmediate( true );
+ this._connection.sendImmediate( false );
}
},
"default" : function() {
New Gerrit change created: https://git.eclipse.org/r/c/rap/org.eclipse.rap/+/168133 Gerrit change https://git.eclipse.org/r/c/rap/org.eclipse.rap/+/168133 was merged to [master]. Commit: http://git.eclipse.org/c/rap/org.eclipse.rap.git/commit/?id=8a518b8a362e5ad2de9e86c75df42134062fe164 Wow, that was quick.
I can confirm that the changes prevent the exceptions. Also the shutdown messages are sent again:
{"head":{"shutdown":true,"requestCounter":1},"operations":[]}
|