HTTP Status 500 – Internal Server Error


Type Exception Report

Message An exception occurred processing [/wordmorphology.jsp] at line [17]

Description The server encountered an unexpected condition that prevented it from fulfilling the request.

Exception

org.apache.jasper.JasperException: An exception occurred processing [/wordmorphology.jsp] at line [17]

14: 	<jsp:useBean id="wordMorphology"
15: 		class="com.quran.corpus.web.application.WordMorphologyPage" />
16: 	<%request.setCharacterEncoding("UTF-8");%>
17: 	<%wordMorphology.initiate(pageContext, request.getMethod(),
18: 					request.getParameter("location"),
19: 					request.getParameter("commentTextBox"));%>
20: 	<page:param name="location"><%=wordMorphology.getLocation()%></page:param>


Stacktrace:
	org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:626)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:515)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)

Root Cause

com.quran.corpus.core.error.CorpusException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	com.quran.corpus.web.message.CommentBox.loadComments(CommentBox.java:274)
	com.quran.corpus.web.message.CommentBox.<init>(CommentBox.java:78)
	com.quran.corpus.web.application.WordMorphologyPage.initiate(WordMorphologyPage.java:93)
	org.apache.jsp.wordmorphology_jsp._jspService(wordmorphology_jsp.java:191)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:71)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:477)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)

Root Cause

com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	com.mysql.cj.jdbc.exceptions.SQLError.createCommunicationsException(SQLError.java:174)
	com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:64)
	com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:836)
	com.mysql.cj.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:456)
	com.mysql.cj.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:246)
	com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:197)
	java.sql/java.sql.DriverManager.getConnection(DriverManager.java:677)
	java.sql/java.sql.DriverManager.getConnection(DriverManager.java:251)
	com.quran.corpus.web.message.CommentBox.loadComments(CommentBox.java:245)
	com.quran.corpus.web.message.CommentBox.<init>(CommentBox.java:78)
	com.quran.corpus.web.application.WordMorphologyPage.initiate(WordMorphologyPage.java:93)
	org.apache.jsp.wordmorphology_jsp._jspService(wordmorphology_jsp.java:191)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:71)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:477)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)

Root Cause

com.mysql.cj.exceptions.CJCommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	jdk.internal.reflect.GeneratedConstructorAccessor58.newInstance(Unknown Source)
	java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
	com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:61)
	com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:105)
	com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:151)
	com.mysql.cj.exceptions.ExceptionFactory.createCommunicationsException(ExceptionFactory.java:167)
	com.mysql.cj.protocol.a.NativeSocketConnection.connect(NativeSocketConnection.java:91)
	com.mysql.cj.NativeSession.connect(NativeSession.java:144)
	com.mysql.cj.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:956)
	com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:826)
	com.mysql.cj.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:456)
	com.mysql.cj.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:246)
	com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:197)
	java.sql/java.sql.DriverManager.getConnection(DriverManager.java:677)
	java.sql/java.sql.DriverManager.getConnection(DriverManager.java:251)
	com.quran.corpus.web.message.CommentBox.loadComments(CommentBox.java:245)
	com.quran.corpus.web.message.CommentBox.<init>(CommentBox.java:78)
	com.quran.corpus.web.application.WordMorphologyPage.initiate(WordMorphologyPage.java:93)
	org.apache.jsp.wordmorphology_jsp._jspService(wordmorphology_jsp.java:191)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:71)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:477)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)

Root Cause

java.net.UnknownHostException: corpus-db
	java.base/java.net.InetAddress$CachedAddresses.get(InetAddress.java:797)
	java.base/java.net.InetAddress.getAllByName0(InetAddress.java:1505)
	java.base/java.net.InetAddress.getAllByName(InetAddress.java:1364)
	java.base/java.net.InetAddress.getAllByName(InetAddress.java:1298)
	com.mysql.cj.protocol.StandardSocketFactory.connect(StandardSocketFactory.java:132)
	com.mysql.cj.protocol.a.NativeSocketConnection.connect(NativeSocketConnection.java:65)
	com.mysql.cj.NativeSession.connect(NativeSession.java:144)
	com.mysql.cj.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:956)
	com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:826)
	com.mysql.cj.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:456)
	com.mysql.cj.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:246)
	com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:197)
	java.sql/java.sql.DriverManager.getConnection(DriverManager.java:677)
	java.sql/java.sql.DriverManager.getConnection(DriverManager.java:251)
	com.quran.corpus.web.message.CommentBox.loadComments(CommentBox.java:245)
	com.quran.corpus.web.message.CommentBox.<init>(CommentBox.java:78)
	com.quran.corpus.web.application.WordMorphologyPage.initiate(WordMorphologyPage.java:93)
	org.apache.jsp.wordmorphology_jsp._jspService(wordmorphology_jsp.java:191)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:71)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:477)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)

Note The full stack trace of the root cause is available in the server logs.


Apache Tomcat/9.0.37