Hey guys!
Last week we finally after long, long time did an upgrade of our wiki to the most recent 13.10.5 LTS release.
After thorough preparation in a test environment the upgrade itself went pretty smoothly overall. In the logs we just observed some Glossary Caching errors, which we payed little attention to. The wiki ran for more than one week without errors other than these caching messages. Now on the weekend we did a server reboot and horribly the wiki does not start anymore. The browser just shows this error:
HTTP Status 500 – Internal Server Error
Type Exception Report
Beschreibung The server encountered an unexpected condition that prevented it from fulfilling the request.
Exception
java.lang.NullPointerException com.xpn.xwiki.web.Utils.getContextComponentManager(Utils.java:682) com.xpn.xwiki.web.Utils.getComponent(Utils.java:739) com.xpn.xwiki.web.Utils.getComponent(Utils.java:768) com.xpn.xwiki.web.Utils.getComponent(Utils.java:721) org.xwiki.wysiwyg.filter.ConversionFilter.doFilter(ConversionFilter.java:55) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63) org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208) org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111) org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:132)
Hinweis Der komplette Stacktrace der Ursache ist in den Server logs zu finden
Apache Tomcat/9.0.36
I guess the important part of the log is one of these stacktrace excerpts. Either:
[http-nio-8080-exec-5 - https://<OUR_WIKI_URL>/webjars/<SUBWIKI_NAME>/xwiki-platform-tree-webjar/13.10.5/tree.min.css?evaluate=true] ERROR>
org.xwiki.resource.ResourceReferenceHandlerException: Failed to evaluate the Velocity code from WebJar resource [xwiki-platform-tree-webjar/13.10.5/tree.min.css]
at org.xwiki.webjars.internal.filter.VelocityWebJarsResourceFilter.filter(VelocityWebJarsResourceFilter.java:66)
[...]
at java.lang.Thread.run(Thread.java:825)
Caused by: java.lang.NullPointerException: null
at com.xpn.xwiki.web.Utils.getContextComponentManager(Utils.java:682)
at com.xpn.xwiki.web.Utils.getComponent(Utils.java:739)
at com.xpn.xwiki.web.Utils.getComponent(Utils.java:768)
at com.xpn.xwiki.web.Utils.getComponent(Utils.java:721)
at com.xpn.xwiki.internal.script.DeprecatedScriptContextInitializer.initialize(DeprecatedScriptContextInitializer.java:53)
at org.xwiki.script.internal.DefaultScriptContextManager.getScriptContext(DefaultScriptContextManager.java:65)
at com.xpn.xwiki.render.DefaultVelocityManager.getVelocityContext(DefaultVelocityManager.java:197)
at org.xwiki.webjars.internal.filter.VelocityWebJarsResourceFilter.filter(VelocityWebJarsResourceFilter.java:61)
... 38 common frames omitted
or maybe this one:
[main] ERROR .o.i.DefaultObservationManager - Failed to lookup the Event Listener [MentionsUpdatedEventListener] corresponding to the Component registration event for [org.xwiki.mentions.internal.listeners.MentionsUpdatedEventListener]. Ignoring the event
Apr 25 10:49:38 server[2725]: org.xwiki.component.manager.ComponentLookupException: Failed to lookup component [org.xwiki.mentions.internal.listeners.MentionsUpdatedEventListener] identified by type [interface org.xwiki.observation.EventListener] and hint [MentionsUpdatedEventListener]
[...]
Caused by: org.xwiki.component.manager.ComponentLookupException: Failed to lookup component [org.xwiki.mentions.internal.DefaultMentionsEventExecutor] identified by type [interface org.xwiki.mentions.internal.MentionsEventExecutor] and hint [default]
[...]
Caused by: org.xwiki.component.phase.InitializationException: Failed to initialize the queue
[...]
Caused by: org.h2.mvstore.MVStoreException: The write format 1 is smaller than the supported format 2 [2.1.212/5]
A quick grep
of all Errors
in the tomcat logs after the last restart of XWiki showed the following:
# journalctl -u tomcat | grep Error
WARNING [main] org.apache.tomcat.util.IntrospectionUtils.setProperty Error setting property [URIEncoding] to [UTF-8] on class [class org.apache.catalina.connector.Connector]
Caused by: java.lang.NoSuchMethodError: java/nio/ByteBuffer.clear()Ljava/nio/ByteBuffer; (loaded from /usr/lib64/jvm/java-1.8.0-ibm-1.8.0/jre/lib/rt.jar by <Bootstrap Loader>) called from class org.apache.tomcat.util.buf.CharsetUtil (loaded from file:/usr/share/java/tomcat/tomcat-util.jar by java.net.URLClassLoader@5c4a16bb).
java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version; class=com/vladsch/flexmark/util/data/DataHolder, offset=6
Might that be related to General error: "The write format 1 is smaller than the supported format 2 [2.0.202/5]" [50000-202] HY000/50000 · Issue #3214 · h2database/h2database · GitHub?
Can someone please help us to pinpoint the cause? Help is very much appreciated! If you need more information, please let me know. We are pretty desperate by now.
Best,
Björn