You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is cause by EmbeddedRespondFactory using single instance of com.google.sitebricks.StringBuilderRespond, and therefore a single instance of StringBuilder in different requests/threads.
This causes the StringIndexOutOfBoundsException, and some other times cause output for one page to be currupted with output from other page instances.
A work arround is to replace EmbeddedRespondFactory with
@ImmutableclassEmbeddedRespondFactory {
//private final Respond respond = new StringBuilderRespond(new Object());publicEmbeddedRespondget(Map<String, ArgumentWidget> arguments) {
finalRespondrespond = newStringBuilderRespond(newObject());
returnnewEmbeddedRespond(arguments, respond);
}
}
kidogo
added a commit
to kidogo/sitebricks
that referenced
this issue
Jan 1, 2018
The text was updated successfully, but these errors were encountered: