Class.forName("org.postgresql.Driver"); Connection con = DriverManager.getConnection( "jdbc:postgresql://localhost:5432/libresource", "demo","");Statement stmt = con.createStatement(); ResultSet rs = stmt.executeQuery("SELECT * FROM nodes_"); while (rs.next()) { System.out.println(rs.getString(0)); }
HTTP Status 500----type Exception reportmessagedescription The server encountered an internal error () that prevented it from fulfilling this request.exceptionjava.lang.NullPointerException
org.esupportail.cas.server.handlers.database.LSDatabaseHandler.authenticate(Unknown Source)
org.esupportail.cas.server.GenericHandler.authenticate(Unknown Source)
edu.yale.its.tp.cas.servlet.Login.doGet(Unknown Source)
edu.yale.its.tp.cas.servlet.Login.doPost(Unknown Source)
javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
sun.reflect.GeneratedMethodAccessor109.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)