Cloud firestore data retrieving doesn't work anymore after packaging my java application (MacOS)
Nobody has claimed this yet.
Assessment
This issue has not been assessed yet.
Description
Environment :
MacOS, Java JDK : jdk-14.0.1.jdk (Maven project)
Firebase Admin SDK : com.google.firebase:firebase-admin🫙7.0.1
Problem :
When I try to retrieve data with firestore, it works great as long as the application is not packaged.
But when I package the application (on MacOS only, to .app or to .dmg), the application doesn't reach to retrieve the data. The firebase connection work and I get the firestore database which isn't null, but when I use the 'get()' method to retrieve the data, it loops and causes a timeout.
Step to reproduce :
I create a project to reproduce :
[https://github.com/thboulay/JavaFirestorePackage]
Difference between before and after package :
When I run the project AFTER packaging, I get the following error (if I run it before packaging, with Intellij for example, no error and no problem to retrieve the data) :
Dec 02, 2020 10:09:37 AM io.grpc.netty.shaded.io.netty.channel.DefaultChannelId defaultProcessId WARNING: Failed to find the current process ID from ''; using a random value: -1254263216 Error when trying to start firebase java.util.concurrent.ExecutionException: com.google.api.gax.rpc.DeadlineExceededException: io.grpc.StatusRuntimeException: DEADLINE_EXCEEDED: deadline exceeded after 49.985915988s. [buffered_nanos=295866600, buffered_nanos=49697872776, waiting_for_connection] at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:564) at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:545) at com.google.common.util.concurrent.FluentFuture$TrustedFuture.get(FluentFuture.java:86) at com.google.common.util.concurrent.ForwardingFuture.get(ForwardingFuture.java:62) at com.thboulay.FirebaseTest.start(FirebaseTest.java:45) at com.thboulay.JavaFirestorePackage.main(JavaFirestorePackage.java:8) Caused by: com.google.api.gax.rpc.DeadlineExceededException: io.grpc.StatusRuntimeException: DEADLINE_EXCEEDED: deadline exceeded after 49.985915988s. [buffered_nanos=295866600, buffered_nanos=49697872776, waiting_for_connection] at com.google.api.gax.rpc.ApiExceptionFactory.createException(ApiExceptionFactory.java:51) at com.google.api.gax.grpc.GrpcApiExceptionFactory.create(GrpcApiExceptionFactory.java:72) at com.google.api.gax.grpc.GrpcApiExceptionFactory.create(GrpcApiExceptionFactory.java:60) at com.google.api.gax.grpc.GrpcExceptionCallable$ExceptionTransformingFuture.onFailure(GrpcExceptionCallable.java:97) at com.google.api.core.ApiFutures$1.onFailure(ApiFutures.java:68) at com.google.common.util.concurrent.Futures$CallbackListener.run(Futures.java:1050) at com.google.common.util.concurrent.DirectExecutor.execute(DirectExecutor.java:30) at com.google.common.util.concurrent.AbstractFuture.executeListener(AbstractFuture.java:1176) at com.google.common.util.concurrent.AbstractFuture.complete(AbstractFuture.java:969) at com.google.common.util.concurrent.AbstractFuture.setException(AbstractFuture.java:760) at io.grpc.stub.ClientCalls$GrpcFuture.setException(ClientCalls.java:545) at io.grpc.stub.ClientCalls$UnaryStreamToFuture.onClose(ClientCalls.java:515) at io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:426) at io.grpc.internal.ClientCallImpl.access$500(ClientCallImpl.java:66) at io.grpc.internal.ClientCallImpl$1CloseInContext.runInContext(ClientCallImpl.java:416) at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37) at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:123) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.base/java.util.concurrent.FutureTask.run(Unknown Source) at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.base/java.lang.Thread.run(Unknown Source) Caused by: io.grpc.StatusRuntimeException: DEADLINE_EXCEEDED: deadline exceeded after 49.985915988s. [buffered_nanos=295866600, buffered_nanos=49697872776, waiting_for_connection] at io.grpc.Status.asRuntimeException(Status.java:533)
Dependencies :
com.google.firebase:firebase-admin🫙7.0.1 already exists in destination.
com.google.api-client:google-api-client🫙1.30.10 already exists in destination.
com.google.oauth-client:google-oauth-client🫙1.31.0 already exists in destination.
com.google.http-client:google-http-client-jackson2🫙1.36.0 already exists in destination.
com.google.api-client:google-api-client-gson🫙1.30.10 already exists in destination.
com.google.http-client:google-http-client-gson🫙1.36.0 already exists in destination.
com.google.http-client:google-http-client🫙1.35.0 already exists in destination.
org.apache.httpcomponents:httpclient🫙4.5.12 already exists in destination.
org.apache.httpcomponents:httpcore🫙4.4.13 already exists in destination.
com.google.code.findbugs:jsr305🫙3.0.2 already exists in destination.
com.google.j2objc:j2objc-annotations🫙1.3 already exists in destination.
io.opencensus:opencensus-api🫙0.24.0 already exists in destination.
io.opencensus:opencensus-contrib-http-util🫙0.24.0 already exists in destination.
com.google.api:api-common🫙1.9.2 already exists in destination.
javax.annotation:javax.annotation-api🫙1.3.2 already exists in destination.
com.google.auto.value:auto-value-annotations🫙1.7.2 already exists in destination.
com.google.auth:google-auth-library-oauth2-http🫙0.20.0 already exists in destination.
com.google.auth:google-auth-library-credentials🫙0.20.0 already exists in destination.
com.google.cloud:google-cloud-storage🫙1.110.0 already exists in destination.
com.google.guava:failureaccess🫙1.0.1 already exists in destination.
com.google.guava:listenablefuture🫙9999.0-empty-to-avoid-conflict-with-guava already exists in destination.
org.checkerframework:checker-compat-qual🫙2.5.5 already exists in destination.
com.google.errorprone:error_prone_annotations🫙2.3.4 already exists in destination.
com.fasterxml.jackson.core:jackson-core🫙2.11.0 already exists in destination.
com.google.apis:google-api-services-storage🫙v1-rev20200430-1.30.9 already exists in destination.
com.google.code.gson:gson🫙2.8.6 already exists in destination.
com.google.cloud:google-cloud-core🫙1.93.6 already exists in destination.
com.google.api.grpc:proto-google-common-protos🫙1.18.0 already exists in destination.
com.google.cloud:google-cloud-core-http🫙1.93.6 already exists in destination.
com.google.http-client:google-http-client-appengine🫙1.35.0 already exists in destination.
com.google.api:gax-httpjson🫙0.74.0 already exists in destination.
com.google.api:gax🫙1.57.0 already exists in destination.
io.grpc:grpc-context🫙1.30.0 already exists in destination.
com.google.api.grpc:proto-google-iam-v1🫙0.13.0 already exists in destination.
com.google.protobuf:protobuf-java🫙3.12.2 already exists in destination.
com.google.protobuf:protobuf-java-util🫙3.12.2 already exists in destination.
org.threeten:threetenbp🫙1.4.4 already exists in destination.
com.google.cloud:google-cloud-firestore🫙1.35.0 already exists in destination.
com.google.cloud:google-cloud-core-grpc🫙1.93.6 already exists in destination.
io.grpc:grpc-core🫙1.30.0 already exists in destination.
com.google.android:annotations🫙4.1.1.4 already exists in destination.
io.perfmark:perfmark-api🫙0.19.0 already exists in destination.
commons-logging:commons-logging🫙1.2 already exists in destination.
commons-codec:commons-codec🫙1.11 already exists in destination.
com.google.api.grpc:proto-google-cloud-firestore-admin-v1🫙1.35.0 already exists in destination.
com.google.api.grpc:proto-google-cloud-firestore-v1🫙1.35.0 already exists in destination.
com.google.api.grpc:proto-google-cloud-firestore-v1beta1🫙0.88.0 already exists in destination.
io.opencensus:opencensus-contrib-grpc-util🫙0.24.0 already exists in destination.
io.grpc:grpc-protobuf🫙1.30.0 already exists in destination.
io.grpc:grpc-protobuf-lite🫙1.30.0 already exists in destination.
org.codehaus.mojo:animal-sniffer-annotations🫙1.18 already exists in destination.
io.grpc:grpc-api🫙1.30.0 already exists in destination.
com.google.api:gax-grpc🫙1.57.0 already exists in destination.
io.grpc:grpc-auth🫙1.30.0 already exists in destination.
io.grpc:grpc-netty-shaded🫙1.30.0 already exists in destination.
io.grpc:grpc-alts🫙1.30.0 already exists in destination.
io.grpc:grpc-grpclb🫙1.30.0 already exists in destination.
org.apache.commons:commons-lang3🫙3.5 already exists in destination.
org.conscrypt:conscrypt-openjdk-uber🫙2.2.1 already exists in destination.
io.grpc:grpc-stub🫙1.30.0 already exists in destination.
com.google.guava:guava🫙29.0-android already exists in destination.
org.slf4j:slf4j-api🫙1.7.25 already exists in destination.
io.netty:netty-codec-http🫙4.1.50.Final already exists in destination.
io.netty:netty-common🫙4.1.50.Final already exists in destination.
io.netty:netty-buffer🫙4.1.50.Final already exists in destination.
io.netty:netty-codec🫙4.1.50.Final already exists in destination.
io.netty:netty-handler🫙4.1.50.Final already exists in destination.
io.netty:netty-resolver🫙4.1.50.Final already exists in destination.
io.netty:netty-transport🫙4.1.50.Final already exists in destination.
- Dominant language
- Java
- Stars
- 620
- Forks
- 305
- Avg merge
- 4d 9h
- Merged PRs (30d)
- 4
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from firebase/firebase-admin-java
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
firebase/firebase-admin-java#1231 ·
-
api: core
firebase/firebase-admin-java#1198 · 3 comments · 1 assignee ·
-
api: remoteconfig
firebase/firebase-admin-java#1196 · 1 comment · 2 assignees ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
firebase/firebase-admin-java#1192 · 3 comments ·
-
needs-triage type: feature request
Difficulty 3/5 1-2 days Newbie friendliness 45/100
firebase/firebase-admin-java#1149 · 1 comment ·
All issues in firebase/firebase-admin-java
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
elastic/gradle-plugins#157 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
cryptomator/hub#497 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
johanhaleby/occurrent#1120 ·