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 — feat: [vertexai] Update GAPIC library to include new features by copybara-service[bot] · Pull Request #11473 · googleapis/google-cloud-java

Conversation

@copybara-service

@copybara-service copybara-service Bot commented Mar 7, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

feat: [vertexai] Update GAPIC library to include new features

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@copybara-service
copybara-service Bot requested review from a team March 7, 2025 01:23
@copybara-service copybara-service Bot added the google-vertexai-contributor label Mar 7, 2025
@copybara-service
copybara-service Bot force-pushed the copybara_734345919 branch 3 times, most recently from 7c4175c to 3665396 Compare March 10, 2025 16:02
@copybara-service copybara-service Bot changed the title feat: Update GAPIC library to include new features feat: [vertexai] Update GAPIC library to include new features Mar 10, 2025
jaycee-li
jaycee-li approved these changes Mar 10, 2025
View reviewed changes

@jaycee-li jaycee-li left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Internally approved

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@copybara-service
copybara-service Bot force-pushed the copybara_734345919 branch from 3665396 to cacc35d Compare March 10, 2025 21:52
@blakeli0 blakeli0 mentioned this pull request Mar 11, 2025
[vertexai] Unable to generate content with gemini-2.0-flash-001 model and grounding #11470
Closed
@copybara-service
copybara-service Bot force-pushed the copybara_734345919 branch from cacc35d to 7df5bc1 Compare March 11, 2025 17:48
@suztomo

suztomo commented Mar 13, 2025

Copy link
Copy Markdown
Member
[1/8] Initializing...                                                                                    (6.1s @ 0.31GB)
 Java version: 23.0.2+7, vendor version: GraalVM CE 23.0.2+7.1
 Graal compiler: optimization level: 2, target machine: x86-64-v3
 C compiler: gcc (redhat, x86_64, 11.5.0)
 Garbage collector: Serial GC (max heap size: 80% of RAM)
 5 user-specific feature(s):
 - com.google.api.gax.grpc.nativeimage.GrpcNettyFeature
 - com.google.api.gax.nativeimage.GoogleJsonClientFeature
 - com.google.api.gax.nativeimage.OpenCensusFeature
 - com.oracle.svm.thirdparty.gson.GsonFeature
 - org.graalvm.junit.platform.JUnitPlatformFeature
------------------------------------------------------------------------------------------------------------------------
Build resources:
 - 10.67GB of memory (34.0% of 31.41GB system memory, determined at start)
 - 8 thread(s) (100.0% of 8 available processor(s), determined at start)
Mar 12, 2025 9:59:44 PM com.google.api.gax.nativeimage.NativeImageUtils registerClassForReflection
WARNING: Failed to find io.grpc.netty.shaded.io.netty.channel.ProtocolNegotiators on the classpath for reflection.
[junit-platform-native] Running in 'test listener' mode using files matching pattern [junit-platform-unique-ids*] found in folder [/tmpfs/src/github/google-cloud-java/java-vertexai/google-cloud-vertexai/target/test-ids] and its subfolders.
[2/8] Performing analysis...  []                                                                        (34.6s @ 2.04GB)
   14,018 reachable types   (82.0% of   17,092 total)
   24,711 reachable fields  (54.4% of   45,461 total)
  105,634 reachable methods (64.8% of  163,016 total)
    5,460 types,   202 fields, and 1,594 methods registered for reflection

Fatal error: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: An object of type 'jdk.proxy4.$Proxy69' was found in the image heap. This type, however, is marked for initialization at image run time for the following reason: classes are initialized at run time by default.
This is not allowed for correctness reasons: All objects that are stored in the image heap must be initialized at build time.

You now have two options to resolve this:

1) If it is intended that objects of type 'jdk.proxy4.$Proxy69' are persisted in the image heap, add 

    '--initialize-at-build-time=org.junit.runner.RunWith,java.lang.annotation.Annotation'

to the native-image arguments. Note that initializing new types can store additional objects to the heap. It is advised to check the static fields of [org.junit.runner.RunWith, java.lang.annotation.Annotation] to see if they are safe for build-time initialization,  and that they do not contain any sensitive data that should not become part of the image.

2) If these objects should not be stored in the image heap, please try to infer from the source code how the culprit object got instantiated.

If you are seeing this message after upgrading to a new GraalVM release, this means that some objects ended up in the image heap without their type being marked with --initialize-at-build-time.
To fix this, include '--initialize-at-build-time=org.junit.runner.RunWith,java.lang.annotation.Annotation' in your configuration. If the classes do not originate from your code, it is advised to update all library or framework dependencies to the latest version before addressing this error.

