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

[Q/A][Java SDK (Component)] Configured in XML mode, native-image fails to start after generation #15067

Open
2 tasks done
Hard-programmers opened this issue Jan 20, 2025 · 1 comment

Comments

@Hard-programmers
Copy link

Discussed in #15066

Originally posted by Hard-programmers January 20, 2025

Pre-check

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

Apache Dubbo Component

Java Samples (apache/dubbo-samples)

Details

clone https://github.com/apache/dubbo-samples/tree/master/2-advanced/dubbo-samples-native-image-registry
Modify dubbo-samples-native-image-registry-consumer to xml mode

Add resources/META-INF/dubbo-reference.xml

image

Modify org.apache.dubbo.registry.consumer.NativeDemoConsumerRegistryApplication

image

Actual Behavior

Error creating bean with name 'demoService': Invalid property 'interface' of bean class [org.apache.dubbo.config.spring.ReferenceBean]: Bean property 'interface' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?

image

Code of Conduct

@Hard-programmers
Copy link
Author

Hard-programmers commented Jan 20, 2025

Repeated, closed

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

No branches or pull requests

1 participant