Changed to Voting Mode
This commit is contained in:
520
logs/Voting.log
520
logs/Voting.log
@@ -30,3 +30,523 @@
|
|||||||
2020-12-25 22:19:32,553 INFO [http-nio-8000-exec-1] Completed initialization in 5 ms
|
2020-12-25 22:19:32,553 INFO [http-nio-8000-exec-1] Completed initialization in 5 ms
|
||||||
2020-12-25 22:19:38,615 WARN [http-nio-8000-exec-4] simon.bussmann@adolfinum.de
|
2020-12-25 22:19:38,615 WARN [http-nio-8000-exec-4] simon.bussmann@adolfinum.de
|
||||||
2020-12-25 22:19:38,633 WARN [http-nio-8000-exec-4] no code
|
2020-12-25 22:19:38,633 WARN [http-nio-8000-exec-4] no code
|
||||||
|
2020-12-27 15:08:48,591 INFO [restartedMain] Starting AbizeitungVotingSystemApplication on pop-os with PID 499 (/home/cato447/Code/AbizeitungVotingSystem/target/classes started by cato447 in /home/cato447/Code/AbizeitungVotingSystem)
|
||||||
|
2020-12-27 15:08:48,609 INFO [restartedMain] No active profile set, falling back to default profiles: default
|
||||||
|
2020-12-27 15:08:48,715 INFO [restartedMain] Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable
|
||||||
|
2020-12-27 15:08:48,716 INFO [restartedMain] For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG'
|
||||||
|
2020-12-27 15:08:49,915 INFO [restartedMain] Bootstrapping Spring Data JPA repositories in DEFAULT mode.
|
||||||
|
2020-12-27 15:08:50,001 INFO [restartedMain] Finished Spring Data repository scanning in 76ms. Found 6 JPA repository interfaces.
|
||||||
|
2020-12-27 15:08:51,012 INFO [restartedMain] Tomcat initialized with port(s): 8000 (http)
|
||||||
|
2020-12-27 15:08:51,024 INFO [restartedMain] Initializing ProtocolHandler ["http-nio-8000"]
|
||||||
|
2020-12-27 15:08:51,025 INFO [restartedMain] Starting service [Tomcat]
|
||||||
|
2020-12-27 15:08:51,026 INFO [restartedMain] Starting Servlet engine: [Apache Tomcat/9.0.38]
|
||||||
|
2020-12-27 15:08:51,121 INFO [restartedMain] Initializing Spring embedded WebApplicationContext
|
||||||
|
2020-12-27 15:08:51,121 INFO [restartedMain] Root WebApplicationContext: initialization completed in 2404 ms
|
||||||
|
2020-12-27 15:08:51,415 INFO [restartedMain] HHH000204: Processing PersistenceUnitInfo [name: default]
|
||||||
|
2020-12-27 15:08:51,462 INFO [restartedMain] HHH000412: Hibernate ORM core version 5.4.21.Final
|
||||||
|
2020-12-27 15:08:51,605 INFO [restartedMain] HCANN000001: Hibernate Commons Annotations {5.1.0.Final}
|
||||||
|
2020-12-27 15:08:51,739 INFO [restartedMain] HikariPool-1 - Starting...
|
||||||
|
2020-12-27 15:08:52,266 INFO [restartedMain] HikariPool-1 - Start completed.
|
||||||
|
2020-12-27 15:08:52,296 INFO [restartedMain] HHH000400: Using dialect: org.hibernate.dialect.MySQL8Dialect
|
||||||
|
2020-12-27 15:08:53,345 INFO [restartedMain] HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
|
||||||
|
2020-12-27 15:08:53,356 INFO [restartedMain] Initialized JPA EntityManagerFactory for persistence unit 'default'
|
||||||
|
2020-12-27 15:08:53,376 INFO [restartedMain] LiveReload server is running on port 35729
|
||||||
|
2020-12-27 15:08:54,032 INFO [restartedMain] Program started with arguments: votingPhase=true mottoPhase=false addingPhase=false
|
||||||
|
2020-12-27 15:08:55,955 INFO [restartedMain] Candidates successfully set up
|
||||||
|
2020-12-27 15:08:56,020 WARN [restartedMain] spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
|
||||||
|
2020-12-27 15:08:56,200 INFO [restartedMain] Initializing ExecutorService 'applicationTaskExecutor'
|
||||||
|
2020-12-27 15:08:56,540 INFO [restartedMain] Starting ProtocolHandler ["http-nio-8000"]
|
||||||
|
2020-12-27 15:08:56,557 INFO [restartedMain] Tomcat started on port(s): 8000 (http) with context path ''
|
||||||
|
2020-12-27 15:08:56,570 INFO [restartedMain] Started AbizeitungVotingSystemApplication in 9.068 seconds (JVM running for 11.127)
|
||||||
|
2020-12-27 15:14:44,409 INFO [SpringContextShutdownHook] Shutting down ExecutorService 'applicationTaskExecutor'
|
||||||
|
2020-12-27 15:14:44,420 INFO [SpringContextShutdownHook] Closing JPA EntityManagerFactory for persistence unit 'default'
|
||||||
|
2020-12-27 15:14:44,428 INFO [SpringContextShutdownHook] HikariPool-1 - Shutdown initiated...
|
||||||
|
2020-12-27 15:14:44,465 INFO [SpringContextShutdownHook] HikariPool-1 - Shutdown completed.
|
||||||
|
2020-12-27 15:14:50,245 INFO [restartedMain] Starting AbizeitungVotingSystemApplication on pop-os with PID 607 (/home/cato447/Code/AbizeitungVotingSystem/target/classes started by cato447 in /home/cato447/Code/AbizeitungVotingSystem)
|
||||||
|
2020-12-27 15:14:50,280 INFO [restartedMain] No active profile set, falling back to default profiles: default
|
||||||
|
2020-12-27 15:14:50,655 INFO [restartedMain] Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable
|
||||||
|
2020-12-27 15:14:50,656 INFO [restartedMain] For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG'
|
||||||
|
2020-12-27 15:14:51,579 INFO [restartedMain] Bootstrapping Spring Data JPA repositories in DEFAULT mode.
|
||||||
|
2020-12-27 15:14:51,677 INFO [restartedMain] Finished Spring Data repository scanning in 87ms. Found 6 JPA repository interfaces.
|
||||||
|
2020-12-27 15:14:53,099 INFO [restartedMain] Tomcat initialized with port(s): 8000 (http)
|
||||||
|
2020-12-27 15:14:53,124 INFO [restartedMain] Initializing ProtocolHandler ["http-nio-8000"]
|
||||||
|
2020-12-27 15:14:53,125 INFO [restartedMain] Starting service [Tomcat]
|
||||||
|
2020-12-27 15:14:53,126 INFO [restartedMain] Starting Servlet engine: [Apache Tomcat/9.0.38]
|
||||||
|
2020-12-27 15:14:53,312 INFO [restartedMain] Initializing Spring embedded WebApplicationContext
|
||||||
|
2020-12-27 15:14:53,315 INFO [restartedMain] Root WebApplicationContext: initialization completed in 2653 ms
|
||||||
|
2020-12-27 15:14:53,990 INFO [restartedMain] HHH000204: Processing PersistenceUnitInfo [name: default]
|
||||||
|
2020-12-27 15:14:54,071 INFO [restartedMain] HHH000412: Hibernate ORM core version 5.4.21.Final
|
||||||
|
2020-12-27 15:14:54,259 INFO [restartedMain] HCANN000001: Hibernate Commons Annotations {5.1.0.Final}
|
||||||
|
2020-12-27 15:14:54,427 INFO [restartedMain] HikariPool-1 - Starting...
|
||||||
|
2020-12-27 15:14:55,137 INFO [restartedMain] HikariPool-1 - Start completed.
|
||||||
|
2020-12-27 15:14:55,202 INFO [restartedMain] HHH000400: Using dialect: org.hibernate.dialect.MySQL8Dialect
|
||||||
|
2020-12-27 15:14:56,576 INFO [restartedMain] HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
|
||||||
|
2020-12-27 15:14:56,584 INFO [restartedMain] Initialized JPA EntityManagerFactory for persistence unit 'default'
|
||||||
|
2020-12-27 15:14:56,604 INFO [restartedMain] LiveReload server is running on port 35729
|
||||||
|
2020-12-27 15:14:57,417 INFO [restartedMain] Program started with arguments: votingPhase=true mottoPhase=false addingPhase=false
|
||||||
|
2020-12-27 15:14:59,544 INFO [restartedMain] Candidates successfully set up
|
||||||
|
2020-12-27 15:14:59,686 WARN [restartedMain] spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
|
||||||
|
2020-12-27 15:14:59,929 INFO [restartedMain] Initializing ExecutorService 'applicationTaskExecutor'
|
||||||
|
2020-12-27 15:15:00,307 INFO [restartedMain] Starting ProtocolHandler ["http-nio-8000"]
|
||||||
|
2020-12-27 15:15:00,365 INFO [restartedMain] Tomcat started on port(s): 8000 (http) with context path ''
|
||||||
|
2020-12-27 15:15:00,387 INFO [restartedMain] Started AbizeitungVotingSystemApplication in 11.265 seconds (JVM running for 13.531)
|
||||||
|
2020-12-27 15:15:21,409 INFO [http-nio-8000-exec-2] Initializing Spring DispatcherServlet 'dispatcherServlet'
|
||||||
|
2020-12-27 15:15:21,411 INFO [http-nio-8000-exec-2] Initializing Servlet 'dispatcherServlet'
|
||||||
|
2020-12-27 15:15:21,431 INFO [http-nio-8000-exec-2] Completed initialization in 19 ms
|
||||||
|
2020-12-27 15:15:29,756 WARN [http-nio-8000-exec-4] simon.bussmann@adolfinum.de
|
||||||
|
2020-12-27 15:15:29,844 WARN [http-nio-8000-exec-4] no code
|
||||||
|
2020-12-27 15:16:03,687 WARN [http-nio-8000-exec-6] 043136
|
||||||
|
2020-12-27 15:16:03,690 WARN [http-nio-8000-exec-6] matched
|
||||||
|
2020-12-27 15:16:04,724 INFO [SpringContextShutdownHook] Shutting down ExecutorService 'applicationTaskExecutor'
|
||||||
|
2020-12-27 15:16:04,731 INFO [SpringContextShutdownHook] Closing JPA EntityManagerFactory for persistence unit 'default'
|
||||||
|
2020-12-27 15:16:04,739 INFO [SpringContextShutdownHook] HikariPool-1 - Shutdown initiated...
|
||||||
|
2020-12-27 15:16:04,758 INFO [SpringContextShutdownHook] HikariPool-1 - Shutdown completed.
|
||||||
|
2020-12-27 15:18:47,164 INFO [restartedMain] Starting AbizeitungVotingSystemApplication on pop-os with PID 279 (/home/cato447/Code/AbizeitungVotingSystem/target/classes started by cato447 in /home/cato447/Code/AbizeitungVotingSystem)
|
||||||
|
2020-12-27 15:18:47,177 INFO [restartedMain] No active profile set, falling back to default profiles: default
|
||||||
|
2020-12-27 15:18:47,354 INFO [restartedMain] Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable
|
||||||
|
2020-12-27 15:18:47,371 INFO [restartedMain] For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG'
|
||||||
|
2020-12-27 15:18:49,211 INFO [restartedMain] Bootstrapping Spring Data JPA repositories in DEFAULT mode.
|
||||||
|
2020-12-27 15:18:49,589 INFO [restartedMain] Finished Spring Data repository scanning in 342ms. Found 6 JPA repository interfaces.
|
||||||
|
2020-12-27 15:18:53,050 INFO [restartedMain] Tomcat initialized with port(s): 8000 (http)
|
||||||
|
2020-12-27 15:18:53,108 INFO [restartedMain] Initializing ProtocolHandler ["http-nio-8000"]
|
||||||
|
2020-12-27 15:18:53,111 INFO [restartedMain] Starting service [Tomcat]
|
||||||
|
2020-12-27 15:18:53,113 INFO [restartedMain] Starting Servlet engine: [Apache Tomcat/9.0.38]
|
||||||
|
2020-12-27 15:18:53,395 INFO [restartedMain] Initializing Spring embedded WebApplicationContext
|
||||||
|
2020-12-27 15:18:53,396 INFO [restartedMain] Root WebApplicationContext: initialization completed in 6020 ms
|
||||||
|
2020-12-27 15:18:54,166 INFO [restartedMain] HHH000204: Processing PersistenceUnitInfo [name: default]
|
||||||
|
2020-12-27 15:18:54,326 INFO [restartedMain] HHH000412: Hibernate ORM core version 5.4.21.Final
|
||||||
|
2020-12-27 15:18:54,693 INFO [restartedMain] HCANN000001: Hibernate Commons Annotations {5.1.0.Final}
|
||||||
|
2020-12-27 15:18:54,885 INFO [restartedMain] HikariPool-1 - Starting...
|
||||||
|
2020-12-27 15:18:56,237 INFO [restartedMain] HikariPool-1 - Start completed.
|
||||||
|
2020-12-27 15:18:56,313 INFO [restartedMain] HHH000400: Using dialect: org.hibernate.dialect.MySQL8Dialect
|
||||||
|
2020-12-27 15:18:59,089 INFO [restartedMain] HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
|
||||||
|
2020-12-27 15:18:59,120 INFO [restartedMain] Initialized JPA EntityManagerFactory for persistence unit 'default'
|
||||||
|
2020-12-27 15:18:59,214 INFO [restartedMain] LiveReload server is running on port 35729
|
||||||
|
2020-12-27 15:19:01,220 INFO [restartedMain] Program started with arguments: votingPhase=true mottoPhase=false addingPhase=false
|
||||||
|
2020-12-27 15:19:02,101 WARN [restartedMain] spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
|
||||||
|
2020-12-27 15:19:02,501 INFO [restartedMain] Initializing ExecutorService 'applicationTaskExecutor'
|
||||||
|
2020-12-27 15:19:03,339 INFO [restartedMain] Starting ProtocolHandler ["http-nio-8000"]
|
||||||
|
2020-12-27 15:19:03,553 INFO [restartedMain] Tomcat started on port(s): 8000 (http) with context path ''
|
||||||
|
2020-12-27 15:19:03,604 INFO [restartedMain] Started AbizeitungVotingSystemApplication in 17.908 seconds (JVM running for 20.098)
|
||||||
|
2020-12-27 15:19:07,549 INFO [http-nio-8000-exec-1] Initializing Spring DispatcherServlet 'dispatcherServlet'
|
||||||
|
2020-12-27 15:19:07,551 INFO [http-nio-8000-exec-1] Initializing Servlet 'dispatcherServlet'
|
||||||
|
2020-12-27 15:19:07,564 INFO [http-nio-8000-exec-1] Completed initialization in 12 ms
|
||||||
|
2020-12-27 15:19:07,609 WARN [http-nio-8000-exec-1] Resolved [org.springframework.web.bind.MissingServletRequestParameterException: Required String parameter 'name' is not present]
|
||||||
|
2020-12-27 15:19:13,416 WARN [http-nio-8000-exec-5] simon.bussmann@adolfinum.de
|
||||||
|
2020-12-27 15:19:13,450 WARN [http-nio-8000-exec-5] no code
|
||||||
|
2020-12-27 15:19:27,768 WARN [http-nio-8000-exec-7] 055572
|
||||||
|
2020-12-27 15:19:27,768 WARN [http-nio-8000-exec-7] matched
|
||||||
|
2020-12-27 15:26:16,893 ERROR [http-nio-8000-exec-1] [THYMELEAF][http-nio-8000-exec-1] Exception processing template "errors/alreadySubmitted.html": Error resolving template [errors/alreadySubmitted.html], template might not exist or might not be accessible by any of the configured Template Resolvers
|
||||||
|
org.thymeleaf.exceptions.TemplateInputException: Error resolving template [errors/alreadySubmitted.html], template might not exist or might not be accessible by any of the configured Template Resolvers
|
||||||
|
at org.thymeleaf.engine.TemplateManager.resolveTemplate(TemplateManager.java:869)
|
||||||
|
at org.thymeleaf.engine.TemplateManager.parseAndProcess(TemplateManager.java:607)
|
||||||
|
at org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1098)
|
||||||
|
at org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1072)
|
||||||
|
at org.thymeleaf.spring5.view.ThymeleafView.renderFragment(ThymeleafView.java:362)
|
||||||
|
at org.thymeleaf.spring5.view.ThymeleafView.render(ThymeleafView.java:189)
|
||||||
|
at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1373)
|
||||||
|
at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1118)
|
||||||
|
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1057)
|
||||||
|
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943)
|
||||||
|
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
|
||||||
|
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)
|
||||||
|
at javax.servlet.http.HttpServlet.service(HttpServlet.java:652)
|
||||||
|
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
|
||||||
|
at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
|
||||||
|
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
|
||||||
|
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
|
||||||
|
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
|
||||||
|
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
|
||||||
|
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
|
||||||
|
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
|
||||||
|
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
|
||||||
|
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
|
||||||
|
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
|
||||||
|
at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
|
||||||
|
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
|
||||||
|
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
|
||||||
|
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
|
||||||
|
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
|
||||||
|
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
|
||||||
|
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
|
||||||
|
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
|
||||||
|
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
|
||||||
|
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
|
||||||
|
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
|
||||||
|
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:143)
|
||||||
|
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
|
||||||
|
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
|
||||||
|
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
|
||||||
|
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:374)
|
||||||
|
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
|
||||||
|
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
|
||||||
|
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1590)
|
||||||
|
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
|
||||||
|
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
|
||||||
|
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
|
||||||
|
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
|
||||||
|
at java.base/java.lang.Thread.run(Thread.java:829)
|
||||||
|
2020-12-27 15:26:16,898 ERROR [http-nio-8000-exec-1] Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.thymeleaf.exceptions.TemplateInputException: Error resolving template [errors/alreadySubmitted.html], template might not exist or might not be accessible by any of the configured Template Resolvers] with root cause
|
||||||
|
org.thymeleaf.exceptions.TemplateInputException: Error resolving template [errors/alreadySubmitted.html], template might not exist or might not be accessible by any of the configured Template Resolvers
|
||||||
|
at org.thymeleaf.engine.TemplateManager.resolveTemplate(TemplateManager.java:869)
|
||||||
|
at org.thymeleaf.engine.TemplateManager.parseAndProcess(TemplateManager.java:607)
|
||||||
|
at org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1098)
|
||||||
|
at org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1072)
|
||||||
|
at org.thymeleaf.spring5.view.ThymeleafView.renderFragment(ThymeleafView.java:362)
|
||||||
|
at org.thymeleaf.spring5.view.ThymeleafView.render(ThymeleafView.java:189)
|
||||||
|
at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1373)
|
||||||
|
at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1118)
|
||||||
|
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1057)
|
||||||
|
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943)
|
||||||
|
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
|
||||||
|
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)
|
||||||
|
at javax.servlet.http.HttpServlet.service(HttpServlet.java:652)
|
||||||
|
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
|
||||||
|
at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
|
||||||
|
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
|
||||||
|
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
|
||||||
|
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
|
||||||
|
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
|
||||||
|
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
|
||||||
|
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
|
||||||
|
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
|
||||||
|
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
|
||||||
|
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
|
||||||
|
at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
|
||||||
|
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
|
||||||
|
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
|
||||||
|
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
|
||||||
|
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
|
||||||
|
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
|
||||||
|
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
|
||||||
|
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
|
||||||
|
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
|
||||||
|
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
|
||||||
|
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
|
||||||
|
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:143)
|
||||||
|
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
|
||||||
|
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
|
||||||
|
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
|
||||||
|
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:374)
|
||||||
|
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
|
||||||
|
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
|
||||||
|
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1590)
|
||||||
|
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
|
||||||
|
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
|
||||||
|
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
|
||||||
|
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
|
||||||
|
at java.base/java.lang.Thread.run(Thread.java:829)
|
||||||
|
2020-12-27 15:32:09,183 INFO [SpringContextShutdownHook] Shutting down ExecutorService 'applicationTaskExecutor'
|
||||||
|
2020-12-27 15:32:09,192 INFO [SpringContextShutdownHook] Closing JPA EntityManagerFactory for persistence unit 'default'
|
||||||
|
2020-12-27 15:32:09,200 INFO [SpringContextShutdownHook] HikariPool-1 - Shutdown initiated...
|
||||||
|
2020-12-27 15:32:09,242 INFO [SpringContextShutdownHook] HikariPool-1 - Shutdown completed.
|
||||||
|
2020-12-27 15:32:15,896 INFO [restartedMain] Starting AbizeitungVotingSystemApplication on pop-os with PID 408 (/home/cato447/Code/AbizeitungVotingSystem/target/classes started by cato447 in /home/cato447/Code/AbizeitungVotingSystem)
|
||||||
|
2020-12-27 15:32:15,905 INFO [restartedMain] No active profile set, falling back to default profiles: default
|
||||||
|
2020-12-27 15:32:16,122 INFO [restartedMain] Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable
|
||||||
|
2020-12-27 15:32:16,122 INFO [restartedMain] For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG'
|
||||||
|
2020-12-27 15:32:16,950 INFO [restartedMain] Bootstrapping Spring Data JPA repositories in DEFAULT mode.
|
||||||
|
2020-12-27 15:32:17,038 INFO [restartedMain] Finished Spring Data repository scanning in 76ms. Found 6 JPA repository interfaces.
|
||||||
|
2020-12-27 15:32:18,083 INFO [restartedMain] Tomcat initialized with port(s): 8000 (http)
|
||||||
|
2020-12-27 15:32:18,100 INFO [restartedMain] Initializing ProtocolHandler ["http-nio-8000"]
|
||||||
|
2020-12-27 15:32:18,100 INFO [restartedMain] Starting service [Tomcat]
|
||||||
|
2020-12-27 15:32:18,103 INFO [restartedMain] Starting Servlet engine: [Apache Tomcat/9.0.38]
|
||||||
|
2020-12-27 15:32:18,208 INFO [restartedMain] Initializing Spring embedded WebApplicationContext
|
||||||
|
2020-12-27 15:32:18,211 INFO [restartedMain] Root WebApplicationContext: initialization completed in 2088 ms
|
||||||
|
2020-12-27 15:32:18,680 INFO [restartedMain] HHH000204: Processing PersistenceUnitInfo [name: default]
|
||||||
|
2020-12-27 15:32:18,740 INFO [restartedMain] HHH000412: Hibernate ORM core version 5.4.21.Final
|
||||||
|
2020-12-27 15:32:18,915 INFO [restartedMain] HCANN000001: Hibernate Commons Annotations {5.1.0.Final}
|
||||||
|
2020-12-27 15:32:19,056 INFO [restartedMain] HikariPool-1 - Starting...
|
||||||
|
2020-12-27 15:32:19,584 INFO [restartedMain] HikariPool-1 - Start completed.
|
||||||
|
2020-12-27 15:32:19,615 INFO [restartedMain] HHH000400: Using dialect: org.hibernate.dialect.MySQL8Dialect
|
||||||
|
2020-12-27 15:32:20,702 INFO [restartedMain] HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
|
||||||
|
2020-12-27 15:32:20,710 INFO [restartedMain] Initialized JPA EntityManagerFactory for persistence unit 'default'
|
||||||
|
2020-12-27 15:32:20,726 INFO [restartedMain] LiveReload server is running on port 35729
|
||||||
|
2020-12-27 15:32:21,348 INFO [restartedMain] Program started with arguments: votingPhase=true mottoPhase=false addingPhase=false
|
||||||
|
2020-12-27 15:32:21,761 WARN [restartedMain] spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
|
||||||
|
2020-12-27 15:32:21,927 INFO [restartedMain] Initializing ExecutorService 'applicationTaskExecutor'
|
||||||
|
2020-12-27 15:32:22,274 INFO [restartedMain] Starting ProtocolHandler ["http-nio-8000"]
|
||||||
|
2020-12-27 15:32:22,295 INFO [restartedMain] Tomcat started on port(s): 8000 (http) with context path ''
|
||||||
|
2020-12-27 15:32:22,342 INFO [restartedMain] Started AbizeitungVotingSystemApplication in 7.209 seconds (JVM running for 8.852)
|
||||||
|
2020-12-27 15:32:30,157 INFO [http-nio-8000-exec-1] Initializing Spring DispatcherServlet 'dispatcherServlet'
|
||||||
|
2020-12-27 15:32:30,157 INFO [http-nio-8000-exec-1] Initializing Servlet 'dispatcherServlet'
|
||||||
|
2020-12-27 15:32:30,167 INFO [http-nio-8000-exec-1] Completed initialization in 9 ms
|
||||||
|
2020-12-27 15:32:30,208 WARN [http-nio-8000-exec-1] simon.bussmann@adolfinum.de
|
||||||
|
2020-12-27 15:32:45,593 WARN [http-nio-8000-exec-3] matched
|
||||||
|
2020-12-27 15:33:04,346 INFO [http-nio-8000-exec-5] simon.bussmann@adolfinum.de has voted!
|
||||||
|
2020-12-27 15:42:09,024 WARN [http-nio-8000-exec-4] simon.bussmann@adolfinum.de
|
||||||
|
2020-12-27 15:43:12,716 WARN [http-nio-8000-exec-6] matched
|
||||||
|
2020-12-27 15:45:26,761 INFO [http-nio-8000-exec-10] simon.bussmann@adolfinum.de has voted!
|
||||||
|
2020-12-27 15:45:38,299 WARN [http-nio-8000-exec-3] simon.bussmann@adolfinum.de
|
||||||
|
2020-12-27 15:45:38,318 WARN [http-nio-8000-exec-3] simon.bussmann@adolfinum.de has already voted
|
||||||
|
2020-12-27 15:51:11,973 INFO [SpringContextShutdownHook] Shutting down ExecutorService 'applicationTaskExecutor'
|
||||||
|
2020-12-27 15:51:11,976 INFO [SpringContextShutdownHook] Closing JPA EntityManagerFactory for persistence unit 'default'
|
||||||
|
2020-12-27 15:51:11,982 INFO [SpringContextShutdownHook] HikariPool-1 - Shutdown initiated...
|
||||||
|
2020-12-27 15:51:12,010 INFO [SpringContextShutdownHook] HikariPool-1 - Shutdown completed.
|
||||||
|
2020-12-27 18:24:32,096 INFO [restartedMain] Starting AbizeitungVotingSystemApplication on pop-os with PID 269 (/home/cato447/Code/AbizeitungVotingSystem/target/classes started by cato447 in /home/cato447/Code/AbizeitungVotingSystem)
|
||||||
|
2020-12-27 18:24:32,111 INFO [restartedMain] No active profile set, falling back to default profiles: default
|
||||||
|
2020-12-27 18:24:32,311 INFO [restartedMain] Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable
|
||||||
|
2020-12-27 18:24:32,313 INFO [restartedMain] For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG'
|
||||||
|
2020-12-27 18:24:33,316 INFO [restartedMain] Bootstrapping Spring Data JPA repositories in DEFAULT mode.
|
||||||
|
2020-12-27 18:24:33,422 INFO [restartedMain] Finished Spring Data repository scanning in 91ms. Found 6 JPA repository interfaces.
|
||||||
|
2020-12-27 18:24:34,802 INFO [restartedMain] Tomcat initialized with port(s): 8000 (http)
|
||||||
|
2020-12-27 18:24:34,821 INFO [restartedMain] Initializing ProtocolHandler ["http-nio-8000"]
|
||||||
|
2020-12-27 18:24:34,823 INFO [restartedMain] Starting service [Tomcat]
|
||||||
|
2020-12-27 18:24:34,824 INFO [restartedMain] Starting Servlet engine: [Apache Tomcat/9.0.38]
|
||||||
|
2020-12-27 18:24:34,970 INFO [restartedMain] Initializing Spring embedded WebApplicationContext
|
||||||
|
2020-12-27 18:24:34,972 INFO [restartedMain] Root WebApplicationContext: initialization completed in 2657 ms
|
||||||
|
2020-12-27 18:24:35,532 INFO [restartedMain] HHH000204: Processing PersistenceUnitInfo [name: default]
|
||||||
|
2020-12-27 18:24:35,613 INFO [restartedMain] HHH000412: Hibernate ORM core version 5.4.21.Final
|
||||||
|
2020-12-27 18:24:35,858 INFO [restartedMain] HCANN000001: Hibernate Commons Annotations {5.1.0.Final}
|
||||||
|
2020-12-27 18:24:36,008 INFO [restartedMain] HikariPool-1 - Starting...
|
||||||
|
2020-12-27 18:24:37,017 INFO [restartedMain] HikariPool-1 - Start completed.
|
||||||
|
2020-12-27 18:24:37,067 INFO [restartedMain] HHH000400: Using dialect: org.hibernate.dialect.MySQL8Dialect
|
||||||
|
2020-12-27 18:24:38,460 INFO [restartedMain] HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
|
||||||
|
2020-12-27 18:24:38,471 INFO [restartedMain] Initialized JPA EntityManagerFactory for persistence unit 'default'
|
||||||
|
2020-12-27 18:24:38,495 INFO [restartedMain] LiveReload server is running on port 35729
|
||||||
|
2020-12-27 18:24:39,287 INFO [restartedMain] Program started with arguments: votingPhase=true mottoPhase=false addingPhase=false
|
||||||
|
2020-12-27 18:24:39,798 WARN [restartedMain] spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
|
||||||
|
2020-12-27 18:24:40,037 INFO [restartedMain] Initializing ExecutorService 'applicationTaskExecutor'
|
||||||
|
2020-12-27 18:24:40,447 INFO [restartedMain] Starting ProtocolHandler ["http-nio-8000"]
|
||||||
|
2020-12-27 18:24:40,483 INFO [restartedMain] Tomcat started on port(s): 8000 (http) with context path ''
|
||||||
|
2020-12-27 18:24:40,504 INFO [restartedMain] Started AbizeitungVotingSystemApplication in 9.509 seconds (JVM running for 11.824)
|
||||||
|
2020-12-27 18:31:34,632 INFO [http-nio-8000-exec-1] Initializing Spring DispatcherServlet 'dispatcherServlet'
|
||||||
|
2020-12-27 18:31:34,636 INFO [http-nio-8000-exec-1] Initializing Servlet 'dispatcherServlet'
|
||||||
|
2020-12-27 18:31:34,654 INFO [http-nio-8000-exec-1] Completed initialization in 17 ms
|
||||||
|
2020-12-27 18:31:46,366 WARN [http-nio-8000-exec-5] simon.bussmann@adolfinum.de
|
||||||
|
2020-12-27 18:31:46,419 WARN [http-nio-8000-exec-5] simon.bussmann@adolfinum.de has already voted
|
||||||
|
2020-12-27 18:32:34,478 WARN [http-nio-8000-exec-8] simon.bussmann@adolfinum.de
|
||||||
|
2020-12-27 18:33:15,577 WARN [http-nio-8000-exec-10] matched
|
||||||
|
2020-12-27 18:33:28,222 WARN [http-nio-8000-exec-5] simon.bussmann@adolfinum.de
|
||||||
|
2020-12-27 18:33:39,781 WARN [http-nio-8000-exec-6] matched
|
||||||
|
2020-12-27 19:12:07,708 WARN [http-nio-8000-exec-2] simon.bussmann@adolfinum.de
|
||||||
|
2020-12-27 19:12:24,036 WARN [http-nio-8000-exec-5] matched
|
||||||
|
2020-12-27 19:13:23,934 INFO [http-nio-8000-exec-7] simon.bussmann@adolfinum.de has voted!
|
||||||
|
2020-12-27 19:15:03,595 WARN [http-nio-8000-exec-2] simon.bussmann@adolfinum.de
|
||||||
|
2020-12-27 19:15:03,599 WARN [http-nio-8000-exec-2] simon.bussmann@adolfinum.de has already voted
|
||||||
|
2020-12-27 19:19:30,112 INFO [SpringContextShutdownHook] Shutting down ExecutorService 'applicationTaskExecutor'
|
||||||
|
2020-12-27 19:19:30,115 INFO [SpringContextShutdownHook] Closing JPA EntityManagerFactory for persistence unit 'default'
|
||||||
|
2020-12-27 19:19:30,134 INFO [SpringContextShutdownHook] HikariPool-1 - Shutdown initiated...
|
||||||
|
2020-12-27 19:19:30,179 INFO [SpringContextShutdownHook] HikariPool-1 - Shutdown completed.
|
||||||
|
2020-12-27 22:15:52,037 INFO [restartedMain] Starting AbizeitungVotingSystemApplication on pop-os with PID 242 (/home/cato447/Code/AbizeitungVotingSystem/target/classes started by cato447 in /home/cato447/Code/AbizeitungVotingSystem)
|
||||||
|
2020-12-27 22:15:52,046 INFO [restartedMain] No active profile set, falling back to default profiles: default
|
||||||
|
2020-12-27 22:15:52,328 INFO [restartedMain] Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable
|
||||||
|
2020-12-27 22:15:52,330 INFO [restartedMain] For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG'
|
||||||
|
2020-12-27 22:15:53,809 INFO [restartedMain] Bootstrapping Spring Data JPA repositories in DEFAULT mode.
|
||||||
|
2020-12-27 22:15:54,013 INFO [restartedMain] Finished Spring Data repository scanning in 180ms. Found 6 JPA repository interfaces.
|
||||||
|
2020-12-27 22:15:57,013 INFO [restartedMain] Tomcat initialized with port(s): 8000 (http)
|
||||||
|
2020-12-27 22:15:57,081 INFO [restartedMain] Initializing ProtocolHandler ["http-nio-8000"]
|
||||||
|
2020-12-27 22:15:57,085 INFO [restartedMain] Starting service [Tomcat]
|
||||||
|
2020-12-27 22:15:57,093 INFO [restartedMain] Starting Servlet engine: [Apache Tomcat/9.0.38]
|
||||||
|
2020-12-27 22:15:57,349 INFO [restartedMain] Initializing Spring embedded WebApplicationContext
|
||||||
|
2020-12-27 22:15:57,360 INFO [restartedMain] Root WebApplicationContext: initialization completed in 5029 ms
|
||||||
|
2020-12-27 22:15:58,121 INFO [restartedMain] HHH000204: Processing PersistenceUnitInfo [name: default]
|
||||||
|
2020-12-27 22:15:58,345 INFO [restartedMain] HHH000412: Hibernate ORM core version 5.4.21.Final
|
||||||
|
2020-12-27 22:15:58,753 INFO [restartedMain] HCANN000001: Hibernate Commons Annotations {5.1.0.Final}
|
||||||
|
2020-12-27 22:15:59,040 INFO [restartedMain] HikariPool-1 - Starting...
|
||||||
|
2020-12-27 22:16:00,382 INFO [restartedMain] HikariPool-1 - Start completed.
|
||||||
|
2020-12-27 22:16:00,501 INFO [restartedMain] HHH000400: Using dialect: org.hibernate.dialect.MySQL8Dialect
|
||||||
|
2020-12-27 22:16:03,129 INFO [restartedMain] HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
|
||||||
|
2020-12-27 22:16:03,150 INFO [restartedMain] Initialized JPA EntityManagerFactory for persistence unit 'default'
|
||||||
|
2020-12-27 22:16:03,255 INFO [restartedMain] LiveReload server is running on port 35729
|
||||||
|
2020-12-27 22:16:04,895 INFO [restartedMain] Program started with arguments: votingPhase=true mottoPhase=false addingPhase=false
|
||||||
|
2020-12-27 22:16:06,029 WARN [restartedMain] spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
|
||||||
|
2020-12-27 22:16:06,565 INFO [restartedMain] Initializing ExecutorService 'applicationTaskExecutor'
|
||||||
|
2020-12-27 22:16:07,479 INFO [restartedMain] Starting ProtocolHandler ["http-nio-8000"]
|
||||||
|
2020-12-27 22:16:07,730 INFO [restartedMain] Tomcat started on port(s): 8000 (http) with context path ''
|
||||||
|
2020-12-27 22:16:07,790 INFO [restartedMain] Started AbizeitungVotingSystemApplication in 17.457 seconds (JVM running for 19.857)
|
||||||
|
2020-12-27 22:16:48,900 INFO [http-nio-8000-exec-1] Initializing Spring DispatcherServlet 'dispatcherServlet'
|
||||||
|
2020-12-27 22:16:48,903 INFO [http-nio-8000-exec-1] Initializing Servlet 'dispatcherServlet'
|
||||||
|
2020-12-27 22:16:48,921 INFO [http-nio-8000-exec-1] Completed initialization in 17 ms
|
||||||
|
2020-12-27 22:17:04,014 WARN [http-nio-8000-exec-4] simon.bussmann@adolfinum.de
|
||||||
|
2020-12-27 22:17:04,111 WARN [http-nio-8000-exec-4] simon.bussmann@adolfinum.de has already voted
|
||||||
|
2020-12-27 22:18:44,172 WARN [http-nio-8000-exec-9] simon.bussmann@adolfinum.de
|
||||||
|
2020-12-27 22:19:04,880 WARN [http-nio-8000-exec-1] matched
|
||||||
|
2020-12-27 22:19:29,043 ERROR [http-nio-8000-exec-3] Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.NumberFormatException: For input string: ""] with root cause
|
||||||
|
java.lang.NumberFormatException: For input string: ""
|
||||||
|
at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
|
||||||
|
at java.base/java.lang.Long.parseLong(Long.java:702)
|
||||||
|
at java.base/java.lang.Long.valueOf(Long.java:1144)
|
||||||
|
at com.github.cato447.AbizeitungVotingSystem.table.TableAction.voteForCandidate(TableAction.java:83)
|
||||||
|
at com.github.cato447.AbizeitungVotingSystem.controller.VotingController.ProcessVote(VotingController.java:240)
|
||||||
|
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
||||||
|
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
|
||||||
|
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
||||||
|
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
|
||||||
|
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190)
|
||||||
|
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138)
|
||||||
|
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:105)
|
||||||
|
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:878)
|
||||||
|
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:792)
|
||||||
|
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
|
||||||
|
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1040)
|
||||||
|
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943)
|
||||||
|
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
|
||||||
|
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)
|
||||||
|
at javax.servlet.http.HttpServlet.service(HttpServlet.java:652)
|
||||||
|
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
|
||||||
|
at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
|
||||||
|
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
|
||||||
|
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
|
||||||
|
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
|
||||||
|
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
|
||||||
|
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
|
||||||
|
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
|
||||||
|
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
|
||||||
|
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
|
||||||
|
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
|
||||||
|
at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
|
||||||
|
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
|
||||||
|
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
|
||||||
|
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
|
||||||
|
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
|
||||||
|
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
|
||||||
|
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
|
||||||
|
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
|
||||||
|
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
|
||||||
|
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
|
||||||
|
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
|
||||||
|
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:143)
|
||||||
|
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
|
||||||
|
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
|
||||||
|
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
|
||||||
|
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:374)
|
||||||
|
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
|
||||||
|
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
|
||||||
|
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1590)
|
||||||
|
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
|
||||||
|
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
|
||||||
|
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
|
||||||
|
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
|
||||||
|
at java.base/java.lang.Thread.run(Thread.java:829)
|
||||||
|
2020-12-27 22:20:35,649 WARN [http-nio-8000-exec-8] simon.bussmann@adolfinum.de
|
||||||
|
2020-12-27 22:20:59,072 WARN [http-nio-8000-exec-10] matched
|
||||||
|
2020-12-27 22:21:14,418 ERROR [http-nio-8000-exec-1] Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.NumberFormatException: For input string: ""] with root cause
|
||||||
|
java.lang.NumberFormatException: For input string: ""
|
||||||
|
at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
|
||||||
|
at java.base/java.lang.Long.parseLong(Long.java:702)
|
||||||
|
at java.base/java.lang.Long.valueOf(Long.java:1144)
|
||||||
|
at com.github.cato447.AbizeitungVotingSystem.table.TableAction.voteForCandidate(TableAction.java:83)
|
||||||
|
at com.github.cato447.AbizeitungVotingSystem.controller.VotingController.ProcessVote(VotingController.java:240)
|
||||||
|
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
||||||
|
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
|
||||||
|
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
||||||
|
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
|
||||||
|
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190)
|
||||||
|
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138)
|
||||||
|
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:105)
|
||||||
|
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:878)
|
||||||
|
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:792)
|
||||||
|
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
|
||||||
|
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1040)
|
||||||
|
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943)
|
||||||
|
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
|
||||||
|
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)
|
||||||
|
at javax.servlet.http.HttpServlet.service(HttpServlet.java:652)
|
||||||
|
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
|
||||||
|
at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
|
||||||
|
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
|
||||||
|
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
|
||||||
|
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
|
||||||
|
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
|
||||||
|
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
|
||||||
|
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
|
||||||
|
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
|
||||||
|
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
|
||||||
|
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
|
||||||
|
at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
|
||||||
|
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
|
||||||
|
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
|
||||||
|
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
|
||||||
|
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
|
||||||
|
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
|
||||||
|
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
|
||||||
|
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
|
||||||
|
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
|
||||||
|
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
|
||||||
|
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
|
||||||
|
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:143)
|
||||||
|
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
|
||||||
|
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
|
||||||
|
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
|
||||||
|
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:374)
|
||||||
|
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
|
||||||
|
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
|
||||||
|
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1590)
|
||||||
|
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
|
||||||
|
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
|
||||||
|
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
|
||||||
|
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
|
||||||
|
at java.base/java.lang.Thread.run(Thread.java:829)
|
||||||
|
2020-12-27 22:22:19,508 INFO [Thread-4] Shutting down ExecutorService 'applicationTaskExecutor'
|
||||||
|
2020-12-27 22:22:19,510 INFO [Thread-4] Closing JPA EntityManagerFactory for persistence unit 'default'
|
||||||
|
2020-12-27 22:22:19,514 INFO [Thread-4] HikariPool-1 - Shutdown initiated...
|
||||||
|
2020-12-27 22:22:19,556 INFO [Thread-4] HikariPool-1 - Shutdown completed.
|
||||||
|
2020-12-27 22:22:19,764 INFO [restartedMain] Starting AbizeitungVotingSystemApplication on pop-os with PID 242 (/home/cato447/Code/AbizeitungVotingSystem/target/classes started by cato447 in /home/cato447/Code/AbizeitungVotingSystem)
|
||||||
|
2020-12-27 22:22:19,766 INFO [restartedMain] No active profile set, falling back to default profiles: default
|
||||||
|
2020-12-27 22:22:20,065 INFO [restartedMain] Bootstrapping Spring Data JPA repositories in DEFAULT mode.
|
||||||
|
2020-12-27 22:22:20,105 INFO [restartedMain] Finished Spring Data repository scanning in 38ms. Found 6 JPA repository interfaces.
|
||||||
|
2020-12-27 22:22:20,454 INFO [restartedMain] Tomcat initialized with port(s): 8000 (http)
|
||||||
|
2020-12-27 22:22:20,456 INFO [restartedMain] Initializing ProtocolHandler ["http-nio-8000"]
|
||||||
|
2020-12-27 22:22:20,460 INFO [restartedMain] Starting service [Tomcat]
|
||||||
|
2020-12-27 22:22:20,460 INFO [restartedMain] Starting Servlet engine: [Apache Tomcat/9.0.38]
|
||||||
|
2020-12-27 22:22:20,489 INFO [restartedMain] Initializing Spring embedded WebApplicationContext
|
||||||
|
2020-12-27 22:22:20,490 INFO [restartedMain] Root WebApplicationContext: initialization completed in 712 ms
|
||||||
|
2020-12-27 22:22:20,585 INFO [restartedMain] HHH000204: Processing PersistenceUnitInfo [name: default]
|
||||||
|
2020-12-27 22:22:20,598 INFO [restartedMain] HikariPool-2 - Starting...
|
||||||
|
2020-12-27 22:22:20,656 INFO [restartedMain] HikariPool-2 - Start completed.
|
||||||
|
2020-12-27 22:22:20,656 INFO [restartedMain] HHH000400: Using dialect: org.hibernate.dialect.MySQL8Dialect
|
||||||
|
2020-12-27 22:22:20,933 INFO [restartedMain] HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
|
||||||
|
2020-12-27 22:22:20,934 INFO [restartedMain] Initialized JPA EntityManagerFactory for persistence unit 'default'
|
||||||
|
2020-12-27 22:22:20,942 INFO [restartedMain] LiveReload server is running on port 35729
|
||||||
|
2020-12-27 22:22:21,459 INFO [restartedMain] Program started with arguments: votingPhase=true mottoPhase=false addingPhase=false
|
||||||
|
2020-12-27 22:22:21,594 WARN [restartedMain] spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
|
||||||
|
2020-12-27 22:22:21,702 INFO [restartedMain] Initializing ExecutorService 'applicationTaskExecutor'
|
||||||
|
2020-12-27 22:22:21,847 INFO [restartedMain] Starting ProtocolHandler ["http-nio-8000"]
|
||||||
|
2020-12-27 22:22:21,867 INFO [restartedMain] Tomcat started on port(s): 8000 (http) with context path ''
|
||||||
|
2020-12-27 22:22:21,880 INFO [restartedMain] Started AbizeitungVotingSystemApplication in 2.172 seconds (JVM running for 393.947)
|
||||||
|
2020-12-27 22:22:21,883 INFO [restartedMain] Condition evaluation unchanged
|
||||||
|
2020-12-27 22:22:24,903 INFO [http-nio-8000-exec-1] Initializing Spring DispatcherServlet 'dispatcherServlet'
|
||||||
|
2020-12-27 22:22:24,904 INFO [http-nio-8000-exec-1] Initializing Servlet 'dispatcherServlet'
|
||||||
|
2020-12-27 22:22:24,909 INFO [http-nio-8000-exec-1] Completed initialization in 5 ms
|
||||||
|
2020-12-27 22:22:28,574 WARN [http-nio-8000-exec-3] simon.bussmann@adolfinum.de
|
||||||
|
2020-12-27 22:22:39,513 WARN [http-nio-8000-exec-5] matched
|
||||||
|
2020-12-27 22:23:10,563 WARN [http-nio-8000-exec-1] simon.bussmann@adolfinum.de
|
||||||
|
2020-12-27 22:23:44,331 WARN [http-nio-8000-exec-3] matched
|
||||||
|
2020-12-27 22:24:47,420 WARN [http-nio-8000-exec-7] simon.bussmann@adolfinum.de
|
||||||
|
2020-12-27 22:25:14,722 WARN [http-nio-8000-exec-1] matched
|
||||||
|
2020-12-27 22:25:38,513 INFO [http-nio-8000-exec-4] simon.bussmann@adolfinum.de has voted!
|
||||||
|
2020-12-27 22:25:47,897 WARN [http-nio-8000-exec-7] simon.bussmann@adolfinum.de
|
||||||
|
2020-12-27 22:25:47,901 WARN [http-nio-8000-exec-7] simon.bussmann@adolfinum.de has already voted
|
||||||
|
2020-12-27 22:26:44,138 INFO [Thread-8] Shutting down ExecutorService 'applicationTaskExecutor'
|
||||||
|
2020-12-27 22:26:44,140 INFO [Thread-8] Closing JPA EntityManagerFactory for persistence unit 'default'
|
||||||
|
2020-12-27 22:26:44,145 INFO [Thread-8] HikariPool-2 - Shutdown initiated...
|
||||||
|
2020-12-27 22:26:44,187 INFO [Thread-8] HikariPool-2 - Shutdown completed.
|
||||||
|
2020-12-27 22:26:44,371 INFO [restartedMain] Starting AbizeitungVotingSystemApplication on pop-os with PID 242 (/home/cato447/Code/AbizeitungVotingSystem/target/classes started by cato447 in /home/cato447/Code/AbizeitungVotingSystem)
|
||||||
|
2020-12-27 22:26:44,378 INFO [restartedMain] No active profile set, falling back to default profiles: default
|
||||||
|
2020-12-27 22:26:44,760 INFO [restartedMain] Bootstrapping Spring Data JPA repositories in DEFAULT mode.
|
||||||
|
2020-12-27 22:26:44,805 INFO [restartedMain] Finished Spring Data repository scanning in 44ms. Found 6 JPA repository interfaces.
|
||||||
|
2020-12-27 22:26:45,081 INFO [restartedMain] Tomcat initialized with port(s): 8000 (http)
|
||||||
|
2020-12-27 22:26:45,083 INFO [restartedMain] Initializing ProtocolHandler ["http-nio-8000"]
|
||||||
|
2020-12-27 22:26:45,084 INFO [restartedMain] Starting service [Tomcat]
|
||||||
|
2020-12-27 22:26:45,084 INFO [restartedMain] Starting Servlet engine: [Apache Tomcat/9.0.38]
|
||||||
|
2020-12-27 22:26:45,111 INFO [restartedMain] Initializing Spring embedded WebApplicationContext
|
||||||
|
2020-12-27 22:26:45,113 INFO [restartedMain] Root WebApplicationContext: initialization completed in 725 ms
|
||||||
|
2020-12-27 22:26:45,224 INFO [restartedMain] HHH000204: Processing PersistenceUnitInfo [name: default]
|
||||||
|
2020-12-27 22:26:45,248 INFO [restartedMain] HikariPool-3 - Starting...
|
||||||
|
2020-12-27 22:26:45,312 INFO [restartedMain] HikariPool-3 - Start completed.
|
||||||
|
2020-12-27 22:26:45,312 INFO [restartedMain] HHH000400: Using dialect: org.hibernate.dialect.MySQL8Dialect
|
||||||
|
2020-12-27 22:26:45,631 INFO [restartedMain] HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
|
||||||
|
2020-12-27 22:26:45,631 INFO [restartedMain] Initialized JPA EntityManagerFactory for persistence unit 'default'
|
||||||
|
2020-12-27 22:26:45,636 INFO [restartedMain] LiveReload server is running on port 35729
|
||||||
|
2020-12-27 22:26:46,029 INFO [restartedMain] Program started with arguments: votingPhase=true mottoPhase=false addingPhase=false
|
||||||
|
2020-12-27 22:26:46,147 WARN [restartedMain] spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
|
||||||
|
2020-12-27 22:26:46,242 INFO [restartedMain] Initializing ExecutorService 'applicationTaskExecutor'
|
||||||
|
2020-12-27 22:26:46,333 INFO [restartedMain] Starting ProtocolHandler ["http-nio-8000"]
|
||||||
|
2020-12-27 22:26:46,425 INFO [restartedMain] Tomcat started on port(s): 8000 (http) with context path ''
|
||||||
|
2020-12-27 22:26:46,431 INFO [restartedMain] Started AbizeitungVotingSystemApplication in 2.131 seconds (JVM running for 658.498)
|
||||||
|
2020-12-27 22:26:46,438 INFO [restartedMain] Condition evaluation unchanged
|
||||||
|
2020-12-27 22:26:46,473 INFO [http-nio-8000-exec-1] Initializing Spring DispatcherServlet 'dispatcherServlet'
|
||||||
|
2020-12-27 22:26:46,474 INFO [http-nio-8000-exec-1] Initializing Servlet 'dispatcherServlet'
|
||||||
|
2020-12-27 22:26:46,478 INFO [http-nio-8000-exec-1] Completed initialization in 4 ms
|
||||||
|
2020-12-27 22:26:57,006 WARN [http-nio-8000-exec-5] simon.bussmann@adolfinum.de
|
||||||
|
2020-12-27 22:26:57,018 WARN [http-nio-8000-exec-5] simon.bussmann@adolfinum.de has already voted
|
||||||
|
|||||||
@@ -25,16 +25,6 @@ import java.util.concurrent.ExecutionException;
|
|||||||
@Controller
|
@Controller
|
||||||
public class VotingController {
|
public class VotingController {
|
||||||
|
|
||||||
|
|
||||||
@Value("motto")
|
|
||||||
String motto;
|
|
||||||
|
|
||||||
@Value("adding")
|
|
||||||
String adding;
|
|
||||||
|
|
||||||
@Value("voting")
|
|
||||||
String voting;
|
|
||||||
|
|
||||||
private boolean votingPhase = false;
|
private boolean votingPhase = false;
|
||||||
private boolean mottoPhase = false;
|
private boolean mottoPhase = false;
|
||||||
private boolean addingPhase = false;
|
private boolean addingPhase = false;
|
||||||
@@ -67,8 +57,8 @@ public class VotingController {
|
|||||||
@PostConstruct
|
@PostConstruct
|
||||||
public void init() {
|
public void init() {
|
||||||
mottoPhase = false;
|
mottoPhase = false;
|
||||||
votingPhase = false;
|
votingPhase = true;
|
||||||
addingPhase = true;
|
addingPhase = false;
|
||||||
|
|
||||||
LOGGER.info("Program started with arguments: votingPhase="+ votingPhase + " mottoPhase=" + mottoPhase + " addingPhase=" + addingPhase);
|
LOGGER.info("Program started with arguments: votingPhase="+ votingPhase + " mottoPhase=" + mottoPhase + " addingPhase=" + addingPhase);
|
||||||
|
|
||||||
@@ -127,7 +117,6 @@ public class VotingController {
|
|||||||
return "errors/alreadyVoted.html";
|
return "errors/alreadyVoted.html";
|
||||||
} else {
|
} else {
|
||||||
if (authCodesRepository.findByName(name) == null) {
|
if (authCodesRepository.findByName(name) == null) {
|
||||||
LOGGER.warn("no code");
|
|
||||||
AuthCode authCode = tableAction.generateToken(name, RandomNumber.getRandomNumberString(), authCodesRepository);
|
AuthCode authCode = tableAction.generateToken(name, RandomNumber.getRandomNumberString(), authCodesRepository);
|
||||||
sendSimpleMessage(name, "Code zur Authentifizierung", "Dein Code lautet: " + authCode.getCode());
|
sendSimpleMessage(name, "Code zur Authentifizierung", "Dein Code lautet: " + authCode.getCode());
|
||||||
} else if (authCodesRepository.findByName(name) != null && authCodesRepository.findByName(name).isExpired()) {
|
} else if (authCodesRepository.findByName(name) != null && authCodesRepository.findByName(name).isExpired()) {
|
||||||
@@ -164,7 +153,6 @@ public class VotingController {
|
|||||||
@RequestMapping("/vote")
|
@RequestMapping("/vote")
|
||||||
public String voting_adding(@RequestParam String code, @RequestParam String name, Model model) {
|
public String voting_adding(@RequestParam String code, @RequestParam String name, Model model) {
|
||||||
String tokenStatus = tableAction.checkToken(name, code, authCodesRepository);
|
String tokenStatus = tableAction.checkToken(name, code, authCodesRepository);
|
||||||
LOGGER.warn(code);
|
|
||||||
if (tokenStatus.equals("matched")) {
|
if (tokenStatus.equals("matched")) {
|
||||||
LOGGER.warn("matched");
|
LOGGER.warn("matched");
|
||||||
if (mottoPhase) {
|
if (mottoPhase) {
|
||||||
@@ -244,15 +232,17 @@ public class VotingController {
|
|||||||
|
|
||||||
@RequestMapping("/processVote")
|
@RequestMapping("/processVote")
|
||||||
public String ProcessVote(@RequestParam String name, @RequestParam String voteValues) {
|
public String ProcessVote(@RequestParam String name, @RequestParam String voteValues) {
|
||||||
if (voterRepository.findByEmail(name).getCandidatesubmit_status()) {
|
if (voterRepository.findByEmail(name).getVote_status()) {
|
||||||
return "errors/alreadySubmitted.html";
|
return "errors/alreadyVoted.html";
|
||||||
} else {
|
} else {
|
||||||
String[] partVoteValues = voteValues.split(",");
|
if(!voteValues.equals("")) {
|
||||||
for (String s : partVoteValues) {
|
String[] partVoteValues = voteValues.split(",");
|
||||||
tableAction.voteForCandidate(s, candidateRepository);
|
for (String s : partVoteValues) {
|
||||||
|
tableAction.voteForCandidate(s, candidateRepository);
|
||||||
|
}
|
||||||
|
LOGGER.info(name + " has voted!");
|
||||||
}
|
}
|
||||||
tableAction.updateVotingStatus(name, voterRepository);
|
tableAction.updateVotingStatus(name, voterRepository);
|
||||||
LOGGER.info(name + " has voted!");
|
|
||||||
return "voteSuccessful.html";
|
return "voteSuccessful.html";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,7 +10,6 @@
|
|||||||
<body class="center-screen">
|
<body class="center-screen">
|
||||||
<div class="centered">
|
<div class="centered">
|
||||||
<h1>Du hast schon abgestimmt!</h1>
|
<h1>Du hast schon abgestimmt!</h1>
|
||||||
<h2 id="time_remain">Nächste Abstimmung in: </h2>
|
|
||||||
<button id="backButton" class="submitButton">Zurück zum Anfang</button>
|
<button id="backButton" class="submitButton">Zurück zum Anfang</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -18,28 +17,6 @@
|
|||||||
document.getElementById("backButton").onclick = function() {
|
document.getElementById("backButton").onclick = function() {
|
||||||
location.href = "/";
|
location.href = "/";
|
||||||
};
|
};
|
||||||
|
|
||||||
const zeroPad = (num, places) => String(num).padStart(places, '0')
|
|
||||||
|
|
||||||
// We can set endTime to whatever we want here (e.g. Midnight today )
|
|
||||||
// Use moment().endOf('day') to do this.
|
|
||||||
var dateFuture = new Date(2020, 11, 28, 0, 0);
|
|
||||||
|
|
||||||
// Show time remaining now.
|
|
||||||
showTimeRemaining();
|
|
||||||
|
|
||||||
// Set a timer to update the displayed clock every 1000 milliseconds.
|
|
||||||
setInterval(showTimeRemaining, 1000);
|
|
||||||
|
|
||||||
function showTimeRemaining() {
|
|
||||||
var dateNow = Date.now();
|
|
||||||
var days = zeroPad(Math.floor((dateFuture - dateNow) / (1000 * 60 * 60 * 24)), 2);
|
|
||||||
var hours = zeroPad(Math.floor(((dateFuture - dateNow) - days * 1000 * 60 * 60 * 24) / (1000 * 60 * 60)), 2);
|
|
||||||
var mins = zeroPad(Math.floor(((dateFuture - dateNow) - days * 1000 * 60 * 60 * 24 - hours * 1000 * 60 * 60) / (1000 * 60)), 2);
|
|
||||||
var secs = zeroPad(Math.floor(((dateFuture - dateNow) - days * 1000 * 60 * 60 * 24 - hours * 1000 * 60 * 60 - mins * 1000 * 60) / 1000), 2);
|
|
||||||
document.getElementById("time_remain").innerHTML = "Nächste Abstimmung in: " + days + "D " + hours + ":" + mins + ":" + secs;
|
|
||||||
console.log("Nächste Abstimmung in: " + days + "D " + hours + ":" + mins + ":" + secs);
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,6 @@
|
|||||||
<div class="centered">
|
<div class="centered">
|
||||||
<h1>Deine Auswahl fließt nun in die Wahl ein!</h1>
|
<h1>Deine Auswahl fließt nun in die Wahl ein!</h1>
|
||||||
<h2>Danke fürs abstimmen!</h2>
|
<h2>Danke fürs abstimmen!</h2>
|
||||||
<h2 class="time_remain" id="time_remain">Nächste Abstimmung in: </h2>
|
|
||||||
<button id="backButton" class="submitButton">Zurück zum Anfang</button>
|
<button id="backButton" class="submitButton">Zurück zum Anfang</button>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
@@ -20,28 +19,6 @@
|
|||||||
document.getElementById("backButton").onclick = function() {
|
document.getElementById("backButton").onclick = function() {
|
||||||
location.href = "/";
|
location.href = "/";
|
||||||
};
|
};
|
||||||
|
|
||||||
const zeroPad = (num, places) => String(num).padStart(places, '0')
|
|
||||||
|
|
||||||
// We can set endTime to whatever we want here (e.g. Midnight today )
|
|
||||||
// Use moment().endOf('day') to do this.
|
|
||||||
var dateFuture = new Date(2020, 11, 28, 0, 0);
|
|
||||||
|
|
||||||
// Show time remaining now.
|
|
||||||
showTimeRemaining();
|
|
||||||
|
|
||||||
// Set a timer to update the displayed clock every 1000 milliseconds.
|
|
||||||
setInterval(showTimeRemaining, 1000);
|
|
||||||
|
|
||||||
function showTimeRemaining() {
|
|
||||||
var dateNow = Date.now();
|
|
||||||
var days = zeroPad(Math.floor((dateFuture - dateNow) / (1000 * 60 * 60 * 24)), 2);
|
|
||||||
var hours = zeroPad(Math.floor(((dateFuture - dateNow) - days * 1000 * 60 * 60 * 24) / (1000 * 60 * 60)), 2);
|
|
||||||
var mins = zeroPad(Math.floor(((dateFuture - dateNow) - days * 1000 * 60 * 60 * 24 - hours * 1000 * 60 * 60) / (1000 * 60)), 2);
|
|
||||||
var secs = zeroPad(Math.floor(((dateFuture - dateNow) - days * 1000 * 60 * 60 * 24 - hours * 1000 * 60 * 60 - mins * 1000 * 60) / 1000), 2);
|
|
||||||
document.getElementById("time_remain").innerHTML = "Nächste Abstimmung in: " + days + "D " + hours + ":" + mins + ":" + secs;
|
|
||||||
console.log("Nächste Abstimmung in: " + days + "D " + hours + ":" + mins + ":" + secs);
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
Reference in New Issue
Block a user