Blog save failed. 500 and rest error after upgrade to any new xwiki version from 9.4 enterprise

Currently using Blog app 9.7 in xwiki 9.11.3 (but same issue occurs on any xwiki version 9.5+) after upgrading from xwiki enterprise edition 9.4
When saving a new blog, the browser throws “Failed to save the page. Reason: Server not responding”

Browser attempts to connect to:
https://urlremoved.com/xwiki/rest/jobstatus/refactoring/create/1521737015136-733?media=json

Receives:
{“code”:500,“contactEmail”:null,“description”:“The server encountered an unexpected condition which prevented it from fulfilling the request”,“homeRef”:“/”,“reasonPhrase”:“Internal Server Error”,“uri”:“HTTP/1.1: Status Code Definitions”}

xwiki on glassfish 4.1 (also tested on 5) throws:
[javax.enterprise.web] [tid: _ThreadID=39 _ThreadName=https://urlremoved.com/xwiki/rest/jobstatus/refactoring/create/15216588evelValue: 800] [[
WebModule[/xwiki] ServletContext.log():RestletServlet: [Restlet] ServerServlet: component class is null]]

Do you mean 8.4 ?

If that’s the case you need to make sure you are using the new version of the Blog by going to the Extensions in the administration and search for the blog. It will replace the one that was embedded in 8.4 and which is no longer compatible with XWiki.

Oddly enough, 8.4 (enterprise edition) work fine for me. It’s after the enterprise editions are dropped and I try to upgrade to the consolidated 9.5 or newer when I see this problem. Another symptom is that if I click preview, then save, it will actually save the blog, but when it saves, the format is transformed into html. For example:
test 123
transforms into:

!DOCTYPE html PUBLIC “-W3CDTD XHTML 1.0 StrictEN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>
html xmlns=“XHTML namespace” lang=“en” xml:lang=“en”>body>p>test 123</p/body>/html

I purposely mangled the html a little bit to have it show up in the forum.

I tried another upgrade path via 8.4 and manually installing the blog app and seem to have worked around the issue. For the non rendering HTML issue, I also had to update three lines in my web.xml from:
org.xwiki.wysiwyg.server.filter.ConversionFilter
org.xwiki.wysiwyg.server.filter.XWikiContextInitializationFilter
org.xwiki.wysiwyg.server.filter.XWikiContextInitializationFilter

org.xwiki.wysiwyg.filter.ConversionFilter
org.xwiki.wysiwyg.filter.XWikiContextInitializationFilter
org.xwiki.wysiwyg.filter.XWikiContextInitializationFilter