AnsweredAssumed Answered

activiti-webapp-rest2 exception

Question asked by hbacanak@hotmail.com on Mar 3, 2015
Latest reply on Mar 4, 2015 by hbacanak@hotmail.com
I have downloaded and made some modifications activiti-webapp-rest2. Modifications are changind the database to postgresql and moving build automation mechanism to gradle. No changes are made to spring configuration. Application is working without problem, responding rest service calls. Yet in debug mode following exceptions is generated continously without any http request. At  info level no exception is shown. Anything comes to mind to prevent the exceptions? Any timed tasks trying to access secured services that needs to be configured?

11:23:16,957 [http-nio-8080-exec-6] DEBUG org.springframework.security.web.access.ExceptionTranslationFilter  - Calling Authentication entry point.
11:23:16,957 [http-nio-8080-exec-6] DEBUG org.springframework.security.web.authentication.DelegatingAuthenticationEntryPoint  - Trying to match using RequestHeaderRequestMatcher [expectedHeaderName=X-Requested-With, expectedHeaderValue=XMLHttpRequest]
11:23:16,957 [http-nio-8080-exec-6] DEBUG org.springframework.security.web.authentication.DelegatingAuthenticationEntryPoint  - No match found. Using default entry point org.springframework.security.web.authentication.www.BasicAuthenticationEntryPoint@7687bdf1
11:23:16,957 [http-nio-8080-exec-6] DEBUG org.springframework.security.web.context.SecurityContextPersistenceFilter  - SecurityContextHolder now cleared, as request processing completed
11:23:17,466 [http-nio-8080-exec-10] DEBUG org.springframework.security.web.FilterChainProxy  - / at position 1 of 11 in additional filter chain; firing Filter: 'WebAsyncManagerIntegrationFilter'
11:23:17,466 [http-nio-8080-exec-10] DEBUG org.springframework.security.web.FilterChainProxy  - / at position 2 of 11 in additional filter chain; firing Filter: 'SecurityContextPersistenceFilter'
11:23:17,466 [http-nio-8080-exec-10] DEBUG org.springframework.security.web.FilterChainProxy  - / at position 3 of 11 in additional filter chain; firing Filter: 'HeaderWriterFilter'
11:23:17,466 [http-nio-8080-exec-10] DEBUG org.springframework.security.web.header.writers.HstsHeaderWriter  - Not injecting HSTS header since it did not match the requestMatcher org.springframework.security.web.header.writers.HstsHeaderWriter$SecureRequestMatcher@48b99095
11:23:17,466 [http-nio-8080-exec-10] DEBUG org.springframework.security.web.FilterChainProxy  - / at position 4 of 11 in additional filter chain; firing Filter: 'LogoutFilter'
11:23:17,466 [http-nio-8080-exec-10] DEBUG org.springframework.security.web.util.matcher.AntPathRequestMatcher  - Checking match of request : '/'; against '/logout'
11:23:17,466 [http-nio-8080-exec-10] DEBUG org.springframework.security.web.FilterChainProxy  - / at position 5 of 11 in additional filter chain; firing Filter: 'BasicAuthenticationFilter'
11:23:17,466 [http-nio-8080-exec-10] DEBUG org.springframework.security.web.FilterChainProxy  - / at position 6 of 11 in additional filter chain; firing Filter: 'RequestCacheAwareFilter'
11:23:17,466 [http-nio-8080-exec-10] DEBUG org.springframework.security.web.FilterChainProxy  - / at position 7 of 11 in additional filter chain; firing Filter: 'SecurityContextHolderAwareRequestFilter'
11:23:17,466 [http-nio-8080-exec-10] DEBUG org.springframework.security.web.FilterChainProxy  - / at position 8 of 11 in additional filter chain; firing Filter: 'AnonymousAuthenticationFilter'
11:23:17,466 [http-nio-8080-exec-10] DEBUG org.springframework.security.web.authentication.AnonymousAuthenticationFilter  - Populated SecurityContextHolder with anonymous token: 'org.springframework.security.authentication.AnonymousAuthenticationToken@9055e4a6: Principal: anonymousUser; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@957e: RemoteIpAddress: 127.0.0.1; SessionId: null; Granted Authorities: ROLE_ANONYMOUS'
11:23:17,466 [http-nio-8080-exec-10] DEBUG org.springframework.security.web.FilterChainProxy  - / at position 9 of 11 in additional filter chain; firing Filter: 'SessionManagementFilter'
11:23:17,466 [http-nio-8080-exec-10] DEBUG org.springframework.security.web.FilterChainProxy  - / at position 10 of 11 in additional filter chain; firing Filter: 'ExceptionTranslationFilter'
11:23:17,466 [http-nio-8080-exec-10] DEBUG org.springframework.security.web.FilterChainProxy  - / at position 11 of 11 in additional filter chain; firing Filter: 'FilterSecurityInterceptor'
11:23:17,466 [http-nio-8080-exec-10] DEBUG org.springframework.security.web.access.intercept.FilterSecurityInterceptor  - Secure object: FilterInvocation: URL: /; Attributes: [authenticated]
11:23:17,466 [http-nio-8080-exec-10] DEBUG org.springframework.security.web.access.intercept.FilterSecurityInterceptor  - Previously Authenticated: org.springframework.security.authentication.AnonymousAuthenticationToken@9055e4a6: Principal: anonymousUser; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@957e: RemoteIpAddress: 127.0.0.1; SessionId: null; Granted Authorities: ROLE_ANONYMOUS
11:23:17,466 [http-nio-8080-exec-10] DEBUG org.springframework.security.access.vote.AffirmativeBased  - Voter: org.springframework.security.web.access.expression.WebExpressionVoter@632a8784, returned: -1
11:23:17,467 [http-nio-8080-exec-10] DEBUG org.springframework.security.web.access.ExceptionTranslationFilter  - Access is denied (user is anonymous); redirecting to authentication entry point
org.springframework.security.access.AccessDeniedException: Access is denied
   at org.springframework.security.access.vote.AffirmativeBased.decide(AffirmativeBased.java:83)
   at org.springframework.security.access.intercept.AbstractSecurityInterceptor.beforeInvocation(AbstractSecurityInterceptor.java:206)
   at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:115)
   at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
   at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
   at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
   at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
   at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103)
   at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
   at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
   at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
   at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:154)
   at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
   at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)
   at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
   at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:150)
   at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
   at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:110)
   at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
   at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:57)
   at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
   at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
   at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
   at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
   at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:50)
   at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
   at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
   at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
   at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)
   at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:344)
   at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:261)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:136)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
   at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:526)
   at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078)
   at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:655)
   at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222)
   at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1566)
   at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1523)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
   at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
   at java.lang.Thread.run(Thread.java:745)

Outcomes