1 Reply Latest reply on Aug 13, 2019 9:32 PM by user1014028

    Cannot set SSEAlgorithm property on S3 Event Handler in Oracle GoldenGate for Big Data

    user10937462

      Hi,

       

      I'm using the S3 Event Handler in Oracle GoldenGate for Big Data 12.3.2.1.1 on Linux x86-64 and having trouble setting the SSEAlgorithm property on the handler.

      The documentation states that I should be able to use this property for enabling server side encryption in S3. See section: 5.7.3 Configuring the S3 Event Handler here: https://docs.oracle.com/en/middleware/goldengate/big-data/12.3.2.1/gadbd/using-file-writer-handler.html#GUID-3C2D18D2-4D…

      I am trying to use AES256.

      The REPLICAT group fails to start when this property is present.

      Without this property the S3 Event Handler works fine and uploads files to S3.

       

      Relevant lines from the properties file that is causing the error:

      gg.eventhandler.s3.type=s3

      gg.eventhandler.s3.region=us-east-1

      gg.eventhandler.s3.SSEAlgorithm=AES256

       

      The following shows the error in the the replicat log.

       

      DEBUG 2019-05-17 19:47:09.000168 [main] - Stack trace: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userExitDataSource' defined in class path resource [oracle/goldengate/datasource/DataSource-context.xml]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [oracle.goldengate.datasource.GGDataSource]: Factory method 'getDataSource' threw exception; nested exception is oracle.goldengate.util.ConfigException: Failed to set property: gg.eventhandler.s3.SSEAlgorithm:="AES256" (class: oracle.goldengate.eventhandler.s3.S3EventHandler).

              at oracle.goldengate.datasource.DataSourceLauncher.<init>(DataSourceLauncher.java:168)

              at oracle.goldengate.datasource.UserExitMain.main(UserExitMain.java:123)

      Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [oracle.goldengate.datasource.GGDataSource]: Factory method 'getDataSource' threw exception; nested exception is oracle.goldengate.util.ConfigException: Failed to set property: gg.eventhandler.s3.SSEAlgorithm:="AES256" (class: oracle.goldengate.eventhandler.s3.S3EventHandler).

              at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189)

              at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588)

              ... 11 more

      Caused by: oracle.goldengate.util.ConfigException: Failed to set property: gg.eventhandler.s3.SSEAlgorithm:="AES256" (class: oracle.goldengate.eventhandler.s3.S3EventHandler).

              at oracle.goldengate.util.PropertyWrapper.setProperty(PropertyWrapper.java:365)

              at oracle.goldengate.util.PropertyWrapper.setProperties(PropertyWrapper.java:327)

              at oracle.goldengate.datasource.eventhandler.EventHandlerFramework.initEventHandler(EventHandlerFramework.java:124)

              at oracle.goldengate.datasource.eventhandler.EventHandlerFramework.init(EventHandlerFramework.java:43)

              at oracle.goldengate.handler.filewriter.FileWriterHandler.init(FileWriterHandler.java:505)

              at oracle.goldengate.datasource.AbstractDataSource.addDataSourceListener(AbstractDataSource.java:591)

              at oracle.goldengate.datasource.factory.DataSourceFactory.getDataSource(DataSourceFactory.java:161)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:498)

              at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162)

              ... 12 more

       

      Thanks.