Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NumberFormatException when uploading files #1840

Closed
agavrilov76 opened this issue May 5, 2024 · 5 comments
Closed

NumberFormatException when uploading files #1840

agavrilov76 opened this issue May 5, 2024 · 5 comments
Assignees
Labels

Comments

@agavrilov76
Copy link

agavrilov76 commented May 5, 2024

Uploading a file fails with 500 error since 3.7.3.

A code like this:

final var content = S3RequestBodyWrapper.fromFile(fileToUpload);
s3Client.putObject(putObjectRequest.toSdkRequest(), content.requestBody());

Generates the following error log:

  .-')              _   .-')                           .-. .-')
 ( OO ).           ( '.( OO )_                         \  ( OO )
(_)---\_) .-----.   ,--.   ,--.).-'),-----.    .-----. ,--. ,--.
/    _ | /  -.   \  |   `.'   |( OO'  .-.  '  '  .--./ |  .'   /
\  :` `. '-' _'  |  |         |/   |  | |  |  |  |('-. |      /,
 '..`''.)   |_  <   |  |'.'|  |\_) |  |\|  | /_) |OO  )|     ' _)
.-._)   \.-.  |  |  |  |   |  |  \ |  | |  | ||  |`-'| |  .   \
\       /\ `-'   /  |  |   |  |   `'  '-'  '(_'  '--'\ |  |\   \
 `-----'  `----''   `--'   `--'     `-----'    `-----' `--' '--'



