Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: EspressoFinalReference NoSuchMethodError #9600

Closed
wants to merge 3 commits into from

Conversation

Weaxs
Copy link
Contributor

@Weaxs Weaxs commented Sep 2, 2024

bug fix: #9599

Exception in thread "main" org.graalvm.polyglot.PolyglotException: com.oracle.truffle.espresso.meta.EspressoError: should not reach here: Error injecting while injecting classes to support finalization in the host (version 17)
	at com.oracle.truffle.espresso.meta.EspressoError.shouldNotReachHere(EspressoError.java:73)
	at com.oracle.truffle.espresso.ref.FinalizationSupport.<clinit>(FinalizationSupport.java:72)
	at com.oracle.truffle.espresso.runtime.EspressoEnv.<init>(EspressoEnv.java:139)
	at com.oracle.truffle.espresso.runtime.EspressoContext.<init>(EspressoContext.java:213)
	at com.oracle.truffle.espresso.EspressoLanguage.createContext(EspressoLanguage.java:192)
	at com.oracle.truffle.espresso.EspressoLanguage.createContext(EspressoLanguage.java:85)
	at com.oracle.truffle.api.LanguageAccessor$LanguageImpl.createEnvContext(LanguageAccessor.java:270)
	at com.oracle.truffle.polyglot.PolyglotLanguageContext.ensureCreated(PolyglotLanguageContext.java:652)
	at com.oracle.truffle.polyglot.PolyglotLanguageContext.ensureInitialized(PolyglotLanguageContext.java:731)
	at com.oracle.truffle.polyglot.PolyglotContextImpl.eval(PolyglotContextImpl.java:1681)
	at com.oracle.truffle.polyglot.PolyglotContextDispatch.eval(PolyglotContextDispatch.java:60)
	at org.graalvm.polyglot.Context.eval(Context.java:402)
	at aaaaaa.ScriptTest.script(ScriptTest.java:138)
	at aaaaaa.ScriptTest.main(ScriptTest.java:51)
	Suppressed: Attached Guest Language Frames (0)
Caused by: java.lang.NoSuchMethodException: no such constructor: com.oracle.truffle.espresso.ref.EspressoFinalReference.<init>(StaticObject,StaticObject,ReferenceQueue)void/newInvokeSpecial
	at java.base/java.lang.invoke.MemberName.makeAccessException(MemberName.java:974)
	at java.base/java.lang.invoke.MemberName$Factory.resolveOrFail(MemberName.java:1117)
	at java.base/java.lang.invoke.MethodHandles$Lookup.resolveOrFail(MethodHandles.java:3649)
	at java.base/java.lang.invoke.MethodHandles$Lookup.findConstructor(MethodHandles.java:2750)
	at com.oracle.truffle.espresso.ref.FinalizationSupport.<clinit>(FinalizationSupport.java:69)
	... 12 more
Caused by: java.lang.NoSuchMethodError: 'void com.oracle.truffle.espresso.ref.EspressoFinalReference.<init>(com.oracle.truffle.espresso.runtime.staticobject.StaticObject, com.oracle.truffle.espresso.runtime.staticobject.StaticObject, java.lang.ref.ReferenceQueue)'
	at java.base/java.lang.invoke.MethodHandleNatives.resolve(Native Method)
	at java.base/java.lang.invoke.MemberName$Factory.resolve(MemberName.java:1085)
	at java.base/java.lang.invoke.MemberName$Factory.resolveOrFail(MemberName.java:1114)
	... 15 more
Internal GraalVM error, please report at https://github.com/oracle/graal/issues/.

Copy link

Thank you for your pull request and welcome to our community! To contribute, please sign the Oracle Contributor Agreement (OCA).
The following contributors of this PR have not signed the OCA:

To sign the OCA, please create an Oracle account and sign the OCA in Oracle's Contributor Agreement Application.

When signing the OCA, please provide your GitHub username. After signing the OCA and getting an OCA approval from Oracle, this PR will be automatically updated.

If you are an Oracle employee, please make sure that you are a member of the main Oracle GitHub organization, and your membership in this organization is public.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Required At least one contributor does not have an approved Oracle Contributor Agreement. label Sep 2, 2024
@Weaxs
Copy link
Contributor Author

Weaxs commented Sep 2, 2024

I have approved agreement
image

Copy link

Thank you for signing the OCA.

@oracle-contributor-agreement oracle-contributor-agreement bot added OCA Verified All contributors have signed the Oracle Contributor Agreement. and removed OCA Required At least one contributor does not have an approved Oracle Contributor Agreement. labels Sep 2, 2024
gilles-duboscq
gilles-duboscq previously approved these changes Sep 9, 2024
Copy link
Member

@gilles-duboscq gilles-duboscq left a comment

Choose a reason for hiding this comment

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

Thanks, i'll integrate this.
There's a checkstyle issue (line too long) but i'll take care of it by disabling checkstyle around that line.

@Weaxs
Copy link
Contributor Author

Weaxs commented Sep 10, 2024

hmmmm... sry, I try to fix this checkstyle error but not success

could u pls approve it again, thx @gilles-duboscq

Checkstyle ends with 1 errors.
/home/runner/work/graal/graal/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/ref/ClassAssembler.java:129: Line is longer than 250 characters (found 251).

@gilles-duboscq
Copy link
Member

There is another formatting issue. I will deal with this one during integration.

@gilles-duboscq
Copy link
Member

See #9662 for the integration PR.

@gilles-duboscq
Copy link
Member

This has been integrated as part of #9662

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[GR-57845] Java/Espresso Support: EspressoFinalReference NoSuchMethodError
2 participants