HTTP Status 500 – Internal Server Error


Type Exception Report

Message com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

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

Exception

javax.servlet.ServletException: com.mysql.jdbc.exceptions.jdbc4.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.
	hengfu.servlets.Nav.doGet(Nav.java:73)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:624)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

Root Cause

com.mysql.jdbc.exceptions.jdbc4.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.
	sun.reflect.GeneratedConstructorAccessor16.newInstance(Unknown Source)
	sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
	java.lang.reflect.Constructor.newInstance(Unknown Source)
	com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
	com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1117)
	com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:350)
	com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2408)
	com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2445)
	com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2230)
	com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:813)
	com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
	sun.reflect.GeneratedConstructorAccessor14.newInstance(Unknown Source)
	sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
	java.lang.reflect.Constructor.newInstance(Unknown Source)
	com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
	com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:399)
	com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:334)
	java.sql.DriverManager.getConnection(Unknown Source)
	java.sql.DriverManager.getConnection(Unknown Source)
	hengfu.persistence.DAO.getConn(DAO.java:229)
	hengfu.persistence.DAO.<init>(DAO.java:60)
	hengfu.servlets.Nav.doGet(Nav.java:36)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:624)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

Root Cause

java.net.SocketException: No buffer space available (maximum connections reached?): connect
	java.net.DualStackPlainSocketImpl.connect0(Native Method)
	java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
	java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
	java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
	java.net.AbstractPlainSocketImpl.connect(Unknown Source)
	java.net.PlainSocketImpl.connect(Unknown Source)
	java.net.SocksSocketImpl.connect(Unknown Source)
	java.net.Socket.connect(Unknown Source)
	java.net.Socket.connect(Unknown Source)
	java.net.Socket.<init>(Unknown Source)
	java.net.Socket.<init>(Unknown Source)
	com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:259)
	com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:300)
	com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2408)
	com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2445)
	com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2230)
	com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:813)
	com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
	sun.reflect.GeneratedConstructorAccessor14.newInstance(Unknown Source)
	sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
	java.lang.reflect.Constructor.newInstance(Unknown Source)
	com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
	com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:399)
	com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:334)
	java.sql.DriverManager.getConnection(Unknown Source)
	java.sql.DriverManager.getConnection(Unknown Source)
	hengfu.persistence.DAO.getConn(DAO.java:229)
	hengfu.persistence.DAO.<init>(DAO.java:60)
	hengfu.servlets.Nav.doGet(Nav.java:36)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:624)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

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


Apache Tomcat/7.0.91

網站地圖:sitemap
网站地图:sitemap