8000 test: generated libraries by diegomarquezp · Pull Request #1407 · GoogleCloudPlatform/spring-cloud-gcp · GitHub
[go: up one dir, main page]

Skip to content

test: generated libraries #1407

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

Closed
wants to merge 45 commits into from
Closed

test: generated libraries #1407

wants to merge 45 commits into from

Conversation

diegomarquezp
Copy link
Contributor
@diegomarquezp diegomarquezp commented Dec 21, 2022

Merges and adapts changes from:

So far:
Uses comittish from generated library list. Using the commitish in googleapis brings bazel errors about outdated rules/macros (1, 2). I've had to manually add sed calls to remove some rules. Still working on sanitizing the WORKSPACE and BUILD files in googleapis
Bazel version must be 4.2.2

zhumin8 and others added 30 commits December 7, 2022 20:26
@diegomarquezp
Copy link
Contributor Author
diegomarquezp commented Dec 22, 2022

Currently generates 89/89 libraries
mvn install on generated/ fails due to missing Retry and RetryUtil

[ERROR] /usr/local/google/home/diegomarquezp/Desktop/spring-cloud-gcp/spring-cloud-previews/google-cloud-workflows-spring-starter/src/main/java/com/google/cloud/workflows/v1/spring/WorkflowsSpringAutoConfiguration.java:[145,4] error: cannot find symbol
[ERROR]   symbol:   class Retry
[ERROR]   location: class WorkflowsSpringAutoConfiguration
[ERROR] /usr/local/google/home/diegomarquezp/Desktop/spring-cloud-gcp/spring-cloud-previews/google-cloud-workflows-spring-starter/src/main/java/com/google/cloud/workflows/v1/spring/WorkflowsSpringAutoConfiguration.java:[148,10] error: cannot find symbol
[ERROR]   symbol:   variable RetryUtil

Currently trying: merge @emmileaf 's #1392 in this branch

@diegomarquezp
Copy link
Contributor Author

Merging #1392 allowed to mvn install all the way to speech, which fails with:

[ERROR] /usr/local/google/home/diegomarquezp/Desktop/spring-cloud-gcp/spring-cloud-previews/google-cloud-speech-spring-starter/src/main/java/com/google/cloud/speech/v2/spring/SpeechSpringAutoConfiguration.java:[194,64] error: cannot find symbol
[ERROR]   symbol:   method getRetrySettings()
[ERROR]   location: class Builder<StreamingRecognizeRequest,StreamingRecognizeResponse>
[ERROR] /usr/local/google/home/diegomarquezp/Desktop/spring-cloud-gcp/spring-cloud-previews/google-cloud-speech-spring-starter/src/main/java/com/google/cloud/speech/v2/spring/SpeechSpringAutoConfiguration.java:[197,10] error: cannot find symbol
[ERROR]   symbol:   method setRetrySettings(RetrySettings)
[ERROR]   location: class Builder<StreamingRecognizeRequest,StreamingRecognizeResponse>
[ERROR] /usr/local/google/home/diegomarquezp/Desktop/spring-cloud-gcp/spring-cloud-previews/google-cloud-speech-spring-starter/src/main/java/com/google/cloud/speech/v2/spring/SpeechSpringAutoConfiguration.java:[389,64] error: cannot find symbol
[ERROR]   symbol:   method getRetrySettings()
[ERROR]   location: class Builder<StreamingRecognizeRequest,StreamingRecognizeResponse>
[ERROR] /usr/local/google/home/diegomarquezp/Desktop/spring-cloud-gcp/spring-cloud-previews/google-cloud-speech-spring-starter/src/main/java/com/google/cloud/speech/v2/spring/SpeechSpringAutoConfiguration.java:[393,10] error: cannot find symbol
[ERROR]   symbol:   method setRetrySettings(RetrySettings)
[ERROR]   location: class Builder<StreamingRecognizeRequest,StreamingRecognizeResponse>

@diegomarquezp
Copy link
Contributor Author

Different error for contact-center-insights

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile (default-compile) on project google-cloud-contact-center-insights-spring-starter: Compilation failure: Compilation failure: 
[ERROR] /usr/local/google/home/diegomarquezp/Desktop/spring-cloud-gcp/spring-cloud-previews/google-cloud-contact-center-insights-spring-starter/src/main/java/com/google/cloud/contactcenterinsights/v1/spring/ContactCenterInsightsSpringAutoConfiguration.java:[207,35] error: cannot find symbol
[ERROR]   symbol:   method bulkAnalyzeConversationsSettings()
[ERROR]   location: variable clientSettingsBuilder of type Builder
[ERROR] /usr/local/google/home/diegomarquezp/Desktop/spring-cloud-gcp/spring-cloud-previews/google-cloud-contact-center-insights-spring-starter/src/main/java/com/google/cloud/contactcenterinsights/v1/spring/ContactCenterInsightsSpringAutoConfiguration.java:[210,10] error: cannot find symbol
[ERROR]   symbol:   method bulkAnalyzeConversationsSettings()
[ERROR]   location: variable clientSettingsBuilder of type Builder
[ERROR] /usr/local/google/home/diegomarquezp/Desktop/spring-cloud-gcp/spring-cloud-previews/google-cloud-contact-center-insights-spring-starter/src/main/java/com/google/cloud/contactcenterinsights/v1/spring/ContactCenterInsightsSpringAutoConfiguration.java:[215,35] error: cannot find symbol
[ERROR]   symbol:   method ingestConversationsSettings()
[ERROR]   location: variable clientSettingsBuilder of type Builder
[ERROR] /usr/local/google/home/diegomarquezp/Desktop/spring-cloud-gcp/spring-cloud-previews/google-cloud-contact-center-insights-spring-starter/src/main/java/com/google/cloud/contactcenterinsights/v1/spring/ContactCenterInsightsSpringAutoConfiguration.java:[217,10] error: cannot find symbol
[ERROR]   symbol:   method ingestConversationsSettings()
[ERROR]   location: variable clientSettingsBuilder of type Builder
[ERROR] /usr/local/google/home/diegomarquezp/Desktop/spring-cloud-gcp/spring-cloud-previews/google-cloud-contact-center-insights-spring-starter/src/main/java/com/google/cloud/contactcenterinsights/v1/spring/ContactCenterInsightsSpringAutoConfiguration.java:[291,35] error: cannot find symbol
[ERROR]   symbol:   method deleteIssueSettings()
[ERROR]   location: variable clientSettingsBuilder of type Builder
[ERROR] /usr/local/google/home/diegomarquezp/Desktop/spring-cloud-gcp/spring-cloud-previews/google-cloud-contact-center-insights-spring-starter/src/main/java/com/google/cloud/contactcenterinsights/v1/spring/ContactCenterInsightsSpringAutoConfiguration.java:[292,27] error: cannot find symbol
[ERROR]   symbol:   method deleteIssueSettings()
[ERROR]   location: variable clientSettingsBuilder of type Builder
[ERROR] /usr/local/google/home/diegomarquezp/Desktop/spring-cloud-gcp/spring-cloud-previews/google-cloud-contact-center-insights-spring-starter/src/main/java/com/google/cloud/contactcenterinsights/v1/spring/ContactCenterInsightsSpringAutoConfiguration.java:[496,35] error: cannot find symbol
[ERROR]   symbol:   method bulkAnalyzeConversationsSettings()
[ERROR]   location: variable clientSettingsBuilder of type Builder
[ERROR] /usr/local/google/home/diegomarquezp/Desktop/spring-cloud-gcp/spring-cloud-previews/google-cloud-contact-center-insights-spring-starter/src/main/java/com/google/cloud/contactcenterinsights/v1/spring/ContactCenterInsightsSpringAutoConfiguration.java:[499,10] error: cannot find symbol
[ERROR]   symbol:   method bulkAnalyzeConversationsSettings()
[ERROR]   location: variable clientSettingsBuilder of type Builder
[ERROR] /usr/local/google/home/diegomarquezp/Desktop/spring-cloud-gcp/spring-cloud-previews/google-cloud-contact-center-insights-spring-starter/src/main/java/com/google/cloud/contactcenterinsights/v1/spring/ContactCenterInsightsSpringAutoConfiguration.java:[510,35] error: cannot find symbol
[ERROR]   symbol:   method ingestConversationsSettings()
[ERROR]   location: variable clientSettingsBuilder of type Builder
[ERROR] /usr/local/google/home/diegomarquezp/Desktop/spring-cloud-gcp/spring-cloud-previews/google-cloud-contact-center-insights-spring-starter/src/main/java/com/google/cloud/contactcenterinsights/v1/spring/ContactCenterInsightsSpringAutoConfiguration.java:[513,10] error: cannot find symbol
[ERROR]   symbol:   method ingestConversationsSettings()
[ERROR]   location: variable clientSettingsBuilder of type Builder
[ERROR] /usr/local/google/home/diegomarquezp/Desktop/spring-cloud-gcp/spring-cloud-previews/google-cloud-contact-center-insights-spring-starter/src/main/java/com/google/cloud/contactcenterinsights/v1/spring/ContactCenterInsightsSpringAutoConfiguration.java:[661,35] error: cannot find symbol
[ERROR]   symbol:   method deleteIssueSettings()
[ERROR]   location: variable clientSettingsBuilder of type Builder
[ERROR] /usr/local/google/home/diegomarquezp/Desktop/spring-cloud-gcp/spring-cloud-previews/google-cloud-contact-center-insights-spring-starter/src/main/java/com/google/cloud/contactcenterinsights/v1/spring/ContactCenterInsightsSpringAutoConfiguration.java:[662,27] error: cannot find symbol
[ERROR]   symbol:   method deleteIssueSettings()
[ERROR]   location: variable clientSettingsBuilder of type Builder
[ERROR] -> [Help 1]

