在wildfly 8.2上运行代码时遇到错误,但是在jboss 7.1中也可以正常工作
错误[io.undertow.request](默认任务27)UT005023:对/ authenticate的异常处理请求:java.lang.IllegalStateException:响应已关闭。 在org.jboss.resteasy.specimpl.BuiltResponse.abortIfClosed(BuiltResponse.java:254)[resteasy-jaxrs-3.0.6.Final.jar:] 在org.jboss.resteasy.client.jaxrs.internal.ClientResponse.readEntity(ClientResponse.java:148)[resteasy-client-3.0.6.Final.jar:] 在org.jboss.resteasy.specimpl.BuiltResponse.readEntity(BuiltResponse.java:217)[resteasy-jaxrs-3.0.6.Final.jar:] 在com.c2lbiz.symbiosys.agencyportalui.spring.beans.PortalAuthProvider.authenticate(PortalAuthProvider.java:82)上[类:] 在org.springframework.security.authentication.ProviderManager.authenticate(ProviderManager.java:156)上[spring-security-core-3.2.1.RELEASE.jar:3.2.1.RELEASE] 在org.springframework.security.authentication.ProviderManager.authenticate(ProviderManager.java:177)上[spring-security-core-3.2.1.RELEASE.jar:3.2.1.RELEASE] 在org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter.attemptAuthentication(UsernamePasswordAuthenticationFilter.java:94)上[spring-security-web-3.2.1.RELEASE.jar:3.2.1.RELEASE] 在org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:211)[spring-security-web-3.2.1.RELEASE.jar:3.2.1.RELEASE] 在org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter(FilterChainProxy.java:342)[spring-security-web-3.2.1.RELEASE.jar:3.2.1.RELEASE] 在org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:110)[spring-security-web-3.2.1.RELEASE.jar:3.2.1.RELEASE] 在org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter(FilterChainProxy.java:342)[spring-security-web-3.2.1.RELEASE.jar:3.2.1.RELEASE] 在org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:57)[spring-security-web-3.2.1.RELEASE.jar:3.2.1.RELEASE] 在org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:108)[spring-web-4.0.1.RELEASE.jar:4.0.1.RELEASE] 在org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter(FilterChainProxy.java:342)[spring-security-web-3.2.1.RELEASE.jar:3.2.1.RELEASE] 在org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:50)上[spring-security-web-3.2.1.RELEASE.jar:3.2.1.RELEASE] 在org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:108)[spring-web-4.0.1.RELEASE.jar:4.0.1.RELEASE] 在org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter(FilterChainProxy.java:342)[spring-security-web-3.2.1.RELEASE.jar:3.2.1.RELEASE] 在org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)[spring-security-web-3.2.1.RELEASE.jar:3.2.1.RELEASE] 在org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter(FilterChainProxy.java:342)[spring-security-web-3.2.1.RELEASE.jar:3.2.1.RELEASE] 在org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)[spring-security-web-3.2.1.RELEASE.jar:3.2.1.RELEASE] 在org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)[spring-security-web-3.2.1.RELEASE.jar:3.2.1.RELEASE] 在org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:344)[spring-web-4.0.1.RELEASE.jar:4.0.1.RELEASE] 在org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:261)[spring-web-4.0.1.RELEASE.jar:4.0.1.RELEASE] 在io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60)[undertow-servlet-1.1.0.Final.jar:1.1.0.Final] 在io.undertow.servlet.handlers.FilterHandler $ FilterChainImpl.doFilter(FilterHandler.java:132)[undertow-servlet-1.1.0.Final.jar:1.1.0.Final] 在io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:85)[undertow-servlet-1.1.0.Final.jar:1.1.0.Final] 在io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61)上[undertow-servlet-1.1.0.Final.jar:1.1.0.Final] 在io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)[undertow-servlet-1.1.0.Final.jar:1.1.0.Final] 在org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)处 在io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)[undertow-core-1.1.0.Final.jar:1.1.0.Final] 在io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)上[undertow-servlet-1.1.0.Final.jar:1.1.0.Final] 在io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:56)[undertow-servlet-1.1.0.Final.jar:1.1.0.Final] 在io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)[undertow-core-1.1.0.Final.jar:1.1.0.Final] 在io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45)[undertow-core-1.1.0.Final.jar:1.1.0.Final] 在io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:63)[undertow-servlet-1.1.0.Final.jar:1.1.0.Final] 在io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58)[undertow-core-1.1.0.Final.jar:1.1.0.Final] 在io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70)[undertow-servlet-1.1.0.Final.jar:1.1.0.Final] 在io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76)[undertow-core-1.1.0.Final.jar:1.1.0.Final] 在io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)[undertow-core-1.1.0.Final.jar:1.1.0.Final] 在org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)处 在io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)[undertow-core-1.1.0.Final.jar:1.1.0.Final] 在io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)[undertow-core-1.1.0.Final.jar:1.1.0.Final] 在io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:261)[undertow-servlet-1.1.0.Final.jar:1.1.0.Final] 在io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:247)[undertow-servlet-1.1.0.Final.jar:1.1.0.Final] 在io.undertow.servlet.handlers.ServletInitialHandler.access $ 000(ServletInitialHandler.java:76)[undertow-servlet-1.1.0.Final.jar:1.1.0.Final] 在io.undertow.servlet.handlers.ServletInitialHandler $ 1.handleRequest(ServletInitialHandler.java:166)[undertow-servlet-1.1.0.Final.jar:1.1.0.Final] 在io.undertow.server.Connectors.executeRootHandler(Connectors.java:197)[undertow-core-1.1.0.Final.jar:1.1.0.Final] 在io.undertow.server.HttpServerExchange $ 1.run(HttpServerExchange.java:759)[undertow-core-1.1.0.Final.jar:1.1.0.Final] 在java.util.concurrent.ThreadPoolExecutor.runWorker(未知来源)[rt.jar:1.7.0_67] 在java.util.concurrent.ThreadPoolExecutor $ Worker.run(未知来源)[rt.jar:1.7.0_67] 在java.lang.Thread.run(未知来源)[rt.jar:1.7.0_67]