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

No factory for objects of type DefaultGradleConnector available in ConnectorServiceRegistry #8760

Closed
mgroth0 opened this issue Apr 12, 2024 · 5 comments
Assignees

Comments

@mgroth0
Copy link

mgroth0 commented Apr 12, 2024

I hit an error when I try to execute a program with the Gradle Tooling Api:

org.gradle.internal.service.UnknownServiceException: No factory for objects of type DefaultGradleConnector available in ConnectorServiceRegistry

I am new to Graal, just tried it for the first time today. Therefore, it seems possible that there could be some configuration quick-fix I am missing. However, I did try a few things and nothing seemed to work.

Here is the reproducer: https://github.com/mgroth0/graal-8760
Run nativeRun in the reproducer project to see the error.

@selhagani
Copy link
Member

Hi @mgroth0, Thank you for reaching out to us.

Could you please share with us the GraalVM version you're using, your OS version, and your system architecture?

@selhagani selhagani self-assigned this Apr 15, 2024
@mgroth0
Copy link
Author

mgroth0 commented Apr 16, 2024

Hi @selhagani , sure.

GraalVM:

~/Library/Java/JavaVirtualMachines/graalvm-jdk-21.0.2+13.1/Contents/Home/bin/java -version
java version "21.0.2" 2024-01-16 LTS
Java(TM) SE Runtime Environment Oracle GraalVM 21.0.2+13.1 (build 21.0.2+13-LTS-jvmci-23.1-b30)
Java HotSpot(TM) 64-Bit Server VM Oracle GraalVM 21.0.2+13.1 (build 21.0.2+13-LTS-jvmci-23.1-b30, mixed mode, sharing)

OS: MacOS 14.4.1
System Architecture: arm64

@selhagani
Copy link
Member

Hi @mgroth0,

Thank you for providing that information.

Have you had a chance to collect the metadata using the tracing agent? If not, please refer to this documentation link.

Additionally, it's advisable to have the JAR file in order to build the project as a Java application, which would help us ensure that this is indeed a GraalVM issue.

Thank you for your cooperation. Let me know if you need further assistance!

@mgroth0
Copy link
Author

mgroth0 commented May 5, 2024

Hey @selhagani,

I tried the metadata technique, and it solved my bug.

Thank you for your support. Cheers!

@mgroth0 mgroth0 closed this as completed May 5, 2024
@mgroth0
Copy link
Author

mgroth0 commented May 5, 2024

I wonder if there exists a gradle task for collecting metadata, or any other gradle support for this technique. If not, it is ok.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants