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 — AutoML jar file used from IntelliJ Java project - waiting forever for Prediction result (no Exception thrown) · Issue #1339 · GoogleCloudPlatform/java-docs-samples

AutoML jar file used from IntelliJ Java project - waiting forever for Prediction result (no Exception thrown) #1339

New issue
Copy link
New issue
Copy link
Closed
Closed
AutoML jar file used from IntelliJ Java project - waiting forever for Prediction result (no Exception thrown)#1339
Copy link
Assignees
nnegreysirtorryandrewferlitsch
Labels
type: questionRequest for information or clarification. Not an issue.

Description

@ares2015
ares2015
opened on Feb 17, 2019
Issue body actions

Hi there,

I have trained my own language model on Google Cloud. I am able to do predictions on this model via Google Console. Then I was experimenting with this Java example:

https://github.com/GoogleCloudPlatform/java-docs-samples/blob/master/language/automl/src/main/java/com/google/cloud/language/samples/PredictionApi.java

I built jar from com.google.cloud.language.samples. When I run the jar from Windows command line everything is fine. But when I want to use this jar as Maven dependency in my Java Intellij project and I call the jar from my Java code, nothing happens. I am waiting forever for prediction result and no exception is thrown. In other words, call is executed but something is happening under hood without any result. Both calling jar from Windows cmd and calling jar from Intelij happen on the same computer. Is there some additional configuration that I need to add to Java project that uses AutoML jar as dependency?

Thank you in advance for any hint

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
    nnegrey
    and unassigned
    kurtisvg
    on Jun 10, 2019
  4. nnegrey
    assigned
    sirtorry
    and
    andrewferlitsch
    on Jun 10, 2019
  5. nnegrey commented on Jun 10, 2019

    @nnegrey
    nnegrey
    on Jun 10, 2019
    Contributor
    More actions

    @sirtorry or @andrewferlitsch can one of you take a look?

  6. nnegrey commented on Jun 12, 2019

    @nnegrey
    nnegrey
    on Jun 12, 2019
    Contributor
    More actions

    The samples are expecting a few environment variables that might not be picked up by the jar.

        String projectId = System.getenv("PROJECT_ID");
        String computeRegion = System.getenv("REGION_NAME");
    
  7. nnegrey
    closed this as completedon Jun 14, 2019
  8. minherz
    added 3 commits that reference this issue on Nov 9, 2022

    chore(main): release 0.122.12 (#773)

    fcd6c07

    chore(main): release 0.122.12 (#773)

    d857cf0

    chore(main): release 0.122.12 (#773)

    0c3bb22
  9. Sita04
    added a commit that references this issue on Feb 7, 2023

    chore(main): release 3.1.2 (#803)

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

Metadata

Metadata

Assignees

  • @andrewferlitsch
    andrewferlitsch
  • @nnegrey
    nnegrey
  • @sirtorry
    sirtorry

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.