The following detailed trace displays from which field in the code the object was reached.
Object was reached by
  indexing into array java.lang.annotation.Annotation[]@9450204: [Ljava.lang.annotation.Annotation;@9450204 at index 0
  reading field org.junit.runner.Description.fAnnotations of constant 
    org.junit.runner.Description@61634c9d: com.google.cloud.vertexai.it.ITChatSessionIntegrationTest
  reading field org.junit.vintage.engine.descriptor.VintageTestDescriptor.description of constant 
    org.junit.vintage.engine.descriptor.RunnerTestDescriptor@7539bb6b: RunnerTestDescriptor: [engine:junit-vintage]/[runner:com.google.cloud.vertexai.i...
  reading field java.util.HashMap$Node.key of constant 
    java.util.LinkedHashMap$Entry@718b1246: RunnerTestDescriptor: [engine:junit-vintage]/[runner:com.google.cloud.vertexai.i...
  reading field java.util.LinkedHashMap$Entry.before of constant 
    java.util.LinkedHashMap$Entry@6fd475eb: RunnerTestDescriptor: [engine:junit-vintage]/[runner:com.google.cloud.vertexai.i...
  reading field java.util.LinkedHashMap.tail of constant 
    java.util.LinkedHashMap@3a4473c5: {RunnerTestDescriptor: [engine:junit-vintage]/[runner:com.google.cloud.vertexai....
  reading field java.util.HashSet.map of constant 
    java.util.LinkedHashSet@27f7e8a9: [RunnerTestDescriptor: [engine:junit-vintage]/[runner:com.google.cloud.vertexai....
  reading field java.util.Collections$SynchronizedCollection.c of constant 
    java.util.Collections$SynchronizedSet@24e73933: [RunnerTestDescriptor: [engine:junit-vintage]/[runner:com.google.cloud.vertexai....
  reading field org.junit.platform.engine.support.descriptor.AbstractTestDescriptor.children of constant 
    org.junit.vintage.engine.descriptor.VintageEngineDescriptor@20dd67ce: VintageEngineDescriptor: [engine:junit-vintage]
  reading field java.util.HashMap$Node.value of constant 
    java.util.LinkedHashMap$Entry@44114b3b: org.junit.vintage.engine.VintageTestEngine@7ffcb232=VintageEngineDescriptor: [en...
  reading field java.util.LinkedHashMap.head of constant 
    java.util.LinkedHashMap@8ad33f8: {org.junit.vintage.engine.VintageTestEngine@7ffcb232=VintageEngineDescriptor: [e...
  reading field java.util.Collections$UnmodifiableMap.m of constant 
    java.util.Collections$UnmodifiableMap@193de9f0: {org.junit.vintage.engine.VintageTestEngine@7ffcb232=VintageEngineDescriptor: [e...
  reading field org.junit.platform.launcher.core.LauncherDiscoveryResult.testEngineDescriptors of constant 
    org.junit.platform.launcher.core.LauncherDiscoveryResult@2a61ce93: org.junit.platform.launcher.core.LauncherDiscoveryResult@2a61ce93
  reading field org.junit.platform.launcher.core.InternalTestPlan.discoveryResult of constant 
    org.junit.platform.launcher.core.InternalTestPlan@2e681cea: org.junit.platform.launcher.core.InternalTestPlan@2e681cea
  scanning root org.junit.platform.launcher.core.InternalTestPlan@2e681cea: org.junit.platform.launcher.core.InternalTestPlan@2e681cea embedded in
    
  at org.graalvm.junit.platform.NativeImageJUnitLauncher.main(String[]) [bci: -5]
	at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.heap.ImageHeapScanner.onObjectReachable(ImageHeapScanner.java:591)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.heap.SVMImageHeapScanner.onObjectReachable(SVMImageHeapScanner.java:125)
	at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.heap.ImageHeapScanner.lambda$markReachable$10(ImageHeapScanner.java:572)
	at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.util.CompletionExecutor.executeCommand(CompletionExecutor.java:166)
	at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.util.CompletionExecutor.lambda$executeService$0(CompletionExecutor.java:152)
	at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.compute(ForkJoinTask.java:1726)
	at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.compute(ForkJoinTask.java:1717)
	at java.base/java.util.concurrent.ForkJoinTask$InterruptibleTask.exec(ForkJoinTask.java:1641)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:507)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1460)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:2036)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:189)
Caused by: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: An object of type 'jdk.proxy4.$Proxy69' was found in the image heap. This type, however, is marked for initialization at image run time for the following reason: classes are initialized at run time by default.
This is not allowed for correctness reasons: All objects that are stored in the image heap must be initialized at build time.
`
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@copybara-service
copybara-service Bot force-pushed the copybara_734345919 branch from 7df5bc1 to 9de2ba1 Compare March 13, 2025 19:12
@jaycee-li @copybara-github
feat: [vertexai] Update GAPIC library to include new features
6baf06a
PiperOrigin-RevId: 734345919
@copybara-service
copybara-service Bot force-pushed the copybara_734345919 branch from 9de2ba1 to 6baf06a Compare March 13, 2025 21:27
@suztomo
suztomo merged commit 4ebc716 into main Mar 17, 2025
@suztomo
suztomo deleted the copybara_734345919 branch March 17, 2025 19:07
This was referenced Mar 14, 2025
chore(main): release 1.54.0 #11488
Closed
chore(main): release 1.54.0 #11503
Merged
lqiu96 pushed a commit that referenced this pull request Jul 7, 2025
@copybara-service @jaycee-li @lqiu96
feat: [vertexai] Update GAPIC library to include new features (#11473)
8f13a82
PiperOrigin-RevId: 734345919

Co-authored-by: Jaycee Li <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@jaycee-li jaycee-li jaycee-li approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

google-vertexai-contributor

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@suztomo @jaycee-li
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.