Skip to content

Pubsub: ClassNotFoundException org/eclipse/jetty/alpn/ALPN with versions 0.32, 0.35, ..., 0.38 #3044

Description

@j256

Although I've seen similar issues, they all seem to be closed, I'm still seeing the following error with recent versions of this API. Related to: #2740 #3036

Caused by: java.lang.ClassNotFoundException: org/eclipse/jetty/alpn/ALPN

My test program is doing the following:

ProjectSubscriptionName subName = ProjectSubscriptionName.of("project", "subscriber");
Builder builder = Subscriber.newBuilder(subName, new OurReceiver());
// also tried adding the following
// GoogleCredentials cred=GoogleCredentials.fromStream(new FileInputStream("creds.json"));
// builder.setCredentialsProvider(FixedCredentialsProvider.create(cred));
Subscriber subscriber = builder.build();
subscriber.startAsync().awaitRunning();

Here's my maven pom.xml dependency. Dependency tree attached:

<dependency>
	<groupId>com.google.cloud</groupId>
	<artifactId>google-cloud-pubsub</artifactId>
	<version>0.38.0-beta</version> <!-- also tried 32, 35, 36, 37 -->
</dependency>

Any idea what I'm doing wrong? Can I even run this outside of the Google network? Please excuse the obvious ignorance of this stuff.

dependencies.txt

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

dependenciespriority: p2Moderately-important priority. Fix may not be included in next release.type: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions