A

Thursday, September 1st, 2022 7:08 AM

Authenticating with the Collibra Platform fail in sprint boot integration

hi
im using the integration -sbi-template-file-source and im getting below error while trying to run the maven project.

14:50:05,937 [main] INFO org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 2306 ms
2022-09-01 14:50:06,817 [main] INFO com.collibra.marketplace.library.integration.InternalSharedLibraryConnection - Authenticating with the Collibra Platform…
2022-09-01 14:50:49,228 [main] WARN org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘entryPointController’ defined in file [C:\Users\5si\OneDrive - Sydney Water Corporation\collibra\Spring Boot integration\sbi-template-file-source-1.0.2\sbi-template-file-source\target\classes\com\collibra\marketplace\template\sync\file\sample\controller\EntryPointController.class]: Unsatisfied dependency expressed through constructor parameter 3; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘integrationProcessorService’ defined in file [C:\Users\5si\OneDrive - Sydney Water Corporation\collibra\Spring Boot integration\sbi-template-file-source-1.0.2\sbi-template-file-source\target\classes\com\collibra\marketplace\template\sync\file\sample\service\IntegrationProcessorService.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘csvIntegrationProcessorService’ defined in file [C:\Users\5si\OneDrive - Sydney Water Corporation\collibra\Spring Boot integration\sbi-template-file-source-1.0.2\sbi-template-file-source\target\classes\com\collibra\marketplace\template\sync\file\sample\service\CsvIntegrationProcessorService.class]: Unsatisfied dependency expressed through constructor parameter 3; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘collibraImportApiHelper’ defined in URL [jar:file:/C:/Users/5si/.m2/repository/com/collibra/marketplace/collibra-integration-library/1.1.8/collibra-integration-library-1.1.8.jar!/com/collibra/marketplace/library/integration/CollibraImportApiHelper.class]: Unsatisfied dependency expressed through constructor parameter 1; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘internalSharedLibraryConnection’: Invocation of init method failed; nested exception is com.collibra.marketplace.library.integration.exception.CollibraIntegrationLibraryException: {“message”:“An unexpected error occurred during execution.”,“details”:“java.net.ConnectException: Connection timed out: connect”,“cause”:“Connection timed out: connect”}
2022-09-01 14:50:49,234 [main] INFO org.apache.catalina.core.StandardService - Stopping service [Tomcat]
2022-09-01 14:50:49,242 [main] INFO org.springframework.boot.autoconfigure.logging.ConditionEvaluationReportLoggingListener

368 Messages

2 years ago

Hi @anie.issac,

Thanks for trying the file source template.

Regarding the above error, it seems that there was a timeout when trying to connect from the Collibra Integration Library to your Collibra instance.

Can you please confirm the following:

  • What is the version of the Collibra instance?
  • Is there a proxy server between the machine where the Spring Boot integration is located and the Collibra instance?
  • Does the Collibra instance require two-way SSL (using a Key Store and/or Trust Store file)?
  • From the same machine, using a web browser can the same Collibra instance be accessed?

Thank you

29 Messages

2 years ago

thanks for quick response
Please find my updates

  • What is the version of the Collibra instance? Collibra version is 2022.08.1
  • Is there a proxy server between the machine where the Spring Boot integration is located and the Collibra instance?Yes. there is proxy between Collibra and Sydneywater network. If so, where can I specify proxy details?
  • Does the Collibra instance require two-way SSL (using a Key Store and/or Trust Store file)? We are using Collibra cloud instance which is secure ( https). How do i confirm if Collibra instance uses two-way SSL? In console, section 14 is blank.
  • From the same machine, using a web browser can the same Collibra instance be accessed? yes. i can access using web browser.

368 Messages

2 years ago

Hi @anie.issac,

Thanks for the information provided.

Since a proxy is being used, you would need to set the following configuration properties (explained in the Collibra Integration Library documentation) in the application.properties file of your template:

  • collibra.proxy.host – The host name of the proxy server
  • collibra.proxy.port – The port number of the proxy server

Additionally, if your proxy server requires authentication, the following should also be set:

  • collibra.proxy.username – The proxy server username
  • collibra.proxy.password – The proxy server password

29 Messages

2 years ago

thanks for the updates.
i have updated proxy and now im receiving error related to certificare validation. please find below
{“message”:“An unexpected error occurred during execution.”,“details”:“javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target”,“cause”:“sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target”

I tried adding Collibra instance certificate to cacert, but i dont have required permission to edit cacert. Is there a option to skip ssl verification?(some thing like --ssl-no-revoke while doing CURL command)
please advise?

368 Messages

2 years ago

Hi @anie.issac,

Thanks for the update.

Regarding this error, can you please confirm whether there is a log that indicates the following?

 Successfully authenticated with the Collibra Platform.

Also, is this error when starting/deploying the integration or when triggering the synchronization please?

To skip the SSL verification, there is this – collibra.trust-self-signed-certificates – property. However, you can also specify a TrustStore file (and a KeyStore file) using the following properties:

  • collibra.ssl.trust-store
  • collibra.ssl.trust-store-password
  • collibra.ssl.key-store
  • collibra.ssl.key-store-password

More information is also available in the Collibra Integration Library documentation.

29 Messages

2 years ago

thanks for the updates.
I dont have log that states - ```
Successfully authenticated with the Collibra Platform.

Please find attached snippet from log file
I get the error while deploying the maven project using command    -     mvn spring-boot:run -Djasypt.encryptor.password=*****

regards
Anie

[error_0509.txt|attachment](upload://rsLDgkzvGzddTrHAW93IHwqVaZB.txt) (2.9 KB)

368 Messages

2 years ago

Hi @anie.issac,

Thanks for the information provided.

It seems that the initial request to the Collibra instance is failing. Therefore, it might be ideal to try the following:

Thanks

Loading...