Hello. I wrote a parser program in Java. I launch it in the Intellij IDEA development environment, after the parsing is completed, the program writes all received data to the postgresql database, I close the program, check the database - new entries have appeared. I make the executable jar-file, I launch it, the program runs without errors, I close, check the database - there are no records. I tried to clear the database beforehand - nothing is recorded anyway. Which way to "dig"?

  • can you have a commitToDb() method in Watchers? try cleaning the watchers and check in through the studio - Senior Pomidor
  • Interesting. How to do it?)) - Cenzor
  • Be sure to try tomorrow and accomplish your goal, thanks. - Cenzor
  • Passed debager, I saw no such method, unfortunately. - Cenzor

1 answer 1

as an option to start the application from the command line, at least you can see errors, if there are any .. you can also add logging (at least simple prints to the console) so that the steps of running the application are visible and then it becomes clear where the plug is

  • Yes, after successfully writing to the database, the log is reflected in the GUI - Cenzor