@diegomarquezp
Copy link
Contributor Author
diegomarquezp commented Dec 22, 2022

Different error for apigee-connect

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile (default-compile) on project google-cloud-apigee-connect-spring-starter: Compilation failure: Compilation failure: 
[ERROR] /usr/local/google/home/diegomarquezp/Desktop/spring-cloud-gcp/spring-cloud-previews/google-cloud-apigee-connect-spring-starter/src/main/java/com/google/cloud/apigeeconnect/v1/spring/TetherSpringAutoConfiguration.java:[149,52] error: cannot find symbol
[ERROR]   symbol:   method getRetrySettings()
[ERROR]   location: class Builder<EgressResponse,EgressRequest>
[ERROR] /usr/local/google/home/diegomarquezp/Desktop/spring-cloud-gcp/spring-cloud-previews/google-cloud-apigee-connect-spring-starter/src/main/java/com/google/cloud/apigeeconnect/v1/spring/TetherSpringAutoConfiguration.java:[150,44] error: cannot find symbol
[ERROR]   symbol:   method setRetrySettings(RetrySettings)
[ERROR]   location: class Builder<EgressResponse,EgressRequest>
[ERROR] /usr/local/google/home/diegomarquezp/Desktop/spring-cloud-gcp/spring-cloud-previews/google-cloud-apigee-connect-spring-starter/src/main/java/com/google/cloud/apigeeconnect/v1/spring/TetherSpringAutoConfiguration.java:[160,52] error: cannot find symbol
[ERROR]   symbol:   method getRetrySettings()
[ERROR]   location: class Builder<EgressResponse,EgressRequest>
[ERROR] /usr/local/google/home/diegomarquezp/Desktop/spring-cloud-gcp/spring-cloud-previews/google-cloud-apigee-connect-spring-starter/src/main/java/com/google/cloud/apigeeconnect/v1/spring/TetherSpringAutoConfiguration.java:[161,44] error: cannot find symbol
[ERROR]   symbol:   method setRetrySettings(RetrySettings)
[ERROR]   location: class Builder<EgressResponse,EgressRequest>
[ERROR] -> [Help 1]

TetherSpringAutoconf:149:

