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

[APIMAN] Request Aborted Exception With File upload

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 1.2.x
    • None
    • Management API
    • None

      Hi,

      File upload failing with Android and Web client.
      Request and Response Header . APIMAN giving error

      {"responseCode":500,"message":null,"trace":"io.apiman.gateway.engine.beans.exceptions.RequestAbortedException
      	at io.apiman.gateway.engine.impl.ApiRequestExecutorImpl$3.abort(ApiRequestExecutorImpl.java:721)
      	at io.apiman.gateway.platforms.servlet.GatewayServlet$2.handle(GatewayServlet.java:174)
      	at io.apiman.gateway.platforms.servlet.GatewayServlet$2.handle(GatewayServlet.java:161)
      	at io.apiman.gateway.engine.impl.ApiRequestExecutorImpl.handleStream(ApiRequestExecutorImpl.java:693)
      	at io.apiman.gateway.engine.impl.ApiRequestExecutorImpl.lambda$null$3(ApiRequestExecutorImpl.java:268)
      	at io.apiman.gateway.engine.policy.Chain.handleHead(Chain.java:211)
      	at io.apiman.gateway.engine.policy.Chain.doApply(Chain.java:150)
      	at io.apiman.plugins.ril.authorization_policy.AuthorizationPolicy.handleAuthorization(AuthorizationPolicy.java:151)
      	at io.apiman.plugins.ril.authorization_policy.AuthorizationPolicy.doApply(AuthorizationPolicy.java:74)
      	at io.apiman.plugins.ril.authorization_policy.AuthorizationPolicy.doApply(AuthorizationPolicy.java:38)
      	at io.apiman.gateway.engine.policies.AbstractMappedPolicy.apply(AbstractMappedPolicy.java:70)
      	at io.apiman.gateway.engine.policy.RequestChain.applyPolicy(RequestChain.java:68)
      	at io.apiman.gateway.engine.policy.Chain.doApply(Chain.java:148)
      	at io.apiman.gateway.engine.impl.ApiRequestExecutorImpl.lambda$execute$4(ApiRequestExecutorImpl.java:271)
      	at io.apiman.gateway.engine.impl.ApiRequestExecutorImpl.lambda$loadPolicies$7(ApiRequestExecutorImpl.java:631)
      	at io.apiman.gateway.engine.policy.PolicyFactoryImpl.loadPolicy(PolicyFactoryImpl.java:100)
      	at io.apiman.gateway.engine.impl.ApiRequestExecutorImpl.loadPolicies(ApiRequestExecutorImpl.java:603)
      	at io.apiman.gateway.engine.impl.ApiRequestExecutorImpl.lambda$execute$6(ApiRequestExecutorImpl.java:391)
      	at io.apiman.gateway.engine.impl.SecureRegistryWrapper$3.handle(SecureRegistryWrapper.java:172)
      	at io.apiman.gateway.engine.impl.SecureRegistryWrapper$3.handle(SecureRegistryWrapper.java:154)
      	at io.apiman.gateway.engine.es.CachingESRegistry.getContract(CachingESRegistry.java:101)
      	at io.apiman.gateway.engine.impl.SecureRegistryWrapper.getContract(SecureRegistryWrapper.java:154)
      	at io.apiman.gateway.engine.impl.ApiRequestExecutorImpl.execute(ApiRequestExecutorImpl.java:357)
      	at io.apiman.gateway.platforms.servlet.GatewayServlet.doAction(GatewayServlet.java:179)
      	at io.apiman.gateway.platforms.servlet.GatewayServlet.service(GatewayServlet.java:79)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
      	at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)
      	at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
      	at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
      	at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
      	at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
      	at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)
      	at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
      	at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
      	at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
      	at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
      	at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)
      	at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
      	at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)
      	at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
      	at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
      	at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
      	at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
      	at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
      	at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:284)
      	at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:263)
      	at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)
      	at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:174)
      	at io.undertow.server.Connectors.executeRootHandler(Connectors.java:202)
      	at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:793)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      "}{"responseCode":500,"message":"io.apiman.gateway.engine.beans.exceptions.ConnectorException: unexpected end of stream on Connection{upload.preprod-jiodrive.com:80, proxy=DIRECT hostAddress=172.21.93.248 cipherSuite=none protocol=http/1.1} (recycle count=0)","trace":"java.lang.RuntimeException: io.apiman.gateway.engine.beans.exceptions.ConnectorException: unexpected end of stream on Connection{upload.preprod-jiodrive.com:80, proxy=DIRECT hostAddress=172.21.93.248 cipherSuite=none protocol=http/1.1} (recycle count=0)
      	at io.apiman.gateway.platforms.servlet.GatewayServlet$2.handle(GatewayServlet.java:175)
      	at io.apiman.gateway.platforms.servlet.GatewayServlet$2.handle(GatewayServlet.java:161)
      	at io.apiman.gateway.engine.impl.ApiRequestExecutorImpl.handleStream(ApiRequestExecutorImpl.java:693)
      	at io.apiman.gateway.engine.impl.ApiRequestExecutorImpl.lambda$null$3(ApiRequestExecutorImpl.java:268)
      	at io.apiman.gateway.engine.policy.Chain.handleHead(Chain.java:211)
      	at io.apiman.gateway.engine.policy.Chain.doApply(Chain.java:150)
      	at io.apiman.plugins.ril.authorization_policy.AuthorizationPolicy.handleAuthorization(AuthorizationPolicy.java:151)
      	at io.apiman.plugins.ril.authorization_policy.AuthorizationPolicy.doApply(AuthorizationPolicy.java:74)
      	at io.apiman.plugins.ril.authorization_policy.AuthorizationPolicy.doApply(AuthorizationPolicy.java:38)
      	at io.apiman.gateway.engine.policies.AbstractMappedPolicy.apply(AbstractMappedPolicy.java:70)
      	at io.apiman.gateway.engine.policy.RequestChain.applyPolicy(RequestChain.java:68)
      	at io.apiman.gateway.engine.policy.Chain.doApply(Chain.java:148)
      	at io.apiman.gateway.engine.impl.ApiRequestExecutorImpl.lambda$execute$4(ApiRequestExecutorImpl.java:271)
      	at io.apiman.gateway.engine.impl.ApiRequestExecutorImpl.lambda$loadPolicies$7(ApiRequestExecutorImpl.java:631)
      	at io.apiman.gateway.engine.policy.PolicyFactoryImpl.loadPolicy(PolicyFactoryImpl.java:100)
      	at io.apiman.gateway.engine.impl.ApiRequestExecutorImpl.loadPolicies(ApiRequestExecutorImpl.java:603)
      	at io.apiman.gateway.engine.impl.ApiRequestExecutorImpl.lambda$execute$6(ApiRequestExecutorImpl.java:391)
      	at io.apiman.gateway.engine.impl.SecureRegistryWrapper$3.handle(SecureRegistryWrapper.java:172)
      	at io.apiman.gateway.engine.impl.SecureRegistryWrapper$3.handle(SecureRegistryWrapper.java:154)
      	at io.apiman.gateway.engine.es.CachingESRegistry.getContract(CachingESRegistry.java:101)
      	at io.apiman.gateway.engine.impl.SecureRegistryWrapper.getContract(SecureRegistryWrapper.java:154)
      	at io.apiman.gateway.engine.impl.ApiRequestExecutorImpl.execute(ApiRequestExecutorImpl.java:357)
      	at io.apiman.gateway.platforms.servlet.GatewayServlet.doAction(GatewayServlet.java:179)
      	at io.apiman.gateway.platforms.servlet.GatewayServlet.service(GatewayServlet.java:79)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
      	at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)
      	at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
      	at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
      	at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
      	at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
      	at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)
      	at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
      	at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
      	at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
      	at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
      	at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)
      	at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
      	at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)
      	at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
      	at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
      	at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
      	at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
      	at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
      	at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:284)
      	at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:263)
      	at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)
      	at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:174)
      	at io.undertow.server.Connectors.executeRootHandler(Connectors.java:202)
      	at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:793)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: io.apiman.gateway.engine.beans.exceptions.ConnectorException: unexpected end of stream on Connection{upload.preprod-jiodrive.com:80, proxy=DIRECT hostAddress=172.21.93.248 cipherSuite=none protocol=http/1.1} (recycle count=0)
      	at io.apiman.gateway.platforms.servlet.connectors.HttpApiConnection.end(HttpApiConnection.java:360)
      	at io.apiman.gateway.engine.impl.ApiRequestExecutorImpl.lambda$null$2(ApiRequestExecutorImpl.java:263)
      	at io.apiman.gateway.engine.io.AbstractStream.handleEnd(AbstractStream.java:116)
      	at io.apiman.gateway.engine.policy.Chain.end(Chain.java:193)
      	at io.apiman.gateway.engine.impl.ApiRequestExecutorImpl$3.end(ApiRequestExecutorImpl.java:706)
      	at io.apiman.gateway.platforms.servlet.GatewayServlet$2.handle(GatewayServlet.java:172)
      	... 51 more
      Caused by: java.io.IOException: unexpected end of stream on Connection{upload.preprod-jiodrive.com:80, proxy=DIRECT hostAddress=172.21.93.248 cipherSuite=none protocol=http/1.1} (recycle count=0)
      	at com.squareup.okhttp.internal.http.HttpConnection.readResponse(HttpConnection.java:211)
      	at com.squareup.okhttp.internal.http.HttpTransport.readResponseHeaders(HttpTransport.java:80)
      	at com.squareup.okhttp.internal.http.HttpEngine.readNetworkResponse(HttpEngine.java:917)
      	at com.squareup.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:793)
      	at io.apiman.gateway.platforms.servlet.connectors.ok.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:441)
      	at io.apiman.gateway.platforms.servlet.connectors.ok.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:386)
      	at io.apiman.gateway.platforms.servlet.connectors.ok.HttpURLConnectionImpl.getHeaders(HttpURLConnectionImpl.java:152)
      	at io.apiman.gateway.platforms.servlet.connectors.ok.HttpURLConnectionImpl.getHeaderFields(HttpURLConnectionImpl.java:212)
      	at io.apiman.gateway.platforms.servlet.connectors.HttpApiConnection.end(HttpApiConnection.java:349)
      	... 56 more
      Caused by: java.io.EOFException: \n not found: size=0 content=...
      	at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:200)
      	at com.squareup.okhttp.internal.http.HttpConnection.readResponse(HttpConnection.java:191)
      	... 64 more
      "}
      

              ewittman@redhat.com Eric Wittmann
              nidhish.agrawal Nidhish Agrawal (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: