Advertisement
MartinYanchev-99

Course work stack trace

Dec 8th, 2020
289
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. List Routes
  2. ===========
  3. Exception in thread "main" java.lang.NullPointerException: Cannot invoke "java.sql.Statement.executeQuery(String)" because "daos.SQLDAO.stmt" is null
  4. at daos.SQLDAO.getRoutes(SQLDAO.java:38)
  5. at repositories.Repository.getItems(Repository.java:19)
  6. at controllers.Controller.listRoutesToConsole(Controller.java:52)
  7. at controllers.Controller.run(Controller.java:45)
  8. at app.CyclingRoutesApp.run(CyclingRoutesApp.java:20)
  9. at app.CyclingRoutesApp.main(CyclingRoutesApp.java:28)
  10. hristinakazakova@hristinas-MacBook-Pro CyclingRoutesAppStarter %
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement