User management, tests are passed, but cannot get verification code [Solved]

Hi,

I am trying to pass user management section. All tests are passing but I can’t get verification code. Everything compiles just fine.

Can you paste the console output of running application?

/usr/lib/jvm/java-8-oracle/bin/java -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true -javaagent:/home/olek/Pobrane/idea-IU-183.5429.30/lib/idea_rt.jar=38147:/home/olek/Pobrane/idea-IU-183.5429.30/bin -Dfile.encoding=UTF-8 -classpath /usr/lib/jvm/java-8-oracle/jre/lib/charsets.jar:/usr/lib/jvm/java-8-oracle/jre/lib/deploy.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/cldrdata.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/dnsns.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/jaccess.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/jfxrt.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/localedata.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/nashorn.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/sunec.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/sunjce_provider.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/sunpkcs11.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/zipfs.jar:/usr/lib/jvm/java-8-oracle/jre/lib/javaws.jar:/usr/lib/jvm/java-8-oracle/jre/lib/jce.jar:/usr/lib/jvm/java-8-oracle/jre/lib/jfr.jar:/usr/lib/jvm/java-8-oracle/jre/lib/jfxswt.jar:/usr/lib/jvm/java-8-oracle/jre/lib/jsse.jar:/usr/lib/jvm/java-8-oracle/jre/lib/management-agent.jar:/usr/lib/jvm/java-8-oracle/jre/lib/plugin.jar:/usr/lib/jvm/java-8-oracle/jre/lib/resources.jar:/usr/lib/jvm/java-8-oracle/jre/lib/rt.jar:/home/olek/mongodb/m220/mflix/target/classes:/home/olek/.m2/repository/org/springframework/boot/spring-boot-starter-web/2.0.3.RELEASE/spring-boot-starter-web-2.0.3.RELEASE.jar:/home/olek/.m2/repository/org/springframework/boot/spring-boot-starter/2.0.3.RELEASE/spring-boot-starter-2.0.3.RELEASE.jar:/home/olek/.m2/repository/org/springframework/boot/spring-boot-starter-logging/2.0.3.RELEASE/spring-boot-starter-logging-2.0.3.RELEASE.jar:/home/olek/.m2/repository/ch/qos/logback/logback-classic/1.2.3/logback-classic-1.2.3.jar:/home/olek/.m2/repository/ch/qos/logback/logback-core/1.2.3/logback-core-1.2.3.jar:/home/olek/.m2/repository/org/apache/logging/log4j/log4j-to-slf4j/2.10.0/log4j-to-slf4j-2.10.0.jar:/home/olek/.m2/repository/org/apache/logging/log4j/log4j-api/2.10.0/log4j-api-2.10.0.jar:/home/olek/.m2/repository/org/slf4j/jul-to-slf4j/1.7.25/jul-to-slf4j-1.7.25.jar:/home/olek/.m2/repository/javax/annotation/javax.annotation-api/1.3.2/javax.annotation-api-1.3.2.jar:/home/olek/.m2/repository/org/yaml/snakeyaml/1.19/snakeyaml-1.19.jar:/home/olek/.m2/repository/org/springframework/boot/spring-boot-starter-json/2.0.3.RELEASE/spring-boot-starter-json-2.0.3.RELEASE.jar:/home/olek/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jdk8/2.9.6/jackson-datatype-jdk8-2.9.6.jar:/home/olek/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jsr310/2.9.6/jackson-datatype-jsr310-2.9.6.jar:/home/olek/.m2/repository/com/fasterxml/jackson/module/jackson-module-parameter-names/2.9.6/jackson-module-parameter-names-2.9.6.jar:/home/olek/.m2/repository/org/springframework/boot/spring-boot-starter-tomcat/2.0.3.RELEASE/spring-boot-starter-tomcat-2.0.3.RELEASE.jar:/home/olek/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/8.5.31/tomcat-embed-core-8.5.31.jar:/home/olek/.m2/repository/org/apache/tomcat/embed/tomcat-embed-el/8.5.31/tomcat-embed-el-8.5.31.jar:/home/olek/.m2/repository/org/apache/tomcat/embed/tomcat-embed-websocket/8.5.31/tomcat-embed-websocket-8.5.31.jar:/home/olek/.m2/repository/org/hibernate/validator/hibernate-validator/6.0.10.Final/hibernate-validator-6.0.10.Final.jar:/home/olek/.m2/repository/javax/validation/validation-api/2.0.1.Final/validation-api-2.0.1.Final.jar:/home/olek/.m2/repository/org/jboss/logging/jboss-logging/3.3.2.Final/jboss-logging-3.3.2.Final.jar:/home/olek/.m2/repository/com/fasterxml/classmate/1.3.4/classmate-1.3.4.jar:/home/olek/.m2/repository/org/springframework/spring-webmvc/5.0.7.RELEASE/spring-webmvc-5.0.7.RELEASE.jar:/home/olek/.m2/repository/org/slf4j/slf4j-api/1.7.25/slf4j-api-1.7.25.jar:/home/olek/.m2/repository/org/springframework/boot/spring-boot-starter-security/2.0.4.RELEASE/spring-boot-starter-security-2.0.4.RELEASE.jar:/home/olek/.m2/repository/org/springframework/spring-aop/5.0.8.RELEASE/spring-aop-5.0.8.RELEASE.jar:/home/olek/.m2/repository/org/springframework/security/spring-security-config/5.0.7.RELEASE/spring-security-config-5.0.7.RELEASE.jar:/home/olek/.m2/repository/org/springframework/security/spring-security-core/5.0.7.RELEASE/spring-security-core-5.0.7.RELEASE.jar:/home/olek/.m2/repository/org/springframework/security/spring-security-web/5.0.7.RELEASE/spring-security-web-5.0.7.RELEASE.jar:/home/olek/.m2/repository/org/springframework/boot/spring-boot/2.0.4.RELEASE/spring-boot-2.0.4.RELEASE.jar:/home/olek/.m2/repository/org/springframework/spring-context/5.0.7.RELEASE/spring-context-5.0.7.RELEASE.jar:/home/olek/.m2/repository/org/springframework/spring-beans/5.0.7.RELEASE/spring-beans-5.0.7.RELEASE.jar:/home/olek/.m2/repository/org/springframework/spring-expression/5.0.7.RELEASE/spring-expression-5.0.7.RELEASE.jar:/home/olek/.m2/repository/org/springframework/spring-core/5.0.7.RELEASE/spring-core-5.0.7.RELEASE.jar:/home/olek/.m2/repository/org/springframework/spring-jcl/5.0.7.RELEASE/spring-jcl-5.0.7.RELEASE.jar:/home/olek/.m2/repository/org/springframework/boot/spring-boot-autoconfigure/2.0.3.RELEASE/spring-boot-autoconfigure-2.0.3.RELEASE.jar:/home/olek/.m2/repository/org/springframework/spring-web/5.0.7.RELEASE/spring-web-5.0.7.RELEASE.jar:/home/olek/.m2/repository/io/jsonwebtoken/jjwt/0.9.1/jjwt-0.9.1.jar:/home/olek/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.9.6/jackson-databind-2.9.6.jar:/home/olek/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.9.0/jackson-annotations-2.9.0.jar:/home/olek/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.9.6/jackson-core-2.9.6.jar:/home/olek/.m2/repository/org/mongodb/mongodb-driver-sync/3.9.1/mongodb-driver-sync-3.9.1.jar:/home/olek/.m2/repository/org/mongodb/bson/3.9.1/bson-3.9.1.jar:/home/olek/.m2/repository/org/mongodb/mongodb-driver-core/3.9.1/mongodb-driver-core-3.9.1.jar mflix.Application