147       RetrySettings egressRetrySettings =
148           RetryUtil.updateRetrySettings(
149               clientSettingsBuilder.egressSettings().getRetrySettings(), serviceRetry);

egressSettings() is of type StreamingCallSettings, which doesn't have RetrySettings

@blakeli0
Copy link
Contributor
blakeli0 commented Dec 22, 2022

Different error for contact-center-insights

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile (default-compile) on project google-cloud-contact-center-insights-spring-starter: Compilation failure: Compilation failure: 
[ERROR] /usr/local/google/home/diegomarquezp/Desktop/spring-cloud-gcp/spring-cloud-previews/google-cloud-contact-center-insights-spring-starter/src/main/java/com/google/cloud/contactcenterinsights/v1/spring/ContactCenterInsightsSpringAutoConfiguration.java:[207,35] error: cannot find symbol
[ERROR]   symbol:   method bulkAnalyzeConversationsSettings()
[ERROR]   location: variable clientSettingsBuilder of type Builder
[ERROR] /usr/local/google/home/diegomarquezp/Desktop/spring-cloud-gcp/spring-cloud-previews/google-cloud-contact-center-insights-spring-starter/src/main/java/com/google/cloud/contactcenterinsights/v1/spring/ContactCenterInsightsSpringAutoConfiguration.java:[210,10] error: cannot find symbol
[ERROR]   symbol:   method bulkAnalyzeConversationsSettings()
[ERROR]   location: variable clientSettingsBuilder of type Builder
[ERROR] /usr/local/google/home/diegomarquezp/Desktop/spring-cloud-gcp/spring-cloud-previews/google-cloud-contact-center-insights-spring-starter/src/main/java/com/google/cloud/contactcenterinsights/v1/spring/ContactCenterInsightsSpringAutoConfiguration.java:[215,35] error: cannot find symbol
[ERROR]   symbol:   method ingestConversationsSettings()
[ERROR]   location: variable clientSettingsBuilder of type Builder
[ERROR] /usr/local/google/home/diegomarquezp/Desktop/spring-cloud-gcp/spring-cloud-previews/google-cloud-contact-center-insights-spring-starter/src/main/java/com/google/cloud/contactcenterinsights/v1/spring/ContactCenterInsightsSpringAutoConfiguration.java:[217,10] error: cannot find symbol
[ERROR]   symbol:   method ingestConversationsSettings()
[ERROR]   location: variable clientSettingsBuilder of type Builder
[ERROR] /usr/local/google/home/diegomarquezp/Desktop/spring-cloud-gcp/spring-cloud-previews/google-cloud-contact-center-insights-spring-starter/src/main/java/com/google/cloud/contactcenterinsights/v1/spring/ContactCenterInsightsSpringAutoConfiguration.java:[291,35] error: cannot find symbol
[ERROR]   symbol:   method deleteIssueSettings()
[ERROR]   location: variable clientSettingsBuilder of type Builder
[ERROR] /usr/local/google/home/diegomarquezp/Desktop/spring-cloud-gcp/spring-cloud-previews/google-cloud-contact-center-insights-spring-starter/src/main/java/com/google/cloud/contactcenterinsights/v1/spring/ContactCenterInsightsSpringAutoConfiguration.java:[292,27] error: cannot find symbol
[ERROR]   symbol:   method deleteIssueSettings()
[ERROR]   location: variable clientSettingsBuilder of type Builder
[ERROR] /usr/local/google/home/diegomarquezp/Desktop/spring-cloud-gcp/spring-cloud-previews/google-cloud-contact-center-insights-spring-starter/src/main/java/com/google/cloud/contactcenterinsights/v1/spring/ContactCenterInsightsSpringAutoConfiguration.java:[496,35] error: cannot find symbol
[ERROR]   symbol:   method bulkAnalyzeConversationsSettings()
[ERROR]   location: variable clientSettingsBuilder of type Builder
[ERROR] /usr/local/google/home/diegomarquezp/Desktop/spring-cloud-gcp/spring-cloud-previews/google-cloud-contact-center-insights-spring-starter/src/main/java/com/google/cloud/contactcenterinsights/v1/spring/ContactCenterInsightsSpringAutoConfiguration.java:[499,10] error: cannot find symbol
[ERROR]   symbol:   method bulkAnalyzeConversationsSettings()
[ERROR]   location: variable clientSettingsBuilder of type Builder
[ERROR] /usr/local/google/home/diegomarquezp/Desktop/spring-cloud-gcp/spring-cloud-previews/google-cloud-contact-center-insights-spring-starter/src/main/java/com/google/cloud/contactcenterinsights/v1/spring/ContactCenterInsightsSpringAutoConfiguration.java:[510,35] error: cannot find symbol
[ERROR]   symbol:   method ingestConversationsSettings()
[ERROR]   location: variable clientSettingsBuilder of type Builder
[ERROR] /usr/local/google/home/diegomarquezp/Desktop/spring-cloud-gcp/spring-cloud-previews/google-cloud-contact-center-insights-spring-starter/src/main/java/com/google/cloud/contactcenterinsights/v1/spring/ContactCenterInsightsSpringAutoConfiguration.java:[513,10] error: cannot find symbol
[ERROR]   symbol:   method ingestConversationsSettings()
[ERROR]   location: variable clientSettingsBuilder of type Builder
[ERROR] /usr/local/google/home/diegomarquezp/Desktop/spring-cloud-gcp/spring-cloud-previews/google-cloud-contact-center-insights-spring-starter/src/main/java/com/google/cloud/contactcenterinsights/v1/spring/ContactCenterInsightsSpringAutoConfiguration.java:[661,35] error: cannot find symbol
[ERROR]   symbol:   method deleteIssueSettings()
[ERROR]   location: variable clientSettingsBuilder of type Builder
[ERROR] /usr/local/google/home/diegomarquezp/Desktop/spring-cloud-gcp/spring-cloud-previews/google-cloud-contact-center-insights-spring-starter/src/main/java/com/google/cloud/contactcenterinsights/v1/spring/ContactCenterInsightsSpringAutoConfiguration.java:[662,27] error: cannot find symbol
[ERROR]   symbol:   method deleteIssueSettings()
[ERROR]   location: variable clientSettingsBuilder of type Builder
[ERROR] -> [Help 1]

This RPC was just added two days ago, so it's not released yet. We should probably change our generation scripts to only look at the released commitish instead of head.

@blakeli0
Copy link
Contributor
blakeli0 commented Dec 22, 2022

Different error for apigee-connect

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile (default-compile) on project google-cloud-apigee-connect-spring-starter: Compilation failure: Compilation failure: 
[ERROR] /usr/local/google/home/diegomarquezp/Desktop/spring-cloud-gcp/spring-cloud-previews/google-cloud-apigee-connect-spring-starter/src/main/java/com/google/cloud/apigeeconnect/v1/spring/TetherSpringAutoConfiguration.java:[149,52] error: cannot find symbol
[ERROR]   symbol:   method getRetrySettings()
[ERROR]   location: class Builder<EgressResponse,EgressRequest>
[ERROR] /usr/local/google/home/diegomarquezp/Desktop/spring-cloud-gcp/spring-cloud-previews/google-cloud-apigee-connect-spring-starter/src/main/java/com/google/cloud/apigeeconnect/v1/spring/TetherSpringAutoConfiguration.java:[150,44] error: cannot find symbol
[ERROR]   symbol:   method setRetrySettings(RetrySettings)
[ERROR]   location: class Builder<EgressResponse,EgressRequest>
[ERROR] /usr/local/google/home/diegomarquezp/Desktop/spring-cloud-gcp/spring-cloud-previews/google-cloud-apigee-connect-spring-starter/src/main/java/com/google/cloud/apigeeconnect/v1/spring/TetherSpringAutoConfiguration.java:[160,52] error: cannot find symbol
[ERROR]   symbol:   method getRetrySettings()
[ERROR]   location: class Builder<EgressResponse,EgressRequest>
[ERROR] /usr/local/google/home/diegomarquezp/Desktop/spring-cloud-gcp/spring-cloud-previews/google-cloud-apigee-connect-spring-starter/src/main/java/com/google/cloud/apigeeconnect/v1/spring/TetherSpringAutoConfiguration.java:[161,44] error: cannot find symbol
[ERROR]   symbol:   method setRetrySettings(RetrySettings)
[ERROR]   location: class Builder<EgressResponse,EgressRequest>
[ERROR] -> [Help 1]

This is also a bidi streaming methods, looks like we don't generate retry settings for all streaming methods?

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@diegomarquezp
Copy link
Contributor Author
diegomarquezp commented Dec 22, 2022

contact-center-insights

I may have missed calling generate-library-list.sh with -c v1.1.0 - will try again with this google-cloud-java tag

@diegomarquezp
Copy link
Contributor Author

contact-center-insights

@blakeli0 thanks, you are right.
Somehow we are generating an autoconfig from googleapis head, which doesn't seem right if I add cd googleapis && git reset --hard $googleapis_commitish on generate-one.sh - assuming the googleapis comittish should come from google-cloud-java v1.1.0

@zhumin8
Copy link
Contributor
zhumin8 commented Dec 27, 2022

contact-center-insights

I've double checked the commit we picked up in library_list.txt (758f0d1), it was brought in to 'google-cloud-java' on Dec 7 before the release v1.1.0 (Dec.09).

commit 4c16b05499837628a22622c2642d38f72f7b034d
Author: gcf-owl-bot[bot] <78513119+gcf-owl-bot[bot]@users.noreply.github.com>
Date:   Wed Dec 7 23:15:57 2022 -0500

    chore: [Many APIs] Enable requesting numeric enums in "transport=rest" responses for services supporting this (Java, Go, Python, PHP, TypeScript, C#, and Ruby)
, even if they do not yet turn on REST transport (#8877)
    
    * chore: [Many APIs] Enable requesting numeric enums in "transport=rest" responses for services supporting this (Java, Go, Python, PHP, TypeScript, C#, and Rub
y), even if they do not yet turn on REST transport
    
    - [ ] Regenerate this pull request now.
    
    chore: disallow "transport=rest" for services where numeric enums are not confirmed to be supported (except in PHP and Java)
    PiperOrigin-RevId: 493113566
    
    Source-Link: https://github.com/googleapis/googleapis/commit/758f0d1217d9c7fe398aa5efb1057ce4b6409e55

fi

cd googleapis
git reset --hard $googleapis_comittish
Copy link
Contributor
@zhumin8 zhumin8 Dec 27, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah-ha! I think the issue you are observing with contact-center-insights is here:
you got a typo/mismatch between here and L22 and the commit hash was never used.
btw, why not git checkout <commit> here?

Copy link
Contributor Author
@diegomarquezp diegomarquezp Jan 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I missed this comment! This may fix it. I will test and let you know.
I used git reset because for each library generate-one makes modifications to files in the repo, including some overlaps that would be modified multiple times. A git reset ended up being a straightforward workaround.
Thanks @zhumin8 !

echo "Client Library ArtifactId: $client_lib_artifactid";
echo "Parent Pom Version: $parent_version";
echo "Googleapis Folder: $googleapis_folder";
echo "Googleapis Commitish: $googleapis_comittish";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo/name mismatch

Suggested change
echo "Googleapis Commitish: $googleapis_comittish";
echo "Googleapis Commitish: $googleapis_commitish";

@diegomarquezp
Copy link
Contributor Author

I'm getting a startup error on a test spring application that uses language, when using an @AutoWired LanguageServiceClient bean. Seems like the transport provider bean is not being detected. I'll work on a repro repository so we can discuss further.

java.lang.IllegalStateException: Failed to load ApplicationContext
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'springAutoconfTestApplication': Unsatisfied dependency expressed through field 'languageAutoClient'; nested exception is

 org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'languageServiceClient' defined in class path resource [com/google/cloud/language/v1/spring/LanguageServiceSpringAutoConfiguration.class]: Unsatisfied dependency expressed through method 'languageServiceClient' parameter 0; nested exception is 

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'languageServiceSettings' defined in class path resource [com/google/cloud/language/v1/spring/LanguageServiceSpringAutoConfiguration.class]: Unsatisfied dependency expressed through method 'languageServiceSettings' parameter 0; nested exception is 

org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.google.api.gax.rpc.TransportChannelProvider' available: expected at least 1 bean which qualifies as autowire candidate. 

Dependency annotations: {@org.springframework.beans.factory.annotation.Qualifier(value="defaultLanguageServiceTransportChannelProvider")}
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'languageServiceClient' defined in class path resource [com/google/cloud/language/v1/spring/LanguageServiceSpringAutoConfiguration.class]: Unsatisfied dependency expressed through method 'languageServiceClient' parameter 0; nested exception is 

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'languageServiceSettings' defined in class path resource [com/google/cloud/language/v1/spring/LanguageServiceSpringAutoConfiguration.class]: Unsatisfied dependency expressed through method 'languageServiceSettings' parameter 0; nested exception is 

org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.google.api.gax.rpc.TransportChannelProvider' available: expected at least 1 bean which qualifies as autowire candidate. 

Dependency annotations: {@org.springframework.beans.factory.annotation.Qualifier(value="defaultLanguageServiceTransportChannelProvider")}
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'languageServiceSettings' defined in class path resource [com/google/cloud/language/v1/spring/LanguageServiceSpringAutoConfiguration.class]: Unsatisfied dependency expressed through method 'languageServiceSettings' parameter 0; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.google.api.gax.rpc.TransportChannelProvider' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Qualifier(value="defaultLanguageServiceTransportChannelProvider")}
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.google.api.gax.rpc.TransportChannelProvider' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Qualifier(value="defaultLanguageServiceTransportChannelProvider")}

NOTE: the language autoconf has

  @Bean
  @ConditionalOnMissingBean
  public TransportChannelProvider defaultLanguageServiceTransportChannelProvider() {
    return LanguageServiceSettings.defaultTransportChannelProvider();
  }

zhumin8 added a commit to googleapis/sdk-platform-java that referenced this pull request Jan 4, 2023
Add name to `@ConditionalOnMissingBean` annotation when creating `TransportChannelProvider` bean so that it can be picked up with Qualifier in serviceSettings bean creation that follows.
This was missed in original [commit](0643085) adding this bean and should fix error seen in GoogleCloudPlatform/spring-cloud-gcp#1407 (comment)
diegomarquezp added a commit that referenced this pull request Jan 4, 2023
@diegomarquezp
Copy link
Contributor Author

Closing as #1422 will be used to breakdown each change

diegomarquezp added a commit that referenced this pull request Jan 7, 2023
The source of changes was moved to #1422 for which several PRs were made and
are now either closed or merged (#1430, #1428, #1427, #1426, #1425
, #1424). #1423 has not been merged as gapic-generator-java/1212 will
invalidate this fix

The found (and fixed) errors were:
* the call to `xmllint` did not handle an empty `<modules>` list,
causing the module addition function to fail in `generate-one`
* missing `OPTARG` key `-x`, for commitish in `generate-one`
emmileaf added a commit to googleapis/sdk-platform-java that referenced this pull request Jan 10, 2023
* This PR is a patch for the RetrySettings configuration issue discovered in GoogleCloudPlatform/spring-cloud-gcp#1407. It excludes streaming and LRO methods from retry configuration through spring properties for now.
diegomarquezp added a commit that referenced this pull request Jan 13, 2023
* fix: after merging breakdown of #1407

The source of changes was moved to #1422 for which several PRs were made and
are now either closed or merged (#1430, #1428, #1427, #1426, #1425
, #1424). #1423 has not been merged as gapic-generator-java/1212 will
invalidate this fix

The found (and fixed) errors were:
* the call to `xmllint` did not handle an empty `<modules>` list,
causing the module addition function to fail in `generate-one`
* missing `OPTARG` key `-x`, for commitish in `generate-one`

* chore: undo unnecessary whitespace removal

* fix: add module to pom - remove comment in pom and redundant folder spec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0