Google Ads Api Java Throw exception of Channel was not shutdown properly

1,132 views
Skip to first unread message

ste...@vidmob.com

unread,
Feb 22, 2019, 5:56:55 PM2/22/19
to AdWords API and Google Ads API Forum
Hi,
I'm trying to use Google Ads Api Beta Java library on Scala - Slick, and this error keeps getting thrown - which is not coming from any of the API calls and I can't tell where it throwing from

Here is what the error looks like

[error] i.g.i.ManagedChannelOrphanWrapper - *~*~*~ Channel ManagedChannelImpl{logId=409, target=googleads.googleapis.com:443} was not shutdown properly!!! ~*~*~*
    Make sure to call shutdown()/shutdownNow() and wait until awaitTermination() returns true.
java.lang.RuntimeException: ManagedChannel allocation site
at io.grpc.internal.ManagedChannelOrphanWrapper$ManagedChannelReference.<init>(ManagedChannelOrphanWrapper.java:103)
at io.grpc.internal.ManagedChannelOrphanWrapper.<init>(ManagedChannelOrphanWrapper.java:53)
at io.grpc.internal.ManagedChannelOrphanWrapper.<init>(ManagedChannelOrphanWrapper.java:44)
at io.grpc.internal.AbstractManagedChannelImplBuilder.build(AbstractManagedChannelImplBuilder.java:440)
at com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.createSingleChannel(InstantiatingGrpcChannelProvider.java:223)
at com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.createChannel(InstantiatingGrpcChannelProvider.java:164)
at com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.getTransportChannel(InstantiatingGrpcChannelProvider.java:156)
at com.google.api.gax.rpc.ClientContext.create(ClientContext.java:157)
at com.google.ads.googleads.v0.services.stub.GrpcGoogleAdsServiceStub.create(GrpcGoogleAdsServiceStub.java:78)
at com.google.ads.googleads.v0.services.stub.GoogleAdsServiceStubSettings.createStub(GoogleAdsServiceStubSettings.java:110)


From what I can gather, the Google Ads Api Java library was using an older version of GAX, in which some people has pointed out there was a bug in them https://github.com/googleapis/google-cloud-java/issues/3693
So I tried to update the version of the GAX that was being used to a newer version in which this bug has been fixed but still no help.

Is this causing because too many GoogleAdsServiceClient has been created, can these object being used simultaneously in different threads? Or if anyone has any suggestions on what causing it or how to fix it would be much appreciated

Thanks

googleadsapi...@google.com

unread,
Feb 25, 2019, 3:53:28 PM2/25/19
to AdWords API and Google Ads API Forum
Hello Stefan, 

Since this is an issue specific to the Google Ads Api Java library, we suggest that you post your concern on the Github issue tracker here. The library owners will be able to take a look and address your concern.

Thanks,
Bharani, Google Ads API Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    http://googleadsdeveloper.blogspot.com/search/label/adwords_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.

Take Survey

Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
 
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/38bc4973-b95a-401d-9225-2ee793864052%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages