Fresh install on Debian 10 with NullPointerException

Hi guys,

I just tried to install XWiki using the Debian packages as described in the official docs.

These are all the steps I took:

sudo apt install gnupg2
wget -q “https://maven.xwiki.org/public.gpg” -O- | sudo apt-key add -
sudo wget “https://maven.xwiki.org/stable/xwiki-stable.list” -P /etc/apt/sources.list.d/
sudo apt-get update
apt-cache search xwiki
sudo apt-get install xwiki-tomcat9-mariadb
sudo nano /etc/xwiki/xwiki.cfg //Setting validationKey, encryptionKey and superadminpassword

Now if I visit the url

8080/xwiki

I get to

8080/xwiki/bin/view/Main/

with a completely white website where I only get a 503.

In the logs I found these errors:

05-Nov-2020 15:16:55.445 SEVERE [http-nio-8080-exec-7 - http://example.de:8080/xwiki/bin/view/Main/] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [action] in context with path [/xwiki] threw exception
javax.servlet.UnavailableException: Cannot initialize RequestProcessor of class com.xpn.xwiki.web.XWikiRequestProcessor: java.lang.NullPointerException
at org.apache.struts.action.ActionServlet.getRequestProcessor(ActionServlet.java:614)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1910)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:634)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:122)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.xwiki.wysiwyg.filter.ConversionFilter.doFilter(ConversionFilter.java:109)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:132)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:688)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:367)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1639)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.base/java.lang.Thread.run(Thread.java:834)
05-Nov-2020 15:16:55.446 INFO [http-nio-8080-exec-7 - http://example.de:8080/xwiki/bin/view/Main/] org.apache.catalina.core.ApplicationContext.log Marking servlet [action] as unavailable
05-Nov-2020 15:16:55.452 WARNING [http-nio-8080-exec-7 - http://example.de:8080/xwiki/bin/view/Main/] org.apache.catalina.core.ApplicationDispatcher.invoke Servlet [action] is currently unavailable

Unfortunately I have no clue why this is not working. And I couldn’t find anything in the installation instructions that I forgot.

Do you have an idea?

Thanks!

The problem was a xml opening tag in the MariaDB password. I found the hibernate error in the catalina.out.

Sounds like a bug in the Debian installer not properly escaping the password when inserting it. Would be great if you could create a jira issue about it on Loading....