Skip to content
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

Creating subscriptions with latest local build #9

Open
parity-error opened this issue Mar 9, 2020 · 5 comments
Open

Creating subscriptions with latest local build #9

parity-error opened this issue Mar 9, 2020 · 5 comments

Comments

@parity-error
Copy link

When I use your image
messagebird/gcloud-pubsub-emulator:latest everything works for me as described, including the ability to create topics, etc with the environment variables.

However when I build the image myself and run it with the environment set to create a topic and subscription (same values that worked with your image) it creates the topic then gets the following error when creating a subscription. clipped message from the log follows:

Exception in thread "grpc-default-executor-10" java.lang.NoClassDefFoundError: java/time/Duration
[pubsub] at com.google.cloud.pubsub.testing.v1.MessageBacklog.(MessageBacklog.java:89)
[pubsub] at com.google.cloud.pubsub.testing.v1.MessageBacklog.(MessageBacklog.java:78)
[pubsub] at com.google.cloud.pubsub.testing.v1.FakePubsubServer$SubscriptionData.(FakePubsubServer.java:1353)
[pubsub] at com.google.cloud.pubsub.testing.v1.FakePubsubServer.createSubscription(FakePubsubServer.java:455)
[pubsub] at com.google.cloud.pubsub.testing.v1.PubsubGrpcServerAdapter$2.createSubscription(PubsubGrpcServerAdapter.java:177)
[pubsub] at com.google.pubsub.v1.SubscriberGrpc$MethodHandlers.invoke(SubscriberGrpc.java:2323)
[pubsub] at io.grpc.stub.ServerCalls$UnaryServerCallHandler$UnaryServerCallListener.onHalfClose(ServerCalls.java:171)
[pubsub] at io.grpc.PartialForwardingServerCallListener.onHalfClose(PartialForwardingServerCallListener.java:35)
[pubsub] at io.grpc.ForwardingServerCallListener.onHalfClose(ForwardingServerCallListener.java:23)
[pubsub] at io.grpc.ForwardingServerCallListener$SimpleForwardingServerCallListener.onHalfClose(ForwardingServerCallListener.java:40)
[pubsub] at io.grpc.Contexts$ContextualizedServerCallListener.onHalfClose(Contexts.java:86)
[pubsub] at io.grpc.internal.ServerCallImpl$ServerStreamListenerImpl.halfClosed(ServerCallImpl.java:283)
[pubsub] at io.grpc.internal.ServerImpl$JumpToApplicationThreadServerStreamListener$1HalfClosed.runInContext(ServerImpl.java:761)
[pubsub] at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37)
[pubsub] at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:123)
[pubsub] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152)
[pubsub] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:622)
[pubsub] at java.lang.Thread.run(Thread.java:748)

Is it possible that some of the dependencies of this dockerfile have drifted?

@parity-error
Copy link
Author

To reproduce you can use your own examples from the readme. (for creating topic, subscriptions, etc. )

@KeirSweeney
Copy link

+1 I'm facing the same issue

@KeirSweeney
Copy link

I've got a fix, I'll open up a PR shortly

@KeirSweeney
Copy link

KeirSweeney commented Mar 25, 2020

@parity-error #10

You can find how I got it working in my PR here, really simple change, just updating the JDK version did the trick.

@parity-error
Copy link
Author

Nice. Thank you!

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

No branches or pull requests

2 participants