HTTP Status 500 – Internal Server Error


Type Exception Report

Message javax.servlet.ServletException: java.sql.SQLException: Io exception: The Network Adapter could not establish the connection

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

Exception

org.apache.jasper.JasperException: javax.servlet.ServletException: java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
	org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:599)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:500)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:728)

Root Cause

javax.servlet.ServletException: java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
	org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:917)
	org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:846)
	org.apache.jsp.UI.adTongji_jsp._jspService(adTongji_jsp.java:158)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:71)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:477)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:728)

Root Cause

java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
	oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
	oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
	oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:255)
	oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:387)
	oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:420)
	oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)
	oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
	oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)
	java.sql.DriverManager.getConnection(DriverManager.java:582)
	java.sql.DriverManager.getConnection(DriverManager.java:185)
	org.apache.jsp.UI.adTongji_jsp._jspService(adTongji_jsp.java:118)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:71)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:477)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:728)

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


Apache Tomcat/7.0.100