ecs-object-client-java icon indicating copy to clipboard operation
ecs-object-client-java copied to clipboard

Version 4.0.0-rc.1 gives : Unrecognized field "ServerSideEncryptionEnabled" (class com.emc.object.s3.bean.Bucket)

Open UdayBidikar opened this issue 2 years ago • 3 comments

caused by: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "ServerSideEncryptionEnabled" (class com.emc.object.s3.bean.Bucket), not marked as ignorable (2 known properties: "Name", "CreationDate"]) at [Source: (PushbackInputStream); line: 1, column: 409] (through reference chain: com.emc.object.s3.bean.ListBucketsResult["Buckets"]->java.util.ArrayList[0]->com.emc.object.s3.bean.Bucket["ServerSideEncryptionEnabled"])

UdayBidikar avatar Dec 08 '23 18:12 UdayBidikar

@UdayBidikar I did a test like "... ListBucketsResult result = client.listBuckets() ...", and was not able to reproduce your issue on 4.0.0-rc.1, facing ECS 3.8.0.5. However, the issue comes from Jackson, the ListBucketsResult and also Bucket class are using javax.xml.bind. That would be helpful if you can share more information, like your ECS version, Java version, code snippet.

dunedodo avatar Dec 12 '23 09:12 dunedodo

@dunedodo my test code : ListBucketsResult rslt = s3client.listBuckets()

ECS TEST DRIVE - ECS VERSION 3.8.0.5 https://portal.ecstestdrive.com/

% java -version java version "14" 2020-03-17 Java(TM) SE Runtime Environment (build 14+36-1461) Java HotSpot(TM) 64-Bit Server VM (build 14+36-1461, mixed mode, sharing)

UdayBidikar avatar Dec 31 '23 12:12 UdayBidikar

@UdayBidikar ECS Java SDK doesn't support Java 14 AFAIK. I think it would cause the problem here. Could you try Java 8 or 11 instead? Or wait for more Java versions support, but it's of very low priority in our roadmap with no determined ETA.

dunedodo avatar Jan 30 '24 13:01 dunedodo