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

[Bug] Compile native, not support generic invoke #14499

Open
4 tasks done
eye-gu opened this issue Aug 7, 2024 · 2 comments
Open
4 tasks done

[Bug] Compile native, not support generic invoke #14499

eye-gu opened this issue Aug 7, 2024 · 2 comments
Labels
component/need-triage Need maintainers to triage type/need-triage Need maintainers to triage

Comments

@eye-gu
Copy link
Contributor

eye-gu commented Aug 7, 2024

Pre-check

  • I am sure that all the content I provide is in English.

Search before asking

  • I had searched in the issues and found no similar issues.

Apache Dubbo Component

Java SDK (apache/dubbo)

Dubbo Version

Dubbo version : 3.3.0-beta.1

Steps to reproduce this issue

Compile native, not support generic invoke

What you expected to happen

Compile native, support generic invoke

Anything else

When the dubbo Maven plugin performs AOT preprocessing, there are no generic interfaces in the created proxy-config.json file

Are you willing to submit a pull request to fix on your own?

  • Yes I am willing to submit a pull request on my own!

Code of Conduct

@eye-gu eye-gu added component/need-triage Need maintainers to triage type/need-triage Need maintainers to triage labels Aug 7, 2024
@eye-gu eye-gu changed the title [Bug] [Bug] Compile native, not support generic invoke Aug 7, 2024
@AlbumenJ
Copy link
Member

AlbumenJ commented Aug 9, 2024

There is no need to add GenericService to proxy-config.json

@eye-gu
Copy link
Contributor Author

eye-gu commented Aug 12, 2024

There is no need to add GenericService to proxy-config.json

The exception is: com.oracle.svm.core.jdk.UnsupportedFeatureError: Proxy class defined by interfaces [interface com.alibaba.dubbo.rpc.service.GenericService, interface org.apache.dubbo.rpc.service.GenericService, interface org.apache.dubbo.rpc.service.EchoService, interface org.apache.dubbo.rpc.service.Destroyable] not found. Generating proxy classes at runtime is not supported. Proxy classes need to be defined at image build time by specifying the list of interfaces that they implement.

Add a proxy-config.json file, The content is:

[
  {
    "interfaces": [
      "com.alibaba.dubbo.rpc.service.GenericService",
      "org.apache.dubbo.rpc.service.GenericService",
      "org.apache.dubbo.rpc.service.EchoService",
      "org.apache.dubbo.rpc.service.Destroyable"
    ]
  }
]

Successfully initiated generic invoke.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/need-triage Need maintainers to triage type/need-triage Need maintainers to triage
Projects
Status: Todo
Development

No branches or pull requests

2 participants