Uploaded image for project: 'apiman (API Management)'
  1. apiman (API Management)
  2. APIMAN-666

Transaction isn't closed properly when Action fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.1.8.Final, 1.1.x
    • None
    • None
    • None

      When doing a publish in the API Manager, there is a transaction error (not closed) if the publish fails (for example due to an authentication error between the manager and gateway).

      2015-08-31 14:05:43,034 ERROR [stderr] (default task-25) java.lang.Exception: Error: storage transaction is still open for request: /actions
      2015-08-31 14:05:43,054 ERROR [stderr] (default task-25) 	at io.apiman.manager.api.war.TransactionWatchdogFilter.doFilter(TransactionWatchdogFilter.java:60)
      2015-08-31 14:05:43,059 ERROR [stderr] (default task-25) 	at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60)
      2015-08-31 14:05:43,064 ERROR [stderr] (default task-25) 	at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132)
      2015-08-31 14:05:43,070 ERROR [stderr] (default task-25) 	at io.apiman.manager.api.security.impl.DefaultSecurityContextFilter.doFilter(DefaultSecurityContextFilter.java:56)
      2015-08-31 14:05:43,077 ERROR [stderr] (default task-25) 	at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60)
      2015-08-31 14:05:43,082 ERROR [stderr] (default task-25) 	at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132)
      2015-08-31 14:05:43,088 ERROR [stderr] (default task-25) 	at io.apiman.common.servlet.DisableCachingFilter.doFilter(DisableCachingFilter.java:59)
      2015-08-31 14:05:43,093 ERROR [stderr] (default task-25) 	at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60)
      2015-08-31 14:05:43,114 ERROR [stderr] (default task-25) 	at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132)
      2015-08-31 14:05:43,121 ERROR [stderr] (default task-25) 	at io.apiman.common.servlet.ApimanCorsFilter.doFilter(ApimanCorsFilter.java:71)
      2015-08-31 14:05:43,126 ERROR [stderr] (default task-25) 	at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60)
      2015-08-31 14:05:43,131 ERROR [stderr] (default task-25) 	at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132)
      2015-08-31 14:05:43,140 ERROR [stderr] (default task-25) 	at io.apiman.common.servlet.LocaleFilter.doFilter(LocaleFilter.java:61)
      2015-08-31 14:05:43,146 ERROR [stderr] (default task-25) 	at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60)
      2015-08-31 14:05:43,151 ERROR [stderr] (default task-25) 	at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132)
      2015-08-31 14:05:43,157 ERROR [stderr] (default task-25) 	at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:85)
      2015-08-31 14:05:43,162 ERROR [stderr] (default task-25) 	at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61)
      2015-08-31 14:05:43,169 ERROR [stderr] (default task-25) 	at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
      2015-08-31 14:05:43,175 ERROR [stderr] (default task-25) 	at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
      2015-08-31 14:05:43,182 ERROR [stderr] (default task-25) 	at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
      2015-08-31 14:05:43,188 ERROR [stderr] (default task-25) 	at org.keycloak.adapters.undertow.UndertowAuthenticatedActionsHandler.handleRequest(UndertowAuthenticatedActionsHandler.java:66)
      2015-08-31 14:05:43,195 ERROR [stderr] (default task-25) 	at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)
      2015-08-31 14:05:43,202 ERROR [stderr] (default task-25) 	at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:56)
      2015-08-31 14:05:43,209 ERROR [stderr] (default task-25) 	at io.undertow.server.handlers.DisableCacheHandler.handleRequest(DisableCacheHandler.java:33)
      2015-08-31 14:05:43,217 ERROR [stderr] (default task-25) 	at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
      2015-08-31 14:05:43,223 ERROR [stderr] (default task-25) 	at io.undertow.security.handlers.AuthenticationConstraintHandler.handleRequest(AuthenticationConstraintHandler.java:51)
      2015-08-31 14:05:43,230 ERROR [stderr] (default task-25) 	at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45)
      2015-08-31 14:05:43,237 ERROR [stderr] (default task-25) 	at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:63)
      2015-08-31 14:05:43,244 ERROR [stderr] (default task-25) 	at io.undertow.servlet.handlers.security.ServletSecurityConstraintHandler.handleRequest(ServletSecurityConstraintHandler.java:56)
      2015-08-31 14:05:43,252 ERROR [stderr] (default task-25) 	at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58)
      2015-08-31 14:05:43,259 ERROR [stderr] (default task-25) 	at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70)
      2015-08-31 14:05:43,266 ERROR [stderr] (default task-25) 	at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76)
      2015-08-31 14:05:43,273 ERROR [stderr] (default task-25) 	at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
      2015-08-31 14:05:43,278 ERROR [stderr] (default task-25) 	at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
      2015-08-31 14:05:43,285 ERROR [stderr] (default task-25) 	at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
      2015-08-31 14:05:43,290 ERROR [stderr] (default task-25) 	at org.keycloak.adapters.undertow.ServletPreAuthActionsHandler.handleRequest(ServletPreAuthActionsHandler.java:69)
      2015-08-31 14:05:43,297 ERROR [stderr] (default task-25) 	at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
      2015-08-31 14:05:43,302 ERROR [stderr] (default task-25) 	at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:261)
      2015-08-31 14:05:43,308 ERROR [stderr] (default task-25) 	at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:247)
      2015-08-31 14:05:43,314 ERROR [stderr] (default task-25) 	at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:76)
      2015-08-31 14:05:43,319 ERROR [stderr] (default task-25) 	at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:166)
      2015-08-31 14:05:43,325 ERROR [stderr] (default task-25) 	at io.undertow.server.Connectors.executeRootHandler(Connectors.java:197)
      2015-08-31 14:05:43,330 ERROR [stderr] (default task-25) 	at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:759)
      2015-08-31 14:05:43,335 ERROR [stderr] (default task-25) 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      2015-08-31 14:05:43,340 ERROR [stderr] (default task-25) 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      2015-08-31 14:05:43,345 ERROR [stderr] (default task-25) 	at java.lang.Thread.run(Thread.java:745)
      

              ewittman@redhat.com Eric Wittmann
              ewittman@redhat.com Eric Wittmann
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: