findify / s3mock

Embedded S3 server for easy mocking
MIT License
388 stars 107 forks source link

Put Object fails when streaming #168

Closed mirosval closed 4 years ago

mirosval commented 4 years ago

The error returned:

BufferedHttpResponse {
  status: 500, 
  body: "<Error>\n      
      <Code>InternalError</Code>\n
          <Message>java.lang.IllegalAccessException: class org.iq80.leveldb.util.ByteBufferSupport cannot access class jdk.internal.ref.Cleaner (in module java.base) because module java.base does not export jdk.internal.ref to unnamed module @15d6911d</Message>\n    
      </Error>", 
  headers: {"server": "akka-http/10.0.10", "date": "Tue, 09 Jun 2020 12:01:09 GMT", "content-type": "text/plain; charset=UTF-8", "content-length": "311"} 
},

Bucket creation works but then this error is returned when trying to upload an object. I'm using the latest Docker image.

Seems like a java module configuration issue with java 11