500内部服务器错误

时间:2016-12-20 07:09:37

标签: json spring rest modelandview

当我尝试在我的RESTful webservice中测试方法时,我得到500:内部服务器错误。我已将方法从返回ModelAndView转换为返回ResponseEntity。

我的代码:

旧代码

@RequestMapping("showAdd")
    @PreAuthorize(AUDIT_MANAGE_PERM_EXPR)
    public ModelAndView showAdd(@RequestParam("id") Long id, @RequestParam("type") String type) {
        return setModel(id, false, type);
    }

private ModelAndView setModel(Long id, Boolean view, String type) {
        ScheduleAuditElement scheduleAuditElement = elementService.findByAll(id);
        List<ElementDataGridHelper> elementDataGridHelpers = resultService.getElementsData(scheduleAuditElement);
        ModelAndView mv = new ModelAndView(ADD_PAGE);
        mv.addObject("type", type);
        ElementResult elementResult = null;
        if (!resultService.isHierarchy(scheduleAuditElement.getElement().getId())
                && scheduleAuditElement.getStatus().equals(STATUS_ASSIGNED))
            mv.addObject("isHierarchy", false);
        else
            mv.addObject("isHierarchy", true);

        mv.addObject(ATTR_ELEMENT_DATA_HELPERS, elementDataGridHelpers);

        if (scheduleAuditElement.getStatus().equals(STATUS_ASSIGNED)) {
            elementResult = new ElementResult();
            elementResult.setScheduleAuditElement(scheduleAuditElement);
            mv.addObject("isNew", true);
        } else {
            elementResult = resultService.findBySchedule(scheduleAuditElement.getId());
            mv.addObject("isNew", false);
        }
        mv.addObject("elementResult", elementResult);
        mv.addObject("isView", view);
        mv.addObject("scheduleAuditId", scheduleAuditElement.getScheduleAudit().getId());
        mv.addObject("isSubmit", true);

        if (type.equals("view"))
            mv.addObject("screenId", helpService.findScreenId("2115"));
        else
            mv.addObject("screenId", helpService.findScreenId("2113"));
        return mv;
    }

新代码

@RequestMapping(value="showAdd",method=RequestMethod.GET)
    public ResponseEntity<Map<String, Object>> showAdd(@RequestParam("id") Long id, @RequestParam("type") String type){
        Map<String, Object> mapShowAdd = new HashMap<>();
    //  ResponseEntity<Map<String, Object>> resp = new ResponseEntity<Map<String,Object>>((Map<String, Object>) mapShowAdd, HttpStatus.OK);
        //resp=setModel(id, false, type);
        mapShowAdd.put("Set Model", setModel(id, false, type));
        return new ResponseEntity<Map<String, Object>>(mapShowAdd, HttpStatus.OK);
    }

则setModel

private ResponseEntity<Map<String, Object>> setModel(Long id, Boolean view, String type){
        ScheduleAuditElement scheduleAuditElement = elementService.findByAll(id);
        List<ElementDataGridHelper> elementDataGridHelpers = resultService.getElementsData(scheduleAuditElement);
        Map<String, Object> mapSet = new HashMap<>();
        mapSet.put("type", type);
        ElementResult elementResult = null;
        if (!resultService.isHierarchy(scheduleAuditElement.getElement().getId())
                && scheduleAuditElement.getStatus().equals(STATUS_ASSIGNED))
            mapSet.put("isHierarchy", false);
        else
            mapSet.put("isHierarchy", true);

        mapSet.put(ATTR_ELEMENT_DATA_HELPERS, elementDataGridHelpers);
        if (scheduleAuditElement.getStatus().equals(STATUS_ASSIGNED)) {
            elementResult = new ElementResult();
            elementResult.setScheduleAuditElement(scheduleAuditElement);
            mapSet.put("isNew", true);
        } else {
            elementResult = resultService.findBySchedule(scheduleAuditElement.getId());
            mapSet.put("isNew", false);
        }

        mapSet.put("elementResult", elementResult);
        mapSet.put("isView", view);
        mapSet.put("scheduleAuditId", scheduleAuditElement.getScheduleAudit().getId());
        mapSet.put("isSubmit", true);

        if (type.equals("view"))
            mapSet.put("screenId", helpService.findScreenId("2115"));
        else
            mapSet.put("screenId", helpService.findScreenId("2113"));
        return new ResponseEntity<Map<String, Object>>(mapSet, HttpStatus.OK);

    }

栈跟踪

<html><head><title>Apache Tomcat/7.0.47 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 500 - Could not write JSON: No serializer found for class org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationConfig.SerializationFeature.FAIL_ON_EMPTY_BEANS) ) (through reference chain: java.util.HashMap[&quot;Set Model&quot;]-&gt;org.springframework.http.ResponseEntity[&quot;body&quot;]-&gt;java.util.HashMap[&quot;elementDataGridHelpers&quot;]-&gt;java.util.ArrayList[0]-&gt;com.sherm.client.common.helper.ElementDataGridHelper[&quot;questions&quot;]-&gt;java.util.ArrayList[0]-&gt;com.sherm.client.audit.domain.ClientAuditQuestion[&quot;clientSubElement&quot;]-&gt;com.sherm.client.audit.domain.ClientSubElement_$$_javassist_22[&quot;clientElement&quot;]-&gt;com.sherm.client.audit.domain.ClientElement_$$_javassist_66[&quot;clientAudit&quot;]-&gt;com.sherm.client.audit.domain.ClientAudit_$$_javassist_98[&quot;handler&quot;]); nested exception is com.fasterxml.jackson.databind.JsonMappingException: No serializer found for class org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationConfig.SerializationFeature.FAIL_ON_EMPTY_BEANS) ) (through reference chain: java.util.HashMap[&quot;Set Model&quot;]-&gt;org.springframework.http.ResponseEntity[&quot;body&quot;]-&gt;java.util.HashMap[&quot;elementDataGridHelpers&quot;]-&gt;java.util.ArrayList[0]-&gt;com.sherm.client.common.helper.ElementDataGridHelper[&quot;questions&quot;]-&gt;java.util.ArrayList[0]-&gt;com.sherm.client.audit.domain.ClientAuditQuestion[&quot;clientSubElement&quot;]-&gt;com.sherm.client.audit.domain.ClientSubElement_$$_javassist_22[&quot;clientElement&quot;]-&gt;com.sherm.client.audit.domain.ClientElement_$$_javassist_66[&quot;clientAudit&quot;]-&gt;com.sherm.client.audit.domain.ClientAudit_$$_javassist_98[&quot;handler&quot;])</h1><HR size="1" noshade="noshade"><p><b>type</b> Exception report</p><p><b>message</b> <u>Could not write JSON: No serializer found for class org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationConfig.SerializationFeature.FAIL_ON_EMPTY_BEANS) ) (through reference chain: java.util.HashMap[&quot;Set Model&quot;]-&gt;org.springframework.http.ResponseEntity[&quot;body&quot;]-&gt;java.util.HashMap[&quot;elementDataGridHelpers&quot;]-&gt;java.util.ArrayList[0]-&gt;com.sherm.client.common.helper.ElementDataGridHelper[&quot;questions&quot;]-&gt;java.util.ArrayList[0]-&gt;com.sherm.client.audit.domain.ClientAuditQuestion[&quot;clientSubElement&quot;]-&gt;com.sherm.client.audit.domain.ClientSubElement_$$_javassist_22[&quot;clientElement&quot;]-&gt;com.sherm.client.audit.domain.ClientElement_$$_javassist_66[&quot;clientAudit&quot;]-&gt;com.sherm.client.audit.domain.ClientAudit_$$_javassist_98[&quot;handler&quot;]); nested exception is com.fasterxml.jackson.databind.JsonMappingException: No serializer found for class org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationConfig.SerializationFeature.FAIL_ON_EMPTY_BEANS) ) (through reference chain: java.util.HashMap[&quot;Set Model&quot;]-&gt;org.springframework.http.ResponseEntity[&quot;body&quot;]-&gt;java.util.HashMap[&quot;elementDataGridHelpers&quot;]-&gt;java.util.ArrayList[0]-&gt;com.sherm.client.common.helper.ElementDataGridHelper[&quot;questions&quot;]-&gt;java.util.ArrayList[0]-&gt;com.sherm.client.audit.domain.ClientAuditQuestion[&quot;clientSubElement&quot;]-&gt;com.sherm.client.audit.domain.ClientSubElement_$$_javassist_22[&quot;clientElement&quot;]-&gt;com.sherm.client.audit.domain.ClientElement_$$_javassist_66[&quot;clientAudit&quot;]-&gt;com.sherm.client.audit.domain.ClientAudit_$$_javassist_98[&quot;handler&quot;])</u></p><p><b>description</b> <u>The server encountered an internal error that prevented it from fulfilling this request.</u></p><p><b>exception</b> <pre>org.springframework.http.converter.HttpMessageNotWritableException: Could not write JSON: No serializer found for class org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationConfig.SerializationFeature.FAIL_ON_EMPTY_BEANS) ) (through reference chain: java.util.HashMap[&quot;Set Model&quot;]-&gt;org.springframework.http.ResponseEntity[&quot;body&quot;]-&gt;java.util.HashMap[&quot;elementDataGridHelpers&quot;]-&gt;java.util.ArrayList[0]-&gt;com.sherm.client.common.helper.ElementDataGridHelper[&quot;questions&quot;]-&gt;java.util.ArrayList[0]-&gt;com.sherm.client.audit.domain.ClientAuditQuestion[&quot;clientSubElement&quot;]-&gt;com.sherm.client.audit.domain.ClientSubElement_$$_javassist_22[&quot;clientElement&quot;]-&gt;com.sherm.client.audit.domain.ClientElement_$$_javassist_66[&quot;clientAudit&quot;]-&gt;com.sherm.client.audit.domain.ClientAudit_$$_javassist_98[&quot;handler&quot;]); nested exception is com.fasterxml.jackson.databind.JsonMappingException: No serializer found for class org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationConfig.SerializationFeature.FAIL_ON_EMPTY_BEANS) ) (through reference chain: java.util.HashMap[&quot;Set Model&quot;]-&gt;org.springframework.http.ResponseEntity[&quot;body&quot;]-&gt;java.util.HashMap[&quot;elementDataGridHelpers&quot;]-&gt;java.util.ArrayList[0]-&gt;com.sherm.client.common.helper.ElementDataGridHelper[&quot;questions&quot;]-&gt;java.util.ArrayList[0]-&gt;com.sherm.client.audit.domain.ClientAuditQuestion[&quot;clientSubElement&quot;]-&gt;com.sherm.client.audit.domain.ClientSubElement_$$_javassist_22[&quot;clientElement&quot;]-&gt;com.sherm.client.audit.domain.ClientElement_$$_javassist_66[&quot;clientAudit&quot;]-&gt;com.sherm.client.audit.domain.ClientAudit_$$_javassist_98[&quot;handler&quot;])
    org.springframework.http.converter.json.MappingJackson2HttpMessageConverter.writeInternal(MappingJackson2HttpMessageConverter.java:207)
    org.springframework.http.converter.AbstractHttpMessageConverter.write(AbstractHttpMessageConverter.java:179)
    org.springframework.web.servlet.mvc.method.annotation.AbstractMessageConverterMethodProcessor.writeWithMessageConverters(AbstractMessageConverterMethodProcessor.java:148)
    org.springframework.web.servlet.mvc.method.annotation.HttpEntityMethodProcessor.handleReturnValue(HttpEntityMethodProcessor.java:124)
    org.springframework.web.method.support.HandlerMethodReturnValueHandlerComposite.handleReturnValue(HandlerMethodReturnValueHandlerComposite.java:69)
    org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:122)
    org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:745)
    org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:686)
    org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)
    org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:925)
    org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856)
    org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:936)
    org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:827)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
    org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:812)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    org.springframework.web.filter.ShallowEtagHeaderFilter.doFilterInternal(ShallowEtagHeaderFilter.java:73)
    org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
    org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
    net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:163)
    com.sherm.client.common.filtertracker.FilterTrackingServletFilter.doFilter(FilterTrackingServletFilter.java:55)
    net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:206)
    net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:179)
    com.opensymphony.sitemesh.webapp.SiteMeshFilter.obtainContent(SiteMeshFilter.java:129)
    com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:77)
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
    org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)
    org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
    org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
    org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103)
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
    org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
    org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:154)
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
    org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
    com.sherm.client.security.jwtutil.JwtAuthenticationTokenFilter.doFilter(JwtAuthenticationTokenFilter.java:73)
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
    org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:110)
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
    org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:57)
    org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
    org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
    org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:50)
    org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
    com.sherm.client.security.jwtutil.CorsFilter.doFilterInternal(CorsFilter.java:31)
    org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
    org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
    org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)
    org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343)
    org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260)
</pre></p><p><b>root cause</b> <pre>com.fasterxml.jackson.databind.JsonMappingException: No serializer found for class org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationConfig.SerializationFeature.FAIL_ON_EMPTY_BEANS) ) (through reference chain: java.util.HashMap[&quot;Set Model&quot;]-&gt;org.springframework.http.ResponseEntity[&quot;body&quot;]-&gt;java.util.HashMap[&quot;elementDataGridHelpers&quot;]-&gt;java.util.ArrayList[0]-&gt;com.sherm.client.common.helper.ElementDataGridHelper[&quot;questions&quot;]-&gt;java.util.ArrayList[0]-&gt;com.sherm.client.audit.domain.ClientAuditQuestion[&quot;clientSubElement&quot;]-&gt;com.sherm.client.audit.domain.ClientSubElement_$$_javassist_22[&quot;clientElement&quot;]-&gt;com.sherm.client.audit.domain.ClientElement_$$_javassist_66[&quot;clientAudit&quot;]-&gt;com.sherm.client.audit.domain.ClientAudit_$$_javassist_98[&quot;handler&quot;])
    com.fasterxml.jackson.databind.ser.impl.UnknownSerializer.failForEmpty(UnknownSerializer.java:57)
    com.fasterxml.jackson.databind.ser.impl.UnknownSerializer.serialize(UnknownSerializer.java:26)
    com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:544)
    com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:551)
    com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:143)
    com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:544)
    com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:551)
    com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:143)
    com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:544)
    com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:551)
    com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:143)
    com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:544)
    com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:551)
    com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:143)
    com.fasterxml.jackson.databind.ser.impl.IndexedListSerializer.serializeContents(IndexedListSerializer.java:94)
    com.fasterxml.jackson.databind.ser.impl.IndexedListSerializer.serializeContents(IndexedListSerializer.java:21)
    com.fasterxml.jackson.databind.ser.std.AsArraySerializerBase.serialize(AsArraySerializerBase.java:180)
    com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:544)
    com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:551)
    com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:143)
    com.fasterxml.jackson.databind.ser.impl.IndexedListSerializer.serializeContents(IndexedListSerializer.java:94)
    com.fasterxml.jackson.databind.ser.impl.IndexedListSerializer.serializeContents(IndexedListSerializer.java:21)
    com.fasterxml.jackson.databind.ser.std.AsArraySerializerBase.serialize(AsArraySerializerBase.java:180)
    com.fasterxml.jackson.databind.ser.std.MapSerializer.serializeFields(MapSerializer.java:391)
    com.fasterxml.jackson.databind.ser.std.MapSerializer.serialize(MapSerializer.java:312)
    com.fasterxml.jackson.databind.ser.std.MapSerializer.serialize(MapSerializer.java:26)
    com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:544)
    com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:551)
    com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:143)
    com.fasterxml.jackson.databind.ser.std.MapSerializer.serializeFields(MapSerializer.java:391)
    com.fasterxml.jackson.databind.ser.std.MapSerializer.serialize(MapSerializer.java:312)
    com.fasterxml.jackson.databind.ser.std.MapSerializer.serialize(MapSerializer.java:26)
    com.fasterxml.jackson.databind.ser.DefaultSerializerProvider.serializeValue(DefaultSerializerProvider.java:120)
    com.fasterxml.jackson.databind.ObjectMapper.writeValue(ObjectMapper.java:1728)
    org.springframework.http.converter.json.MappingJackson2HttpMessageConverter.writeInternal(MappingJackson2HttpMessageConverter.java:204)
    org.springframework.http.converter.AbstractHttpMessageConverter.write(AbstractHttpMessageConverter.java:179)
    org.springframework.web.servlet.mvc.method.annotation.AbstractMessageConverterMethodProcessor.writeWithMessageConverters(AbstractMessageConverterMethodProcessor.java:148)
    org.springframework.web.servlet.mvc.method.annotation.HttpEntityMethodProcessor.handleReturnValue(HttpEntityMethodProcessor.java:124)
    org.springframework.web.method.support.HandlerMethodReturnValueHandlerComposite.handleReturnValue(HandlerMethodReturnValueHandlerComposite.java:69)
    org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:122)
    org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:745)
    org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:686)
    org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)
    org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:925)
    org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856)
    org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:936)
    org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:827)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
    org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:812)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    org.springframework.web.filter.ShallowEtagHeaderFilter.doFilterInternal(ShallowEtagHeaderFilter.java:73)
    org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
    org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
    net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:163)
    com.sherm.client.common.filtertracker.FilterTrackingServletFilter.doFilter(FilterTrackingServletFilter.java:55)
    net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:206)
    net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:179)
    com.opensymphony.sitemesh.webapp.SiteMeshFilter.obtainContent(SiteMeshFilter.java:129)
    com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:77)
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
    org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)
    org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
    org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
    org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103)
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
    org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
    org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:154)
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
    org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
    com.sherm.client.security.jwtutil.JwtAuthenticationTokenFilter.doFilter(JwtAuthenticationTokenFilter.java:73)
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
    org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:110)
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
    org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:57)
    org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
    org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
    org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:50)
    org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
    com.sherm.client.security.jwtutil.CorsFilter.doFilterInternal(CorsFilter.java:31)
    org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
    org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
    org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)
    org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343)
    org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260)
</pre></p><p><b>note</b> <u>The full stack trace of the root cause is available in the Apache Tomcat/7.0.47 logs.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/7.0.47</h3></body></html>

0 个答案:

没有答案