GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — NoSuchMethod Error in gax core · Issue #3470 · googleapis/google-cloud-java

NoSuchMethod Error in gax core #3470

New issue
Copy link
New issue
Copy link
Closed
Closed
NoSuchMethod Error in gax core#3470
Copy link
Assignees
chingor13
Labels
dependenciespriority: p2Moderately-important priority. Fix may not be included in next release.type: questionRequest for information or clarification. Not an issue.

Description

@philkrie
philkrie
opened on Jul 14, 2018
Issue body actions

Here is my pom file

<dependencies>
	<!-- Compile/runtime dependencies -->
	<dependency>
		<groupId>com.google.appengine</groupId>
		<artifactId>appengine-api-1.0-sdk</artifactId>
		<version>1.9.49</version>
	</dependency>
	<dependency>
		<groupId>com.google.apis</groupId>
		<artifactId>google-api-services-pagespeedonline</artifactId>
		<version>v2-rev13-1.22.0</version>
	</dependency>

	<dependency>
		<groupId>javax.servlet</groupId>
		<artifactId>servlet-api</artifactId>
		<version>3.0-alpha-1</version>
		<scope>provided</scope>
	</dependency>
	<dependency>
		<groupId>jstl</groupId>
		<artifactId>jstl</artifactId>
		<version>1.2</version>
	</dependency>

	<dependency>
		<groupId>com.googlecode.objectify</groupId>
		<artifactId>objectify</artifactId>
		<version>5.1.14</version>
	</dependency>


	<!-- Cloud SQL Library dependency-->
	<dependency>
		<groupId>com.google.apis</groupId>
		<artifactId>google-api-services-sqladmin</artifactId>
		<version>v1beta4-rev50-1.23.0</version>
	</dependency>

	<!-- Cloud SQL JDBC Library dependency-->
	<dependency> <!-- Only used locally -->
		<groupId>mysql</groupId>
		<artifactId>mysql-connector-java</artifactId>
		<version>5.1.42</version>  <!-- v5.x.x is for production, v6.x.x EAP X DevAPI -->
	</dependency>
	<dependency>
		<groupId>com.google.cloud.sql</groupId>
		<!-- If using MySQL 6.x driver, use mysql-socket-factory-connector-j-6 instead -->
		<artifactId>mysql-socket-factory</artifactId>
		<version>1.0.5</version>
	</dependency>

	<!-- Restlet dependencies -->
	<dependency>
		<groupId>org.restlet.jee</groupId>
		<artifactId>org.restlet</artifactId>
		<version>${restlet.target.version}</version>
	</dependency>
	<dependency>
		<groupId>org.restlet.jee</groupId>
		<artifactId>org.restlet.ext.json</artifactId>
		<version>${restlet.target.version}</version>
	</dependency>
	<dependency>
		<groupId>org.restlet.jee</groupId>
		<artifactId>org.restlet.ext.servlet</artifactId>
		<version>${restlet.target.version}</version>
	</dependency>
	<dependency>
		<groupId>org.restlet.jee</groupId>
		<artifactId>org.restlet.ext.fileupload</artifactId>
		<version>${restlet.target.version}</version>
	</dependency>
	<dependency>
		<groupId>org.restlet.jee</groupId>
		<artifactId>org.restlet.ext.xml</artifactId>
		<version>${restlet.target.version}</version>
	</dependency>
	<dependency>
		<groupId>org.restlet.osgi</groupId>
		<artifactId>org.restlet.ext.swagger</artifactId>
		<version>${restlet.target.version}</version>
		<exclusions>
			<!-- exclude transitive dependency (version 0.8.7) -->
			<!-- because is not available in Central and 0.8.11 is -->
			<exclusion>
				<groupId>org.raml</groupId>
				<artifactId>raml-parser</artifactId>
			</exclusion>
		</exclusions>
	</dependency>
	<!-- explicitly define dependency to version 0.8.11 -->
	<dependency>
		<groupId>org.raml</groupId>
		<artifactId>raml-parser</artifactId>
		<version>0.8.11</version>
	</dependency>

	<dependency>
		<groupId>joda-time</groupId>
		<artifactId>joda-time</artifactId>
		<version>2.9.7</version>
	</dependency>
	<dependency>
		<groupId>com.google.code.gson</groupId>
		<artifactId>gson</artifactId>
		<version>2.8.0</version>
	</dependency>
	<dependency>
		<groupId>com.google.guava</groupId>
		<artifactId>guava</artifactId>
		<version>18.0</version>
	</dependency>

	<!-- Test Dependencies -->
	<dependency>
		<groupId>junit</groupId>
		<artifactId>junit</artifactId>
		<version>4.12</version>
		<scope>test</scope>
	</dependency>
	<dependency>
		<groupId>org.mockito</groupId>
		<artifactId>mockito-all</artifactId>
		<version>2.0.2-beta</version>
		<scope>test</scope>
	</dependency>
	<dependency>
		<groupId>com.google.appengine</groupId>
		<artifactId>appengine-testing</artifactId>
		<version>${appengine.target.version}</version>
		<scope>test</scope>
	</dependency>
	<dependency>
		<groupId>com.google.appengine</groupId>
		<artifactId>appengine-api-stubs</artifactId>
		<version>${appengine.target.version}</version>
		<scope>test</scope>
	</dependency>
	<dependency>
		<groupId>com.google.cloud</groupId>
		<artifactId>google-cloud-storage</artifactId>
		<version>1.4.0</version>
	</dependency>
	<dependency>
		<groupId>com.google.endpoints</groupId>
		<artifactId>endpoints-framework-tools</artifactId>
		<version>2.0.3</version>
	</dependency>
	<dependency>
		<groupId>com.google.endpoints</groupId>
		<artifactId>endpoints-management-control-appengine</artifactId>
		<version>1.0.2</version>
	</dependency>
	<dependency>
		<groupId>com.google.endpoints</groupId>
		<artifactId>endpoints-framework-auth</artifactId>
		<version>1.0.2</version>
	</dependency>
</dependencies>`

Project was working earlier in the day, suddenly is returning an internal server error:

Caused by: java.lang.NoSuchMethodError: com.google.api.gax.core.GaxProperties.getLibraryVersion(Ljava/lang/Class;)Ljava/lang/String; at com.google.cloud.ServiceOptions.getLibraryVersion(ServiceOptions.java:614) at com.google.cloud.ServiceOptions.getApplicationName(ServiceOptions.java:577) at com.google.cloud.storage.spi.v1.HttpStorageRpc.<init>(HttpStorageRpc.java:94) at com.google.cloud.storage.StorageOptions$DefaultStorageRpcFactory.create(StorageOptions.java:53) at com.google.cloud.storage.StorageOptions$DefaultStorageRpcFactory.create(StorageOptions.java:47) at com.google.cloud.ServiceOptions.getRpc(ServiceOptions.java:506) at com.google.cloud.storage.StorageOptions.getStorageRpcV1(StorageOptions.java:121) at com.google.cloud.storage.StorageImpl.<init>(StorageImpl.java:98) at com.google.cloud.storage.StorageOptions$DefaultStorageFactory.create(StorageOptions.java:43) at com.google.cloud.storage.StorageOptions$DefaultStorageFactory.create(StorageOptions.java:37) at com.google.cloud.ServiceOptions.getService(ServiceOptions.java:493)

Was something deprecated? Not really sure what the issue could be.

Activity

  1. philkrie commented on Jul 14, 2018

    @philkrie
    philkrie
    on Jul 14, 2018
    Author
    More actions

    Looks like the guava dependency was changed, I switched it back to an earlier commit, which uses the following.

    <dependency>
      <groupId>com.google.guava</groupId>
      <artifactId>guava-jdk5</artifactId>
      <version>17.0</version>
    </dependency>
    

    After running mvn clean install, error was gone.

    Why do I have to use guava-jdk5? Would prefer to use the latest library, the app is running on java 8

  2. JustinBeckwith
    added
    triage meI really want to be triaged.
    on Jul 15, 2018
  3. yihanzhen
    added
    type: questionRequest for information or clarification. Not an issue.
    priority: p2Moderately-important priority. Fix may not be included in next release.
    dependencies
    on Jul 16, 2018
  4. JustinBeckwith
    removed
    triage meI really want to be triaged.
    on Jul 16, 2018
  5. elharo commented on Jul 19, 2018

    @elharo
    elharo
    on Jul 19, 2018
    Contributor
    More actions

    You have lots of out of date dependencies there. E.g.

    appengine-api-1.0-sdk should be about 1.9.64
    Objectify should be around 5.1.25
    servlet-api should not be alpha

    There are likely others. It's hard to tell exactly which one is at fault here.
    For Guava try 20.0.0

  6. chingor13 commented on Oct 9, 2018

    @chingor13
    chingor13
    on Oct 9, 2018
    Contributor
    More actions

    You should not need guava-jdk for any recent version of google-cloud-java. Currently, our underlying libraries use guava 20.0 (for compatibility reasons).

  7. chingor13
    closed this as completedon Oct 9, 2018
  8. JustinBeckwith
    assigned
    chingor13
    on Feb 1, 2021
  9. suztomo
    added a commit that references this issue on Mar 9, 2026

    chore(main): release 2.42.3 (#3470)

    8101e98
  10. chingor13
    added 3 commits that reference this issue on Mar 24, 2026

    deps: update junit5 monorepo to v5.11.4 (#3470)

    b5cf60f

    chore(main): release 2.51.1 (#3462)

    522d76d

    chore(spanner): add multiplexed session support for batch write (#3470)

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

Metadata

Metadata

Assignees

  • @chingor13
    chingor13

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

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.