Hello,
Our production instance of LabKey is having an issue with the Captcha service on the registration page. This production instance is on 19.3, and this error does not happen on 19.2.
I see the following stacktrace from a 500 error when LabKey calls the captcha service:
HTTP Status 500 – Internal Server Error
Type Exception Report
Message Servlet execution threw an exception
Description The server encountered an unexpected condition that prevented it from fulfilling the request.
Exception
javax.servlet.ServletException: Servlet execution threw an exception
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
org.labkey.api.module.ModuleLoader.doFilter(ModuleLoader.java:1226)
org.labkey.api.security.AuthFilter.doFilter(AuthFilter.java:215)
org.labkey.core.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:118)
Root Cause
java.lang.NoClassDefFoundError: Could not initialize class java.awt.image.BufferedImage
com.google.code.kaptcha.text.impl.DefaultWordRenderer.renderWord(DefaultWordRenderer.java:37)
com.google.code.kaptcha.impl.DefaultKaptcha.createImage(DefaultKaptcha.java:43)
com.google.code.kaptcha.servlet.KaptchaServlet.doGet(KaptchaServlet.java:84)
javax.servlet.http.HttpServlet.service(HttpServlet.java:634)
javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
org.labkey.api.module.ModuleLoader.doFilter(ModuleLoader.java:1226)
org.labkey.api.security.AuthFilter.doFilter(AuthFilter.java:215)
org.labkey.core.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:118)
Note The full stack trace of the root cause is available in the server logs.
Apache Tomcat/9.0.27