. ____ _ __ _ _
/\ / __ _ () __ __ _ \ \ \
( ( )_
_ | '_ | '| | ’ / ` | \ \ \
\/ )| |)| | | | | || (| | ) ) ) )
’ |
| .__|| ||| |_, | / / / /
=========|
|==============|/=////
:: Spring Boot :: (v2.0.4.RELEASE)

2019-03-22 08:51:54.194 INFO 31876 — [ main] mflix.Application : Starting Application on DELL with PID 31876 (/home/olek/mongodb/m220/mflix/target/classes started by olek in /home/olek/mongodb/m220/mflix)
2019-03-22 08:51:54.196 INFO 31876 — [ main] mflix.Application : No active profile set, falling back to default profiles: default
2019-03-22 08:51:54.236 INFO 31876 — [ main] ConfigServletWebServerApplicationContext : Refreshing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@27ae2fd0: startup date [Fri Mar 22 08:51:54 CET 2019]; root of context hierarchy
2019-03-22 08:51:55.002 INFO 31876 — [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 5000 (http)
2019-03-22 08:51:55.015 INFO 31876 — [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2019-03-22 08:51:55.016 INFO 31876 — [ main] org.apache.catalina.core.StandardEngine : Starting Servlet Engine: Apache Tomcat/8.5.31
2019-03-22 08:51:55.019 INFO 31876 — [ost-startStop-1] o.a.catalina.core.AprLifecycleListener : The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib]
2019-03-22 08:51:55.070 INFO 31876 — [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2019-03-22 08:51:55.070 INFO 31876 — [ost-startStop-1] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 838 ms
2019-03-22 08:51:55.148 INFO 31876 — [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: ‘characterEncodingFilter’ to: [/]
2019-03-22 08:51:55.148 INFO 31876 — [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: ‘hiddenHttpMethodFilter’ to: [/
]
2019-03-22 08:51:55.148 INFO 31876 — [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: ‘httpPutFormContentFilter’ to: [/]
2019-03-22 08:51:55.148 INFO 31876 — [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: ‘requestContextFilter’ to: [/
]
2019-03-22 08:51:55.149 INFO 31876 — [ost-startStop-1] .s.DelegatingFilterProxyRegistrationBean : Mapping filter: ‘springSecurityFilterChain’ to: [/*]
2019-03-22 08:51:55.149 INFO 31876 — [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean : Servlet dispatcherServlet mapped to [/]
2019-03-22 08:51:55.236 INFO 31876 — [ main] org.mongodb.driver.cluster : Cluster created with settings {hosts=[mflix-shard-00-01-tvlrm.mongodb.net:27017, mflix-shard-00-00-tvlrm.mongodb.net:27017, mflix-shard-00-02-tvlrm.mongodb.net:27017], mode=MULTIPLE, requiredClusterType=REPLICA_SET, serverSelectionTimeout=‘30000 ms’, maxWaitQueueSize=500, requiredReplicaSetName=‘mflix-shard-0’}
2019-03-22 08:51:55.236 INFO 31876 — [ main] org.mongodb.driver.cluster : Adding discovered server mflix-shard-00-01-tvlrm.mongodb.net:27017 to client view of cluster
2019-03-22 08:51:55.251 INFO 31876 — [ main] org.mongodb.driver.cluster : Adding discovered server mflix-shard-00-00-tvlrm.mongodb.net:27017 to client view of cluster
2019-03-22 08:51:55.252 INFO 31876 — [ main] org.mongodb.driver.cluster : Adding discovered server mflix-shard-00-02-tvlrm.mongodb.net:27017 to client view of cluster
2019-03-22 08:51:55.502 INFO 31876 — [ main] o.s.s.web.DefaultSecurityFilterChain : Creating filter chain: org.springframework.security.web.util.matcher.AnyRequestMatcher@1, [org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@14faa38c, org.springframework.security.web.context.SecurityContextPersistenceFilter@5f5b5ca4, org.springframework.security.web.header.HeaderWriterFilter@602c4656, org.springframework.security.web.authentication.logout.LogoutFilter@deb3b60, mflix.api.security.JWTAuthenticationFilter@7ff2b8d2, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@6b04acb2, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@6622a690, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@6dc1484, org.springframework.security.web.session.SessionManagementFilter@408a247c, org.springframework.security.web.access.ExceptionTranslationFilter@4f7c0be3, org.springframework.security.web.access.intercept.FilterSecurityInterceptor@4cee7fa0]
2019-03-22 08:51:55.547 INFO 31876 — [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [//favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2019-03-22 08:51:55.636 INFO 31876 — [ main] s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for @ControllerAdvice: org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@27ae2fd0: startup date [Fri Mar 22 08:51:54 CET 2019]; root of context hierarchy
2019-03-22 08:51:55.637 INFO 31876 — [ngodb.net:27017] org.mongodb.driver.connection : Opened connection [connectionId{localValue:1, serverValue:349807}] to mflix-shard-00-02-tvlrm.mongodb.net:27017
2019-03-22 08:51:55.637 INFO 31876 — [ngodb.net:27017] org.mongodb.driver.connection : Opened connection [connectionId{localValue:3, serverValue:146362}] to mflix-shard-00-01-tvlrm.mongodb.net:27017
2019-03-22 08:51:55.637 INFO 31876 — [ngodb.net:27017] org.mongodb.driver.connection : Opened connection [connectionId{localValue:2, serverValue:151304}] to mflix-shard-00-00-tvlrm.mongodb.net:27017
2019-03-22 08:51:55.666 INFO 31876 — [ngodb.net:27017] org.mongodb.driver.cluster : Monitor thread successfully connected to server with description ServerDescription{address:27017=mflix-shard-00-01-tvlrm.mongodb.net, type=REPLICA_SET_SECONDARY, state=CONNECTED, ok=true, version=ServerVersion{versionList=[4, 0, 6]}, minWireVersion=0, maxWireVersion=7, maxDocumentSize=16777216, logicalSessionTimeoutMinutes=30, roundTripTimeNanos=27562327, setName=‘mflix-shard-0’, canonicalAddress:27017=mflix-shard-00-01-tvlrm.mongodb.net, hosts=[mflix-shard-00-02-tvlrm.mongodb.net:27017, mflix-shard-00-01-tvlrm.mongodb.net:27017, mflix-shard-00-00-tvlrm.mongodb.net:27017], passives=[], arbiters=[], primary=‘mflix-shard-00-02-tvlrm.mongodb.net:27017’, tagSet=TagSet{[Tag{name=‘region’, value=‘EU_CENTRAL_1’}, Tag{name=‘provider’, value=‘AWS’}, Tag{name=‘nodeType’, value=‘ELECTABLE’}]}, electionId=null, setVersion=2, lastWriteDate=Fri Mar 22 08:51:55 CET 2019, lastUpdateTimeNanos=12056295652878}
2019-03-22 08:51:55.667 INFO 31876 — [ngodb.net:27017] org.mongodb.driver.cluster : Monitor thread successfully connected to server with description ServerDescription{address:27017=mflix-shard-00-00-tvlrm.mongodb.net, type=REPLICA_SET_SECONDARY, state=CONNECTED, ok=true, version=ServerVersion{versionList=[4, 0, 6]}, minWireVersion=0, maxWireVersion=7, maxDocumentSize=16777216, logicalSessionTimeoutMinutes=30, roundTripTimeNanos=28825381, setName=‘mflix-shard-0’, canonicalAddress:27017=mflix-shard-00-00-tvlrm.mongodb.net, hosts=[mflix-shard-00-02-tvlrm.mongodb.net:27017, mflix-shard-00-01-tvlrm.mongodb.net:27017, mflix-shard-00-00-tvlrm.mongodb.net:27017], passives=[], arbiters=[], primary=‘mflix-shard-00-02-tvlrm.mongodb.net:27017’, tagSet=TagSet{[Tag{name=‘nodeType’, value=‘ELECTABLE’}, Tag{name=‘region’, value=‘EU_CENTRAL_1’}, Tag{name=‘provider’, value=‘AWS’}]}, electionId=null, setVersion=2, lastWriteDate=Fri Mar 22 08:51:55 CET 2019, lastUpdateTimeNanos=12056296671786}
2019-03-22 08:51:55.667 INFO 31876 — [ngodb.net:27017] org.mongodb.driver.cluster : Monitor thread successfully connected to server with description ServerDescription{address:27017=mflix-shard-00-02-tvlrm.mongodb.net, type=REPLICA_SET_PRIMARY, state=CONNECTED, ok=true, version=ServerVersion{versionList=[4, 0, 6]}, minWireVersion=0, maxWireVersion=7, maxDocumentSize=16777216, logicalSessionTimeoutMinutes=30, roundTripTimeNanos=28843633, setName=‘mflix-shard-0’, canonicalAddress:27017=mflix-shard-00-02-tvlrm.mongodb.net, hosts=[mflix-shard-00-02-tvlrm.mongodb.net:27017, mflix-shard-00-01-tvlrm.mongodb.net:27017, mflix-shard-00-00-tvlrm.mongodb.net:27017], passives=[], arbiters=[], primary=‘mflix-shard-00-02-tvlrm.mongodb.net:27017’, tagSet=TagSet{[Tag{name=‘region’, value=‘EU_CENTRAL_1’}, Tag{name=‘provider’, value=‘AWS’}, Tag{name=‘nodeType’, value=‘ELECTABLE’}]}, electionId=7fffffff0000000000000009, setVersion=2, lastWriteDate=Fri Mar 22 08:51:55 CET 2019, lastUpdateTimeNanos=12056296687764}
2019-03-22 08:51:55.667 INFO 31876 — [ngodb.net:27017] org.mongodb.driver.cluster : Setting max election id to 7fffffff0000000000000009 from replica set primary mflix-shard-00-02-tvlrm.mongodb.net:27017
2019-03-22 08:51:55.668 INFO 31876 — [ngodb.net:27017] org.mongodb.driver.cluster : Setting max set version to 2 from replica set primary mflix-shard-00-02-tvlrm.mongodb.net:27017
2019-03-22 08:51:55.668 INFO 31876 — [ngodb.net:27017] org.mongodb.driver.cluster : Discovered replica set primary mflix-shard-00-02-tvlrm.mongodb.net:27017
2019-03-22 08:51:55.675 INFO 31876 — [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped “{[/api/v1/movies/facet-search],methods=[GET]}” onto public org.springframework.http.ResponseEntity<java.util.Map> mflix.api.controllers.MovieController.apiSearchMoviesFaceted(java.lang.Integer,java.util.ArrayList<java.lang.String>)
2019-03-22 08:51:55.676 INFO 31876 — [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped “{[/api/v1/movies/comment],methods=[PUT]}” onto public org.springframework.http.ResponseEntity mflix.api.controllers.MovieController.updateMovieComment(java.lang.String,java.util.HashMap<java.lang.String, java.lang.String>)
2019-03-22 08:51:55.677 INFO 31876 — [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped “{[/api/v1/movies/comment],methods=[POST]}” onto public org.springframework.http.ResponseEntity mflix.api.controllers.MovieController.addComment(java.lang.String,java.util.HashMap<java.lang.String, java.lang.String>)
2019-03-22 08:51:55.677 INFO 31876 — [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped “{[/api/v1/movies/comment],methods=[DELETE]}” onto public org.springframework.http.ResponseEntity mflix.api.controllers.MovieController.deleteComment(java.lang.String,java.util.HashMap<java.lang.String, java.lang.String>)
2019-03-22 08:51:55.678 INFO 31876 — [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped “{[/api/v1/movies/config-options],methods=[GET]}” onto public org.springframework.http.ResponseEntity mflix.api.controllers.MovieController.configOptions()
2019-03-22 08:51:55.678 INFO 31876 — [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped “{[/api/v1/movies/id/{movieId}],methods=[GET]}” onto org.springframework.http.ResponseEntity mflix.api.controllers.MovieController.getMovie(java.lang.String)
2019-03-22 08:51:55.678 INFO 31876 — [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped “{[/api/v1/movies/countries],methods=[GET]}” onto public org.springframework.http.ResponseEntity<java.util.Map> mflix.api.controllers.MovieController.moviesByCountry(java.util.ArrayList<java.lang.String>)
2019-03-22 08:51:55.679 INFO 31876 — [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped “{[/api/v1/movies/],methods=[GET]}” onto org.springframework.http.ResponseEntity<java.util.Map> mflix.api.controllers.MovieController.index()
2019-03-22 08:51:55.679 INFO 31876 — [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped “{[/api/v1/movies/search],methods=[GET]}” onto public org.springframework.http.ResponseEntity<java.util.Map> mflix.api.controllers.MovieController.search(java.lang.Integer,java.util.ArrayList<java.lang.String>,java.util.ArrayList<java.lang.String>,java.util.ArrayList<java.lang.String>)
2019-03-22 08:51:55.680 INFO 31876 — [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped “{[/api/v1/movies/info],methods=[GET]}” onto public org.springframework.http.ResponseEntity<java.util.Map> mflix.api.controllers.ApiController.info()
2019-03-22 08:51:55.682 INFO 31876 — [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped “{[/api/v1/user/login],methods=[POST]}” onto public org.springframework.http.ResponseEntity mflix.api.controllers.UserController.authenticateUser(mflix.api.models.Login)
2019-03-22 08:51:55.682 INFO 31876 — [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped “{[/api/v1/user/logout],methods=[POST]}” onto public org.springframework.http.ResponseEntity mflix.api.controllers.UserController.logout(java.lang.String)
2019-03-22 08:51:55.683 INFO 31876 — [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped “{[/api/v1/user/update-preferences],methods=[PUT]}” onto public org.springframework.http.ResponseEntity mflix.api.controllers.UserController.updateUserPreferences(java.lang.String,java.util.Map<java.lang.String, java.lang.Object>)
2019-03-22 08:51:55.683 INFO 31876 — [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped “{[/api/v1/user/make-admin],methods=[POST]}” onto public org.springframework.http.ResponseEntity mflix.api.controllers.UserController.makeUserAdmin(mflix.api.models.UserRegistry)
2019-03-22 08:51:55.683 INFO 31876 — [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped “{[/api/v1/user/comment-report],methods=[GET]}” onto public org.springframework.http.ResponseEntity mflix.api.controllers.UserController.getCommentReport(java.lang.String)
2019-03-22 08:51:55.684 INFO 31876 — [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped “{[/api/v1/user/],methods=[GET]}” onto org.springframework.http.ResponseEntity<java.util.Map> mflix.api.controllers.UserController.index()
2019-03-22 08:51:55.685 INFO 31876 — [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped “{[/api/v1/user/register],methods=[POST]}” onto public org.springframework.http.ResponseEntity mflix.api.controllers.UserController.register(mflix.api.models.UserRegistry)
2019-03-22 08:51:55.685 INFO 31876 — [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped “{[/api/v1/user/delete],methods=[DELETE]}” onto public org.springframework.http.ResponseEntity mflix.api.controllers.UserController.delete(java.lang.String,java.lang.String)
2019-03-22 08:51:55.686 INFO 31876 — [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped “{[/api/v1/user/info],methods=[GET]}” onto public org.springframework.http.ResponseEntity<java.util.Map> mflix.api.controllers.ApiController.info()
2019-03-22 08:51:55.688 INFO 31876 — [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped “{[/error],produces=[text/html]}” onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
2019-03-22 08:51:55.688 INFO 31876 — [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped “{[/error]}” onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.error(javax.servlet.http.HttpServletRequest)
2019-03-22 08:51:55.702 INFO 31876 — [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/webjars/
] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2019-03-22 08:51:55.702 INFO 31876 — [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2019-03-22 08:51:55.712 INFO 31876 — [ main] .m.m.a.ExceptionHandlerExceptionResolver : Detected @ExceptionHandler methods in globalExceptionHandler
2019-03-22 08:51:55.730 INFO 31876 — [ main] o.s.b.a.w.s.WelcomePageHandlerMapping : Adding welcome page: class path resource [build/index.html]
2019-03-22 08:51:55.792 INFO 31876 — [ main] o.s.j.e.a.AnnotationMBeanExporter : Registering beans for JMX exposure on startup
2019-03-22 08:51:55.814 INFO 31876 — [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 5000 (http) with context path ‘’
2019-03-22 08:51:55.817 INFO 31876 — [ main] mflix.Application : Started Application in 1.851 seconds (JVM running for 2.211)


\ \ / / | | | | | / | | ()
\ \ /\ / /__| | ___ ___ _ __ ___ ___ | |
___ | \ / | |
| |___ __
\ / / / _ \ |/ / _ | ’ ` _ \ / _ \ | / _ \ | |/| | | | | \ / /
\ /\ / / | (| () | | | | | | / | || (_) | | | | | | | | |> <
/ / _
|_|_
_
/|| || |_|_
| ___/ |
| ||| ||/_/_\

 ^

/’|’
/ |/
| |/ |
\ | /
|/
|

2019-03-22 08:52:00.084 INFO 31876 — [nio-5000-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring FrameworkServlet ‘dispatcherServlet’
2019-03-22 08:52:00.084 INFO 31876 — [nio-5000-exec-1] o.s.web.servlet.DispatcherServlet : FrameworkServlet ‘dispatcherServlet’: initialization started
2019-03-22 08:52:00.094 INFO 31876 — [nio-5000-exec-1] o.s.web.servlet.DispatcherServlet : FrameworkServlet ‘dispatcherServlet’: initialization completed in 10 ms
2019-03-22 08:52:00.720 INFO 31876 — [nio-5000-exec-6] org.mongodb.driver.connection : Opened connection [connectionId{localValue:4, serverValue:346296}] to mflix-shard-00-02-tvlrm.mongodb.net:27017

BTW. I had similar problem with previous task, but there was a issue with getMoviesByCast and sorting ascending

Hi @Aleksander_38861

Can you confirm which version of the JDK you are using ? Can you verify you made all the changes required in the UserDao.java covered by the “//TODO> Ticket: User Management” comments ?

Kindest regards,
Eoin

Hi @brazileoin

I am using java-8-oracle /usr/lib/jvm/java-8-oracle

I did cover evething except TODOs in updateUserPreferences method.
Is it possible to send you UserDao.java file?

Hi @brazileoin

I’ve found the mistake.

DeleteUserSession was not working correctly. I think it should be covered in tests later.

Thanks for the help :slight_smile:

2 Likes