代码之家  ›  专栏  ›  技术社区  ›  remi bourgarel

SpringHTTPAPI返回错误500,但控制台中未记录错误

  •  0
  • remi bourgarel  · 技术社区  · 8 年前

    我有一个spring-boot应用程序(spring 5.0.7.Release,spring-boot版本2.0.3)。

    {"timestamp":"2018-07-13","status":500,"error":"Internal Server Error","message":"org.springframework.session.MapSession.getCreationTime()Ljava/time/Instant;","path":"/security/signIn/password"}
    

    但在eclipse中,我的控制台只显示了这一点

    f、 p.a.c.CustomBasicAuthenticationFilter:身份验证成功: org.springframework.security.authentication。UsernamePasswordAuthenticationToken@aa6b860d: 负责人: fr.pangeeconseil.purchase.core.domain.security。AuthenticatedUserDTO@75136264; 凭据:[受保护];认证:真;细节: org.springframework.security.web.authentication.验证。WebAuthenticationDetails@b364: 远程IP地址:0:0:0:0:0:0:0:0:1;SessionId:null;授予 权限:超级管理员2018-07-13 12:11:59.306调试64187 ---[nio-9000-exec-2]o.s.web.servlet.DispatcherServlet:名称为“DispatcherServlet”的DispatcherServlet处理POST 请求[/error]2018-07-13 12:11:59.311调试64187--- 路径/错误的up handler方法2018-07-13 12:11:59.313调试64187 ---[nio-9000-exec-2]s.w.s.m.m.a.RequestMappingHandlerMapping:返回处理程序方法[public] org.springframework.http.ResponseEntity>

    org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.error(javax.servlet.http.HttpServletRequest)] 2018-07-13 12:11:59.314调试64187---[nio-9000-exec-2] for[/error]2018-07-13 12:11:59.314调试64187---[nio-9000-exec-2] f、 p.a.c.web.CustomWebContentInterceptor:应用默认缓存 秒到[/error]2018-07-13 12:11:59.402调试64187--- [nio-9000-exec-2]o.s.w.s.m.m.a.HttpEntityMethodProcessor:编写 [{时间戳=星期五7月13日12:11:59 CEST 2018,状态=500,错误=内部 服务器错误, message=org.springframework.session.MapSession.getCreationTime()Ljava/time/Instant;, o、 s.web.servlet.DispatcherServlet:返回空ModelAndView HandlerAdapter完成请求处理2018-07-13 12:11:59.404 调试64187---[nio-9000-exec-2]o.s.web.servlet.DispatcherServlet
    :已成功完成请求

    重要信息:

    编译org.springframework。data:spring-data-redis:2.0.8.释放'

    编译“org.springframework。session:spring-session:1.3.3.释放“

    编译“org.springframework。session:spring-session-data-redis:2.0.4.释放“

    1 回复  |  直到 8 年前
        1
  •  0
  •   remi bourgarel    8 年前

    我发现:spring会话已经过时了,我需要删除它,并在securityConfiguration中更改一些内容,因为有些类已经被删除/重命名。

    推荐文章