Severe: Servlet service () for the Servlet JSP threw the exception
Java. Lang. NullPointerException
At com. Dao. BookDAO. GetAll (BookDAO. Java: 30)
The at org. Apache. JSP. Index_jsp. _jspService (index_jsp. Java: 99)
The at org. Apache. Jasper. Runtime. HttpJspBase. Service (HttpJspBase. Java: 70)
The at javax.mail. Servlet. HTTP. HttpServlet. Service (HttpServlet. Java: 803)
At org. Apache. Jasper. Servlet. JspServletWrapper. Service (393) JspServletWrapper. Java:
The at org. Apache. Jasper. Servlet. JspServlet. ServiceJspFile (JspServlet. Java: 320)
At org. Apache. Jasper. Servlet. JspServlet. Service (266) JspServlet. Java:
The at javax.mail. Servlet. HTTP. HttpServlet. Service (HttpServlet. Java: 803)
The at org. Apache. Catalina. Core. ApplicationFilterChain. InternalDoFilter (ApplicationFilterChain. Java: 290)
The at org. Apache. Catalina. Core. ApplicationFilterChain. DoFilter (ApplicationFilterChain. Java: 206)
The at org. Apache. Catalina. Core. StandardWrapperValve. Invoke (StandardWrapperValve. Java: 230)
The at org. Apache. Catalina. Core. StandardContextValve. Invoke (StandardContextValve. Java: 175)
The at org. Apache. Catalina. Core. StandardHostValve. Invoke (StandardHostValve. Java: 128)
The at org. Apache. Catalina. Valves. ErrorReportValve. Invoke (ErrorReportValve. Java: 104)
The at org. Apache. Catalina. Core. StandardEngineValve. Invoke (StandardEngineValve. Java: 109)
At org. Apache. Catalina. Connector. CoyoteAdapter. Service (261) CoyoteAdapter. Java:
The at org. Apache. Coyote. Http11. Http11Processor. Process (Http11Processor. Java: 844)
The at org. Apache. Coyote. Http11. Http11Protocol $Http11ConnectionHandler. Process (Http11Protocol. Java: 581)
At org.apache.tomcat.util.net.JIoEndpoint$Worker.run JIoEndpoint. Java: (447)
The at Java. Lang. Thread. The run (Thread. Java: 619)
The JSP code is as follows: