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 — Doesnt find StorageFactory.getService · Issue #1395 · GoogleCloudPlatform/java-docs-samples

Doesnt find StorageFactory.getService #1395

New issue
Copy link
New issue
Copy link
Closed
Closed
Doesnt find StorageFactory.getService#1395
Copy link
Assignees
dzlier-gcp
Labels
type: questionRequest for information or clarification. Not an issue.

Description

@AndresUrregoAngel
AndresUrregoAngel
opened on Apr 24, 2019
Issue body actions

Describe the issue

I'm using Java 1.8 along with Maven 3, I have added this dependency:

 <dependency>
            <groupId>com.google.apis</groupId>
            <artifactId>google-api-services-storage</artifactId>
            <version>v1-rev20181109-1.28.0</version>
            <exclusions>
                <exclusion> <!-- exclude an old version of Guava -->
                    <groupId>com.google.guava</groupId>
                    <artifactId>guava-jdk5</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

But when I try to perform :

Storage client = StorageFactory.getService();

The getService doesnt exist as an option from StorageFactory

Activity

  1. kurtisvg
    self-assigned this
    on Jun 5, 2019
  2. kurtisvg
    added
    type: questionRequest for information or clarification. Not an issue.
    on Jun 10, 2019
  3. kurtisvg
    assigned
    dzlier-gcp
    and unassigned
    kurtisvg
    on Jun 10, 2019
  4. dzlier-gcp commented on Jun 12, 2019

    @dzlier-gcp
    dzlier-gcp
    on Jun 12, 2019
    Member
    More actions

    Hi Andres, please excuse the delay.

    I see the problem: StorageFactory is actually a utility class created in the sample, not native from the library. Please see this class for how to instantiate a Storage client in the meantime, and we will look into how to make this more clear in documentation.

  5. dzlier-gcp
    closed this as completedon Jun 12, 2019
  6. minherz
    added 2 commits that reference this issue on Nov 16, 2022

    chore(deps): update dependency com.google.cloud:libraries-bom to v26.…

    fea5299

    chore(deps): update dependency com.google.cloud:libraries-bom to v26.…

    f3c0405
  7. anguillanneuf
    added a commit that references this issue on Dec 5, 2022

    chore(deps): update dependency com.google.cloud:libraries-bom to v26.…

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

Metadata

Metadata

Assignees

  • @dzlier-gcp
    dzlier-gcp

Labels

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.