2024-05-05T19:09:47.374Z  INFO 1 --- [           main] c.a.testing.s3mock.S3MockApplication     : Starting S3MockApplication using Java 21.0.3 with PID 1 (/s3mock.jar started by root in /)
2024-05-05T19:09:47.379Z  INFO 1 --- [           main] c.a.testing.s3mock.S3MockApplication     : No active profile set, falling back to 1 default profile: "default"
2024-05-05T19:09:48.367Z  INFO 1 --- [           main] o.s.b.w.e.j.JettyServletWebServerFactory : Server initialized with port: 9191
2024-05-05T19:09:48.461Z  INFO 1 --- [           main] org.eclipse.jetty.server.Server          : jetty-12.0.8; built: 2024-03-29T19:58:19.443Z; git: ffffdcc3c863b8f49901cc7c84a8157ebc5d15f9; jvm 21.0.3+9-alpine-r0
2024-05-05T19:09:48.490Z  INFO 1 --- [           main] o.e.j.s.h.ContextHandler.application     : Initializing Spring embedded WebApplicationContext
2024-05-05T19:09:48.491Z  INFO 1 --- [           main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 1059 ms
Standard Commons Logging discovery in action with spring-jcl: please remove commons-logging.jar from classpath in order to avoid potential conflicts
2024-05-05T19:09:48.619Z  INFO 1 --- [           main] o.e.j.session.DefaultSessionIdManager    : Session workerName=node0
2024-05-05T19:09:48.624Z  INFO 1 --- [           main] o.e.jetty.server.handler.ContextHandler  : Started osbwej.JettyEmbeddedWebAppContext@59845579{application,/,b=file:/tmp/jetty-docbase.9191.17981908604974849518/,a=AVAILABLE,h=oeje10s.SessionHandler@30c19bff{STARTED}}
2024-05-05T19:09:48.624Z  INFO 1 --- [           main] o.e.j.e.servlet.ServletContextHandler    : Started osbwej.JettyEmbeddedWebAppContext@59845579{application,/,b=file:/tmp/jetty-docbase.9191.17981908604974849518/,a=AVAILABLE,h=oeje10s.SessionHandler@30c19bff{STARTED}}
2024-05-05T19:09:48.628Z  INFO 1 --- [           main] org.eclipse.jetty.server.Server          : Started oejs.Server@a146b11{STARTING}[12.0.8,sto=0] @2106ms
2024-05-05T19:09:48.643Z  INFO 1 --- [           main] c.a.t.s3mock.store.StoreConfiguration    : Successfully created "/s3mockroot" as root folder. Will retain files on exit: false
2024-05-05T19:09:48.918Z  WARN 1 --- [           main] i.m.c.i.binder.jvm.JvmGcMetrics          : GC notifications will not be available because com.sun.management.GarbageCollectionNotificationInfo is not present
2024-05-05T19:09:48.967Z  INFO 1 --- [           main] o.s.b.a.e.web.EndpointLinksResolver      : Exposing 1 endpoint(s) beneath base path '/actuator'
2024-05-05T19:09:49.010Z  INFO 1 --- [           main] o.e.j.s.h.ContextHandler.application     : Initializing Spring DispatcherServlet 'dispatcherServlet'
2024-05-05T19:09:49.011Z  INFO 1 --- [           main] o.s.web.servlet.DispatcherServlet        : Initializing Servlet 'dispatcherServlet'
2024-05-05T19:09:49.012Z  INFO 1 --- [           main] o.s.web.servlet.DispatcherServlet        : Completed initialization in 1 ms
2024-05-05T19:09:49.020Z  INFO 1 --- [           main] o.e.jetty.util.ssl.SslContextFactory     : x509=X509@539fc5d1(selfsigned,h=[localhost, adobe s3mock],a=[],w=[]) for Server@4cae66a8[provider=null,keyStore=null,trustStore=null]
2024-05-05T19:09:49.104Z  INFO 1 --- [           main] o.e.jetty.server.AbstractConnector       : Started SslValidatingServerConnector@591be8aa{SSL, (ssl, http/1.1)}{0.0.0.0:9191}
2024-05-05T19:09:49.106Z  INFO 1 --- [           main] o.e.jetty.server.AbstractConnector       : Started ServerConnector@3d4ecc67{HTTP/1.1, (http/1.1)}{0.0.0.0:9090}
2024-05-05T19:09:49.107Z  INFO 1 --- [           main] o.s.b.web.embedded.jetty.JettyWebServer  : Jetty started on ports 9191 (ssl, http/1.1), 9090 (http/1.1) with context path '/'
2024-05-05T19:09:49.120Z  INFO 1 --- [           main] c.a.testing.s3mock.S3MockApplication     : Started S3MockApplication in 2.108 seconds (process running for 2.597)
2024-05-05T19:09:54.377Z  WARN 1 --- [ qtp92621336-65] o.e.jetty.ee10.servlet.ServletChannel    : /xxx/test_country/campaign-log/campaign-log_20010101-20010201_campaign-log-2-c2.csv

jakarta.servlet.ServletException: Request processing failed: java.lang.NumberFormatException: For input string: "nk-signature=406119c2836f44120f93e7eeb0b9aa0d201ea1a02a7b30e409b381f901cd9887" under radix 16
	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1022) ~[spring-webmvc-6.1.6.jar!/:6.1.6]
	at org.springframework.web.servlet.FrameworkServlet.doPut(FrameworkServlet.java:925) ~[spring-webmvc-6.1.6.jar!/:6.1.6]
	at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:550) ~[jakarta.servlet-api-6.0.0.jar!/:6.0.0]
	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:885) ~[spring-webmvc-6.1.6.jar!/:6.1.6]
	at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:614) ~[jakarta.servlet-api-6.0.0.jar!/:6.0.0]
	at org.eclipse.jetty.ee10.servlet.ServletHolder.handle(ServletHolder.java:736) ~[jetty-ee10-servlet-12.0.8.jar!/:12.0.8]
	at org.eclipse.jetty.ee10.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1614) ~[jetty-ee10-servlet-12.0.8.jar!/:12.0.8]
	at org.eclipse.jetty.ee10.websocket.servlet.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:195) ~[jetty-ee10-websocket-servlet-12.0.8.jar!/:12.0.8]
	at org.eclipse.jetty.ee10.servlet.FilterHolder.doFilter(FilterHolder.java:205) ~[jetty-ee10-servlet-12.0.8.jar!/:12.0.8]
	at org.eclipse.jetty.ee10.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1586) ~[jetty-ee10-servlet-12.0.8.jar!/:12.0.8]
	at com.adobe.testing.s3mock.KmsValidationFilter.doFilterInternal(KmsValidationFilter.java:99) ~[!/:na]
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116) ~[spring-web-6.1.6.jar!/:6.1.6]
	at org.eclipse.jetty.ee10.servlet.FilterHolder.doFilter(FilterHolder.java:205) ~[jetty-ee10-servlet-12.0.8.jar!/:12.0.8]
	at org.eclipse.jetty.ee10.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1586) ~[jetty-ee10-servlet-12.0.8.jar!/:12.0.8]
	at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) ~[spring-web-6.1.6.jar!/:6.1.6]
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116) ~[spring-web-6.1.6.jar!/:6.1.6]
	at org.eclipse.jetty.ee10.servlet.FilterHolder.doFilter(FilterHolder.java:205) ~[jetty-ee10-servlet-12.0.8.jar!/:12.0.8]
	at org.eclipse.jetty.ee10.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1586) ~[jetty-ee10-servlet-12.0.8.jar!/:12.0.8]
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:101) ~[spring-web-6.1.6.jar!/:6.1.6]
	at org.eclipse.jetty.ee10.servlet.FilterHolder.doFilter(FilterHolder.java:205) ~[jetty-ee10-servlet-12.0.8.jar!/:12.0.8]
	at org.eclipse.jetty.ee10.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1586) ~[jetty-ee10-servlet-12.0.8.jar!/:12.0.8]
	at org.springframework.web.filter.ServerHttpObservationFilter.doFilterInternal(ServerHttpObservationFilter.java:109) ~[spring-web-6.1.6.jar!/:6.1.6]
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116) ~[spring-web-6.1.6.jar!/:6.1.6]
	at org.eclipse.jetty.ee10.servlet.FilterHolder.doFilter(FilterHolder.java:205) ~[jetty-ee10-servlet-12.0.8.jar!/:12.0.8]
	at org.eclipse.jetty.ee10.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1586) ~[jetty-ee10-servlet-12.0.8.jar!/:12.0.8]
	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201) ~[spring-web-6.1.6.jar!/:6.1.6]
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116) ~[spring-web-6.1.6.jar!/:6.1.6]
	at org.eclipse.jetty.ee10.servlet.FilterHolder.doFilter(FilterHolder.java:205) ~[jetty-ee10-servlet-12.0.8.jar!/:12.0.8]
	at org.eclipse.jetty.ee10.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1586) ~[jetty-ee10-servlet-12.0.8.jar!/:12.0.8]
	at org.eclipse.jetty.ee10.servlet.ServletHandler$MappedServlet.handle(ServletHandler.java:1547) ~[jetty-ee10-servlet-12.0.8.jar!/:12.0.8]
	at org.eclipse.jetty.ee10.servlet.ServletChannel.dispatch(ServletChannel.java:819) ~[jetty-ee10-servlet-12.0.8.jar!/:12.0.8]
	at org.eclipse.jetty.ee10.servlet.ServletChannel.handle(ServletChannel.java:431) ~[jetty-ee10-servlet-12.0.8.jar!/:12.0.8]
	at org.eclipse.jetty.ee10.servlet.ServletHandler.handle(ServletHandler.java:464) ~[jetty-ee10-servlet-12.0.8.jar!/:12.0.8]
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:575) ~[jetty-security-12.0.8.jar!/:12.0.8]
	at org.eclipse.jetty.ee10.servlet.SessionHandler.handle(SessionHandler.java:703) ~[jetty-ee10-servlet-12.0.8.jar!/:12.0.8]
	at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:851) ~[jetty-server-12.0.8.jar!/:12.0.8]
	at org.eclipse.jetty.server.Server.handle(Server.java:179) ~[jetty-server-12.0.8.jar!/:12.0.8]
	at org.eclipse.jetty.server.internal.HttpChannelState$HandlerInvoker.run(HttpChannelState.java:619) ~[jetty-server-12.0.8.jar!/:12.0.8]
	at org.eclipse.jetty.server.internal.HttpConnection.onFillable(HttpConnection.java:411) ~[jetty-server-12.0.8.jar!/:12.0.8]
	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:322) ~[jetty-io-12.0.8.jar!/:12.0.8]
	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:99) ~[jetty-io-12.0.8.jar!/:12.0.8]
	at org.eclipse.jetty.io.SelectableChannelEndPoint$1.run(SelectableChannelEndPoint.java:53) ~[jetty-io-12.0.8.jar!/:12.0.8]
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:979) ~[jetty-util-12.0.8.jar!/:12.0.8]
	at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.doRunJob(QueuedThreadPool.java:1209) ~[jetty-util-12.0.8.jar!/:12.0.8]
	at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1164) ~[jetty-util-12.0.8.jar!/:12.0.8]
	at java.base/java.lang.Thread.run(Unknown Source) ~[na:na]
Caused by: java.lang.NumberFormatException: For input string: "nk-signature=406119c2836f44120f93e7eeb0b9aa0d201ea1a02a7b30e409b381f901cd9887" under radix 16
	at java.base/java.lang.NumberFormatException.forInputString(Unknown Source) ~[na:na]
	at java.base/java.lang.Long.parseLong(Unknown Source) ~[na:na]
	at com.adobe.testing.s3mock.util.AwsChunkedInputStream.setChunkLength(AwsChunkedInputStream.java:170) ~[!/:na]
	at com.adobe.testing.s3mock.util.AwsChunkedInputStream.read(AwsChunkedInputStream.java:136) ~[!/:na]
	at java.base/java.io.InputStream.read(Unknown Source) ~[na:na]
	at java.base/java.io.InputStream.transferTo(Unknown Source) ~[na:na]
	at com.adobe.testing.s3mock.service.ObjectService.toTempFile(ObjectService.java:273) ~[!/:na]
	at com.adobe.testing.s3mock.ObjectController.putObject(ObjectController.java:605) ~[!/:na]
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Unknown Source) ~[na:na]
	at java.base/java.lang.reflect.Method.invoke(Unknown Source) ~[na:na]
	at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:255) ~[spring-web-6.1.6.jar!/:6.1.6]
	at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:188) ~[spring-web-6.1.6.jar!/:6.1.6]
	at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:118) ~[spring-webmvc-6.1.6.jar!/:6.1.6]
	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:926) ~[spring-webmvc-6.1.6.jar!/:6.1.6]
	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:831) ~[spring-webmvc-6.1.6.jar!/:6.1.6]
	at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) ~[spring-webmvc-6.1.6.jar!/:6.1.6]
	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1089) ~[spring-webmvc-6.1.6.jar!/:6.1.6]
	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:979) ~[spring-webmvc-6.1.6.jar!/:6.1.6]
	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1014) ~[spring-webmvc-6.1.6.jar!/:6.1.6]
	... 45 common frames omitted
@tw-yiyang
Copy link

saw the same error.

docker S3Mock container console log

2024-05-06 13:38:53 OpenJDK 64-Bit Server VM warning: Ignoring option --illegal-access=warn; support was removed in 17.0
2024-05-06 13:38:53 Standard Commons Logging discovery in action with spring-jcl: please remove commons-logging.jar from classpath in order to avoid potential conflicts
2024-05-06 13:38:54 
2024-05-06 13:38:54 
2024-05-06 13:38:54   .-')              _   .-')                           .-. .-')  
2024-05-06 13:38:54  ( OO ).           ( '.( OO )_                         \  ( OO ) 
2024-05-06 13:38:54 (_)---\_) .-----.   ,--.   ,--.).-'),-----.    .-----. ,--. ,--. 
2024-05-06 13:38:54 /    _ | /  -.   \  |   `.'   |( OO'  .-.  '  '  .--./ |  .'   / 
2024-05-06 13:38:54 \  :` `. '-' _'  |  |         |/   |  | |  |  |  |('-. |      /, 
2024-05-06 13:38:54  '..`''.)   |_  <   |  |'.'|  |\_) |  |\|  | /_) |OO  )|     ' _)
2024-05-06 13:38:54 .-._)   \.-.  |  |  |  |   |  |  \ |  | |  | ||  |`-'| |  .   \  
2024-05-06 13:38:54 \       /\ `-'   /  |  |   |  |   `'  '-'  '(_'  '--'\ |  |\   \ 
2024-05-06 13:38:54  `-----'  `----''   `--'   `--'     `-----'    `-----' `--' '--' 
2024-05-06 13:38:54 
2024-05-06 13:38:54 
2024-05-06 13:38:54 
2024-05-06 13:38:54 2024-05-06T05:38:54.568Z  INFO 1 --- [           main] c.a.testing.s3mock.S3MockApplication     : Starting S3MockApplication using Java 21.0.3 with PID 1 (/s3mock.jar started by root in /)
2024-05-06 13:38:54 2024-05-06T05:38:54.574Z  INFO 1 --- [           main] c.a.testing.s3mock.S3MockApplication     : No active profile set, falling back to 1 default profile: "default"
2024-05-06 13:38:55 2024-05-06T05:38:55.667Z  INFO 1 --- [           main] o.s.b.w.e.j.JettyServletWebServerFactory : Server initialized with port: 9191
2024-05-06 13:38:55 2024-05-06T05:38:55.756Z  INFO 1 --- [           main] org.eclipse.jetty.server.Server          : jetty-12.0.8; built: 2024-03-29T19:58:19.443Z; git: ffffdcc3c863b8f49901cc7c84a8157ebc5d15f9; jvm 21.0.3+9-alpine-r0
2024-05-06 13:38:55 2024-05-06T05:38:55.787Z  INFO 1 --- [           main] o.e.j.s.h.ContextHandler.application     : Initializing Spring embedded WebApplicationContext
2024-05-06 13:38:55 2024-05-06T05:38:55.788Z  INFO 1 --- [           main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 1142 ms
2024-05-06 13:38:55 Standard Commons Logging discovery in action with spring-jcl: please remove commons-logging.jar from classpath in order to avoid potential conflicts
2024-05-06 13:38:55 2024-05-06T05:38:55.946Z  INFO 1 --- [           main] o.e.j.session.DefaultSessionIdManager    : Session workerName=node0
2024-05-06 13:38:55 2024-05-06T05:38:55.951Z  INFO 1 --- [           main] o.e.jetty.server.handler.ContextHandler  : Started osbwej.JettyEmbeddedWebAppContext@2b6c7012{application,/,b=file:/tmp/jetty-docbase.9191.16600652256184394372/,a=AVAILABLE,h=oeje10s.SessionHandler@31acfd4e{STARTED}}
2024-05-06 13:38:55 2024-05-06T05:38:55.952Z  INFO 1 --- [           main] o.e.j.e.servlet.ServletContextHandler    : Started osbwej.JettyEmbeddedWebAppContext@2b6c7012{application,/,b=file:/tmp/jetty-docbase.9191.16600652256184394372/,a=AVAILABLE,h=oeje10s.SessionHandler@31acfd4e{STARTED}}
2024-05-06 13:38:55 2024-05-06T05:38:55.958Z  INFO 1 --- [           main] org.eclipse.jetty.server.Server          : Started oejs.Server@1b01a0d{STARTING}[12.0.8,sto=0] @2329ms
2024-05-06 13:38:55 2024-05-06T05:38:55.978Z  INFO 1 --- [           main] c.a.t.s3mock.store.StoreConfiguration    : Successfully created "/s3mockroot" as root folder. Will retain files on exit: false
2024-05-06 13:38:56 2024-05-06T05:38:56.055Z  INFO 1 --- [           main] c.a.t.s3mock.store.StoreConfiguration    : Creating initial bucket twcard-order.
2024-05-06 13:38:56 2024-05-06T05:38:56.366Z  WARN 1 --- [           main] i.m.c.i.binder.jvm.JvmGcMetrics          : GC notifications will not be available because com.sun.management.GarbageCollectionNotificationInfo is not present
2024-05-06 13:38:56 2024-05-06T05:38:56.422Z  INFO 1 --- [           main] o.s.b.a.e.web.EndpointLinksResolver      : Exposing 1 endpoint(s) beneath base path '/actuator'
2024-05-06 13:38:56 2024-05-06T05:38:56.461Z  INFO 1 --- [           main] o.e.j.s.h.ContextHandler.application     : Initializing Spring DispatcherServlet 'dispatcherServlet'
2024-05-06 13:38:56 2024-05-06T05:38:56.461Z  INFO 1 --- [           main] o.s.web.servlet.DispatcherServlet        : Initializing Servlet 'dispatcherServlet'
2024-05-06 13:38:56 2024-05-06T05:38:56.461Z  INFO 1 --- [           main] o.s.web.servlet.DispatcherServlet        : Completed initialization in 0 ms
2024-05-06 13:38:56 2024-05-06T05:38:56.470Z  INFO 1 --- [           main] o.e.jetty.util.ssl.SslContextFactory     : x509=X509@44da7eb3(selfsigned,h=[localhost, adobe s3mock],a=[],w=[]) for Server@5e69cf07[provider=null,keyStore=null,trustStore=null]
2024-05-06 13:38:56 2024-05-06T05:38:56.560Z  INFO 1 --- [           main] o.e.jetty.server.AbstractConnector       : Started SslValidatingServerConnector@525930a4{SSL, (ssl, http/1.1)}{0.0.0.0:9191}
2024-05-06 13:38:56 2024-05-06T05:38:56.562Z  INFO 1 --- [           main] o.e.jetty.server.AbstractConnector       : Started ServerConnector@75839695{HTTP/1.1, (http/1.1)}{0.0.0.0:9090}
2024-05-06 13:38:56 2024-05-06T05:38:56.563Z  INFO 1 --- [           main] o.s.b.web.embedded.jetty.JettyWebServer  : Jetty started on ports 9191 (ssl, http/1.1), 9090 (http/1.1) with context path '/'
2024-05-06 13:38:56 2024-05-06T05:38:56.574Z  INFO 1 --- [           main] c.a.testing.s3mock.S3MockApplication     : Started S3MockApplication in 2.433 seconds (process running for 2.946)
2024-05-06 13:39:42 2024-05-06T05:39:42.274Z  WARN 1 --- [qtp130494156-54] o.e.jetty.ee10.servlet.ServletChannel    : /twcard-order/redacted/test_file.txt
2024-05-06 13:39:42 
2024-05-06 13:39:42 jakarta.servlet.ServletException: Request processing failed: java.lang.NumberFormatException: For input string: "e63bdacaa57de8e0a64174da7e4b86c357b8219a44926a80a4ee009539c1" under radix 16
2024-05-06 13:39:42     at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1022) ~[spring-webmvc-6.1.6.jar!/:6.1.6]
2024-05-06 13:39:42     at org.springframework.web.servlet.FrameworkServlet.doPut(FrameworkServlet.java:925) ~[spring-webmvc-6.1.6.jar!/:6.1.6]
2024-05-06 13:39:42     at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:550) ~[jakarta.servlet-api-6.0.0.jar!/:6.0.0]
2024-05-06 13:39:42     at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:885) ~[spring-webmvc-6.1.6.jar!/:6.1.6]
2024-05-06 13:39:42     at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:614) ~[jakarta.servlet-api-6.0.0.jar!/:6.0.0]
2024-05-06 13:39:42     at org.eclipse.jetty.ee10.servlet.ServletHolder.handle(ServletHolder.java:736) ~[jetty-ee10-servlet-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at org.eclipse.jetty.ee10.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1614) ~[jetty-ee10-servlet-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at org.eclipse.jetty.ee10.websocket.servlet.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:195) ~[jetty-ee10-websocket-servlet-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at org.eclipse.jetty.ee10.servlet.FilterHolder.doFilter(FilterHolder.java:205) ~[jetty-ee10-servlet-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at org.eclipse.jetty.ee10.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1586) ~[jetty-ee10-servlet-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at com.adobe.testing.s3mock.KmsValidationFilter.doFilterInternal(KmsValidationFilter.java:99) ~[!/:na]
2024-05-06 13:39:42     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116) ~[spring-web-6.1.6.jar!/:6.1.6]
2024-05-06 13:39:42     at org.eclipse.jetty.ee10.servlet.FilterHolder.doFilter(FilterHolder.java:205) ~[jetty-ee10-servlet-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at org.eclipse.jetty.ee10.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1586) ~[jetty-ee10-servlet-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) ~[spring-web-6.1.6.jar!/:6.1.6]
2024-05-06 13:39:42     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116) ~[spring-web-6.1.6.jar!/:6.1.6]
2024-05-06 13:39:42     at org.eclipse.jetty.ee10.servlet.FilterHolder.doFilter(FilterHolder.java:205) ~[jetty-ee10-servlet-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at org.eclipse.jetty.ee10.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1586) ~[jetty-ee10-servlet-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:101) ~[spring-web-6.1.6.jar!/:6.1.6]
2024-05-06 13:39:42     at org.eclipse.jetty.ee10.servlet.FilterHolder.doFilter(FilterHolder.java:205) ~[jetty-ee10-servlet-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at org.eclipse.jetty.ee10.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1586) ~[jetty-ee10-servlet-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at org.springframework.web.filter.ServerHttpObservationFilter.doFilterInternal(ServerHttpObservationFilter.java:109) ~[spring-web-6.1.6.jar!/:6.1.6]
2024-05-06 13:39:42     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116) ~[spring-web-6.1.6.jar!/:6.1.6]
2024-05-06 13:39:42     at org.eclipse.jetty.ee10.servlet.FilterHolder.doFilter(FilterHolder.java:205) ~[jetty-ee10-servlet-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at org.eclipse.jetty.ee10.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1586) ~[jetty-ee10-servlet-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201) ~[spring-web-6.1.6.jar!/:6.1.6]
2024-05-06 13:39:42     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116) ~[spring-web-6.1.6.jar!/:6.1.6]
2024-05-06 13:39:42     at org.eclipse.jetty.ee10.servlet.FilterHolder.doFilter(FilterHolder.java:205) ~[jetty-ee10-servlet-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at org.eclipse.jetty.ee10.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1586) ~[jetty-ee10-servlet-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at org.eclipse.jetty.ee10.servlet.ServletHandler$MappedServlet.handle(ServletHandler.java:1547) ~[jetty-ee10-servlet-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at org.eclipse.jetty.ee10.servlet.ServletChannel.dispatch(ServletChannel.java:819) ~[jetty-ee10-servlet-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at org.eclipse.jetty.ee10.servlet.ServletChannel.handle(ServletChannel.java:431) ~[jetty-ee10-servlet-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at org.eclipse.jetty.ee10.servlet.ServletHandler.handle(ServletHandler.java:464) ~[jetty-ee10-servlet-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:575) ~[jetty-security-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at org.eclipse.jetty.ee10.servlet.SessionHandler.handle(SessionHandler.java:703) ~[jetty-ee10-servlet-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:851) ~[jetty-server-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at org.eclipse.jetty.server.Server.handle(Server.java:179) ~[jetty-server-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at org.eclipse.jetty.server.internal.HttpChannelState$HandlerInvoker.run(HttpChannelState.java:619) ~[jetty-server-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at org.eclipse.jetty.server.internal.HttpConnection.onFillable(HttpConnection.java:411) ~[jetty-server-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:322) ~[jetty-io-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:99) ~[jetty-io-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at org.eclipse.jetty.io.SelectableChannelEndPoint$1.run(SelectableChannelEndPoint.java:53) ~[jetty-io-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:979) ~[jetty-util-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.doRunJob(QueuedThreadPool.java:1209) ~[jetty-util-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1164) ~[jetty-util-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at java.base/java.lang.Thread.run(Unknown Source) ~[na:na]
2024-05-06 13:39:42 Caused by: java.lang.NumberFormatException: For input string: "e63bdacaa57de8e0a64174da7e4b86c357b8219a44926a80a4ee009539c1" under radix 16
2024-05-06 13:39:42     at java.base/java.lang.NumberFormatException.forInputString(Unknown Source) ~[na:na]
2024-05-06 13:39:42     at java.base/java.lang.Long.parseLong(Unknown Source) ~[na:na]
2024-05-06 13:39:42     at com.adobe.testing.s3mock.util.AwsChunkedInputStream.setChunkLength(AwsChunkedInputStream.java:170) ~[!/:na]
2024-05-06 13:39:42     at com.adobe.testing.s3mock.util.AwsChunkedInputStream.read(AwsChunkedInputStream.java:136) ~[!/:na]
2024-05-06 13:39:42     at java.base/java.io.InputStream.read(Unknown Source) ~[na:na]
2024-05-06 13:39:42     at java.base/java.io.InputStream.transferTo(Unknown Source) ~[na:na]
2024-05-06 13:39:42     at com.adobe.testing.s3mock.service.ObjectService.toTempFile(ObjectService.java:273) ~[!/:na]
2024-05-06 13:39:42     at com.adobe.testing.s3mock.ObjectController.putObject(ObjectController.java:605) ~[!/:na]
2024-05-06 13:39:42     at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Unknown Source) ~[na:na]
2024-05-06 13:39:42     at java.base/java.lang.reflect.Method.invoke(Unknown Source) ~[na:na]
2024-05-06 13:39:42     at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:255) ~[spring-web-6.1.6.jar!/:6.1.6]
2024-05-06 13:39:42     at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:188) ~[spring-web-6.1.6.jar!/:6.1.6]
2024-05-06 13:39:42     at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:118) ~[spring-webmvc-6.1.6.jar!/:6.1.6]
2024-05-06 13:39:42     at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:926) ~[spring-webmvc-6.1.6.jar!/:6.1.6]
2024-05-06 13:39:42     at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:831) ~[spring-webmvc-6.1.6.jar!/:6.1.6]
2024-05-06 13:39:42     at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) ~[spring-webmvc-6.1.6.jar!/:6.1.6]
2024-05-06 13:39:42     at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1089) ~[spring-webmvc-6.1.6.jar!/:6.1.6]
2024-05-06 13:39:42     at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:979) ~[spring-webmvc-6.1.6.jar!/:6.1.6]
2024-05-06 13:39:42     at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1014) ~[spring-webmvc-6.1.6.jar!/:6.1.6]
2024-05-06 13:39:42     ... 45 common frames omitted
2024-05-06 13:39:42 
2024-05-06 13:39:42 2024-05-06T05:39:42.509Z  WARN 1 --- [qtp130494156-54] o.e.jetty.ee10.servlet.ServletChannel    : /twcard-order/redacted/test_file.txt
2024-05-06 13:39:42 
2024-05-06 13:39:42 jakarta.servlet.ServletException: Request processing failed: java.lang.NumberFormatException: For input string: "19c0181e1e6a0e38a1d377ee6d3a66ebcf894f397c2ae93b224793d3a2bd" under radix 16
2024-05-06 13:39:42     at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1022) ~[spring-webmvc-6.1.6.jar!/:6.1.6]
2024-05-06 13:39:42     at org.springframework.web.servlet.FrameworkServlet.doPut(FrameworkServlet.java:925) ~[spring-webmvc-6.1.6.jar!/:6.1.6]
2024-05-06 13:39:42     at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:550) ~[jakarta.servlet-api-6.0.0.jar!/:6.0.0]
2024-05-06 13:39:42     at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:885) ~[spring-webmvc-6.1.6.jar!/:6.1.6]
2024-05-06 13:39:42     at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:614) ~[jakarta.servlet-api-6.0.0.jar!/:6.0.0]
2024-05-06 13:39:42     at org.eclipse.jetty.ee10.servlet.ServletHolder.handle(ServletHolder.java:736) ~[jetty-ee10-servlet-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at org.eclipse.jetty.ee10.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1614) ~[jetty-ee10-servlet-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at org.eclipse.jetty.ee10.websocket.servlet.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:195) ~[jetty-ee10-websocket-servlet-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at org.eclipse.jetty.ee10.servlet.FilterHolder.doFilter(FilterHolder.java:205) ~[jetty-ee10-servlet-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at org.eclipse.jetty.ee10.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1586) ~[jetty-ee10-servlet-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at com.adobe.testing.s3mock.KmsValidationFilter.doFilterInternal(KmsValidationFilter.java:99) ~[!/:na]
2024-05-06 13:39:42     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116) ~[spring-web-6.1.6.jar!/:6.1.6]
2024-05-06 13:39:42     at org.eclipse.jetty.ee10.servlet.FilterHolder.doFilter(FilterHolder.java:205) ~[jetty-ee10-servlet-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at org.eclipse.jetty.ee10.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1586) ~[jetty-ee10-servlet-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) ~[spring-web-6.1.6.jar!/:6.1.6]
2024-05-06 13:39:42     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116) ~[spring-web-6.1.6.jar!/:6.1.6]
2024-05-06 13:39:42     at org.eclipse.jetty.ee10.servlet.FilterHolder.doFilter(FilterHolder.java:205) ~[jetty-ee10-servlet-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at org.eclipse.jetty.ee10.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1586) ~[jetty-ee10-servlet-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:101) ~[spring-web-6.1.6.jar!/:6.1.6]
2024-05-06 13:39:42     at org.eclipse.jetty.ee10.servlet.FilterHolder.doFilter(FilterHolder.java:205) ~[jetty-ee10-servlet-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at org.eclipse.jetty.ee10.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1586) ~[jetty-ee10-servlet-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at org.springframework.web.filter.ServerHttpObservationFilter.doFilterInternal(ServerHttpObservationFilter.java:109) ~[spring-web-6.1.6.jar!/:6.1.6]
2024-05-06 13:39:42     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116) ~[spring-web-6.1.6.jar!/:6.1.6]
2024-05-06 13:39:42     at org.eclipse.jetty.ee10.servlet.FilterHolder.doFilter(FilterHolder.java:205) ~[jetty-ee10-servlet-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at org.eclipse.jetty.ee10.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1586) ~[jetty-ee10-servlet-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201) ~[spring-web-6.1.6.jar!/:6.1.6]
2024-05-06 13:39:42     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116) ~[spring-web-6.1.6.jar!/:6.1.6]
2024-05-06 13:39:42     at org.eclipse.jetty.ee10.servlet.FilterHolder.doFilter(FilterHolder.java:205) ~[jetty-ee10-servlet-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at org.eclipse.jetty.ee10.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1586) ~[jetty-ee10-servlet-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at org.eclipse.jetty.ee10.servlet.ServletHandler$MappedServlet.handle(ServletHandler.java:1547) ~[jetty-ee10-servlet-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at org.eclipse.jetty.ee10.servlet.ServletChannel.dispatch(ServletChannel.java:819) ~[jetty-ee10-servlet-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at org.eclipse.jetty.ee10.servlet.ServletChannel.handle(ServletChannel.java:431) ~[jetty-ee10-servlet-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at org.eclipse.jetty.ee10.servlet.ServletHandler.handle(ServletHandler.java:464) ~[jetty-ee10-servlet-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:575) ~[jetty-security-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at org.eclipse.jetty.ee10.servlet.SessionHandler.handle(SessionHandler.java:703) ~[jetty-ee10-servlet-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:851) ~[jetty-server-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at org.eclipse.jetty.server.Server.handle(Server.java:179) ~[jetty-server-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at org.eclipse.jetty.server.internal.HttpChannelState$HandlerInvoker.run(HttpChannelState.java:619) ~[jetty-server-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at org.eclipse.jetty.server.internal.HttpConnection.onFillable(HttpConnection.java:411) ~[jetty-server-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:322) ~[jetty-io-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:99) ~[jetty-io-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at org.eclipse.jetty.io.SelectableChannelEndPoint$1.run(SelectableChannelEndPoint.java:53) ~[jetty-io-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:979) ~[jetty-util-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.doRunJob(QueuedThreadPool.java:1209) ~[jetty-util-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1164) ~[jetty-util-12.0.8.jar!/:12.0.8]
2024-05-06 13:39:42     at java.base/java.lang.Thread.run(Unknown Source) ~[na:na]
2024-05-06 13:39:42 Caused by: java.lang.NumberFormatException: For input string: "19c0181e1e6a0e38a1d377ee6d3a66ebcf894f397c2ae93b224793d3a2bd" under radix 16
2024-05-06 13:39:42     at java.base/java.lang.NumberFormatException.forInputString(Unknown Source) ~[na:na]
2024-05-06 13:39:42     at java.base/java.lang.Long.parseLong(Unknown Source) ~[na:na]
2024-05-06 13:39:42     at com.adobe.testing.s3mock.util.AwsChunkedInputStream.setChunkLength(AwsChunkedInputStream.java:170) ~[!/:na]
2024-05-06 13:39:42     at com.adobe.testing.s3mock.util.AwsChunkedInputStream.read(AwsChunkedInputStream.java:136) ~[!/:na]
2024-05-06 13:39:42     at java.base/java.io.InputStream.read(Unknown Source) ~[na:na]
2024-05-06 13:39:42     at java.base/java.io.InputStream.transferTo(Unknown Source) ~[na:na]
2024-05-06 13:39:42     at com.adobe.testing.s3mock.service.ObjectService.toTempFile(ObjectService.java:273) ~[!/:na]
2024-05-06 13:39:42     at com.adobe.testing.s3mock.ObjectController.putObject(ObjectController.java:605) ~[!/:na]
2024-05-06 13:39:42     at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Unknown Source) ~[na:na]
2024-05-06 13:39:42     at java.base/java.lang.reflect.Method.invoke(Unknown Source) ~[na:na]
2024-05-06 13:39:42     at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:255) ~[spring-web-6.1.6.jar!/:6.1.6]
2024-05-06 13:39:42     at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:188) ~[spring-web-6.1.6.jar!/:6.1.6]
2024-05-06 13:39:42     at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:118) ~[spring-webmvc-6.1.6.jar!/:6.1.6]
2024-05-06 13:39:42     at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:926) ~[spring-webmvc-6.1.6.jar!/:6.1.6]
2024-05-06 13:39:42     at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:831) ~[spring-webmvc-6.1.6.jar!/:6.1.6]
2024-05-06 13:39:42     at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) ~[spring-webmvc-6.1.6.jar!/:6.1.6]
2024-05-06 13:39:42     at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1089) ~[spring-webmvc-6.1.6.jar!/:6.1.6]
2024-05-06 13:39:42     at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:979) ~[spring-webmvc-6.1.6.jar!/:6.1.6]
2024-05-06 13:39:42     at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1014) ~[spring-webmvc-6.1.6.jar!/:6.1.6]
2024-05-06 13:39:42     ... 45 common frames omitted

caller side stack trace (java integration test)

Server Error (Service: Amazon S3; Status Code: 500; Error Code: 500 Server Error; Request ID: null; S3 Extended Request ID: null; Proxy: null)
com.amazonaws.services.s3.model.AmazonS3Exception: Server Error (Service: Amazon S3; Status Code: 500; Error Code: 500 Server Error; Request ID: null; S3 Extended Request ID: null; Proxy: null), S3 Extended Request ID: null
	at com.amazonaws.http.AmazonHttpClient$RequestExecutor.handleErrorResponse(AmazonHttpClient.java:1879)
	at com.amazonaws.http.AmazonHttpClient$RequestExecutor.handleServiceErrorResponse(AmazonHttpClient.java:1418)
	at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeOneRequest(AmazonHttpClient.java:1387)
	at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeHelper(AmazonHttpClient.java:1157)
	at com.amazonaws.http.AmazonHttpClient$RequestExecutor.doExecute(AmazonHttpClient.java:814)
	at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeWithTimer(AmazonHttpClient.java:781)
	at com.amazonaws.http.AmazonHttpClient$RequestExecutor.execute(AmazonHttpClient.java:755)
	at com.amazonaws.http.AmazonHttpClient$RequestExecutor.access$500(AmazonHttpClient.java:715)
	at com.amazonaws.http.AmazonHttpClient$RequestExecutionBuilderImpl.execute(AmazonHttpClient.java:697)
	at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:561)
	at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:541)
	at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:5456)
	at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:5403)
	at com.amazonaws.services.s3.AmazonS3Client.access$300(AmazonS3Client.java:421)
	at com.amazonaws.services.s3.AmazonS3Client$PutObjectStrategy.invokeServiceCall(AmazonS3Client.java:6532)
	at com.amazonaws.services.s3.AmazonS3Client.uploadObject(AmazonS3Client.java:1861)
	at com.amazonaws.services.s3.AmazonS3Client.putObject(AmazonS3Client.java:1821)
	at com.amazonaws.services.s3.AmazonS3Client.putObject(AmazonS3Client.java:1753)
	at (redacted: integration test where AmazonS3Client is invoked)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:728)
	at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131)
	at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:156)
	at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:147)
	at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:86)
	at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(InterceptingExecutableInvoker.java:103)
	at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.lambda$invoke$0(InterceptingExecutableInvoker.java:93)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37)
	at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:92)
	at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:86)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$7(TestMethodTestDescriptor.java:218)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:214)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:139)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:69)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:151)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:35)
	at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)
	at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:54)
	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:107)
	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:88)
	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:54)
	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:67)
	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:52)
	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:114)
	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:86)
	at org.junit.platform.launcher.core.DefaultLauncherSession$DelegatingLauncher.execute(DefaultLauncherSession.java:86)
	at org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestClassProcessor$CollectAllTestClassesExecutor.processAllTestClasses(JUnitPlatformTestClassProcessor.java:119)
	at org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestClassProcessor$CollectAllTestClassesExecutor.access$000(JUnitPlatformTestClassProcessor.java:94)
	at org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestClassProcessor.stop(JUnitPlatformTestClassProcessor.java:89)
	at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.stop(SuiteTestClassProcessor.java:62)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
	at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:33)
	at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:94)
	at jdk.proxy1/jdk.proxy1.$Proxy2.stop(Unknown Source)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker$3.run(TestWorker.java:193)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.executeAndMaintainThreadName(TestWorker.java:129)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:100)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:60)
	at org.gradle.process.internal.worker.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:56)
	at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:113)
	at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:65)
	at worker.org.gradle.process.internal.worker.GradleWorkerMain.run(GradleWorkerMain.java:69)
	at worker.org.gradle.process.internal.worker.GradleWorkerMain.main(GradleWorkerMain.java:74)

@tw-yiyang
Copy link

the error pointing to

chunkLength = Long.parseLong(hexLength.trim(), 16);

coming from the Pull Request #1837 merged last Friday @afranken

@afranken afranken self-assigned this May 6, 2024
@afranken
Copy link
Member

afranken commented May 6, 2024

@tw-yiyang / @agavrilov76
do you have a running example to trigger this error?
We have hundreds of Unit/Integration-Tests, and they all pass with 3.7.3 on Linux and MacOS.

Which OS are you running your client and S3Mock on?
This looks like in your upload, the EOL characters are not detected correctly, so S3Mock can't read the chunk lengths.

@afranken
Copy link
Member

afranken commented May 6, 2024

see #1842 , which was reported for the same underlying issue.

Looks like this only happens when using http as a connection method (which results in signed chunked uploads) in connection to uploading binary files like images.
In our Integration-Tests and unit-tests we're using text files for testing.
The Integration-Tests use https as a connection method with few exceptions.

That's why this issue was not caught during the refactorings I made for 3.7.3.
I'll look into a solution.

@afranken afranken added the bug label May 12, 2024
afranken added a commit that referenced this issue May 12, 2024
For unknown reasons, when using the async clients to upload chunked
data, the SDK sometimes inserts multiple CRLFs between chunks.
Skip if we need to.

Fixes #1840
Fixes #1842
afranken added a commit that referenced this issue May 12, 2024
For unknown reasons, the AWS Java SDKv2 sends the wrong checksum for
SHA256 when using HTTP. Skip this test for now.

Fixes #1840
Fixes #1842
afranken added a commit that referenced this issue May 12, 2024
For unknown reasons, the AWS Java SDKv2 sends the wrong checksum for
SHA256 when using HTTP. Skip this test for now.

Fixes #1840
Fixes #1842
afranken added a commit that referenced this issue May 12, 2024
For unknown reasons, the AWS Java SDKv2 sends the wrong checksum for
SHA256 when using HTTP. Skip this test for now.

Fixes #1840
Fixes #1842
@afranken
Copy link
Member

@tw-yiyang @agavrilov76
I released 3.8.0 earlier today which should fix the problems in most cases.
Only the combination http / sync / sha256 does not work, at least with the AWS v2 SDK for Java.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants