DJH Jugendherberge Magdeburg

Programmdetails:

Apache Tomcat/7.0.68 (Ubuntu) - Error report

HTTP Status 500 - sql error


type Exception report

message sql error

description The server encountered an internal error that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: sql error
	de.djh.servlet.ws.WebInterface.doGet(WebInterface.java:259)
	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

org.postgresql.util.PSQLException: Connection to postgresdb:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:239)
	org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:66)
	org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connection.java:127)
	org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connection.java:29)
	org.postgresql.jdbc3g.AbstractJdbc3gConnection.<init>(AbstractJdbc3gConnection.java:21)
	org.postgresql.jdbc4.AbstractJdbc4Connection.<init>(AbstractJdbc4Connection.java:41)
	org.postgresql.jdbc4.Jdbc4Connection.<init>(Jdbc4Connection.java:24)
	org.postgresql.Driver.makeConnection(Driver.java:414)
	org.postgresql.Driver.connect(Driver.java:282)
	java.sql.DriverManager.getConnection(DriverManager.java:664)
	java.sql.DriverManager.getConnection(DriverManager.java:247)
	de.djh.util.db.StdConnFactory.createConnection(StdConnFactory.java:49)
	de.djh.util.db.ConnectionPool.createConnection(ConnectionPool.java:225)
	de.djh.servlet.ws.WebInterface.doGet(WebInterface.java:206)
	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.ConnectException: Connection refused (Connection refused)
	java.net.PlainSocketImpl.socketConnect(Native Method)
	java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
	java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
	java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
	java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
	java.net.Socket.connect(Socket.java:589)
	org.postgresql.core.PGStream.<init>(PGStream.java:61)
	org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:121)
	org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:66)
	org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connection.java:127)
	org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connection.java:29)
	org.postgresql.jdbc3g.AbstractJdbc3gConnection.<init>(AbstractJdbc3gConnection.java:21)
	org.postgresql.jdbc4.AbstractJdbc4Connection.<init>(AbstractJdbc4Connection.java:41)
	org.postgresql.jdbc4.Jdbc4Connection.<init>(Jdbc4Connection.java:24)
	org.postgresql.Driver.makeConnection(Driver.java:414)
	org.postgresql.Driver.connect(Driver.java:282)
	java.sql.DriverManager.getConnection(DriverManager.java:664)
	java.sql.DriverManager.getConnection(DriverManager.java:247)
	de.djh.util.db.StdConnFactory.createConnection(StdConnFactory.java:49)
	de.djh.util.db.ConnectionPool.createConnection(ConnectionPool.java:225)
	de.djh.servlet.ws.WebInterface.doGet(WebInterface.java:206)
	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 Apache Tomcat/7.0.68 (Ubuntu) logs.


Apache Tomcat/7.0.68 (Ubuntu)

zurück