You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2022/07/08 05:46:25 UTC
[GitHub] [dubbo] eratolekov opened a new issue, #10287: dubbo-demo-native-provider from dubbo-demo does not run properly
eratolekov opened a new issue, #10287:
URL: https://github.com/apache/dubbo/issues/10287
### Environment
* Dubbo version: 3.0.9
* Operating System version: Ubuntu 20.04
* Java version: OpenJDK Runtime Environment GraalVM CE 22.1.0 (build 17.0.3+7-jvmci-22.1-b06)
### Steps to reproduce this issue
1. Install GraalVM CE Java17 22.1.0 (https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.1.0/graalvm-ce-java17-linux-amd64-22.1.0.tar.gz)
2. Clone the official dubbo repo (`git clone git@github.com:apache/dubbo.git`)
3. Checkout to 3.0.9 version (`git checkout dubbo-3.0.9`)
4. Build the dubbo-demo-native-provider (run `./mvnw -U clean package -pl dubbo-build-tools -pl dubbo-demo/dubbo-demo-native/dubbo-demo-native-interface -pl dubbo-demo/dubbo-demo-native/dubbo-demo-native-provider -P native -Dmaven.test.skip=true -Dcheckstyle.skip=true`)
5. Run the zookeper (`docker-compose up -d`, docker-compose.yml is below)
6. Run the native app dubbo-demo-native-provider (run `./dubbo-demo/dubbo-demo-native/dubbo-demo-native-provider/target/demo-native-provider`)
docker-compose.yml for zookeper
```
version: '3.0'
services:
zookeeper:
image: zookeeper:3.8.0
container_name: zookeeper
networks:
- abnet
ports:
- '2181:2181'
environment:
- 'ZOOKEEPER_CLIENT_PORT=2181'
- 'ZOOKEEPER_TICK_TIME=2000'
networks:
abnet:
driver: bridge
```
### Expected Behavior
The dubbo-demo-native-provider is started successfully.
### Actual Behavior
The exception is raised: `IllegalStateException: No adaptive method exist on extension org.apache.dubbo.common.extension.ExtensionInjector, refuse to create the adaptive class!`
Full stacktrace:
```
$ ./dubbo-demo/dubbo-demo-native/dubbo-demo-native-provider/target/demo-native-provider
Exception in thread "main" java.lang.IllegalStateException: Failed to create adaptive instance: java.lang.IllegalStateException: Can't create adaptive extension interface org.apache.dubbo.common.extension.ExtensionInjector, cause: No adaptive method exist on extension org.apache.dubbo.common.extension.ExtensionInjector, refuse to create the adaptive class!
at org.apache.dubbo.common.extension.ExtensionLoader.getAdaptiveExtension(ExtensionLoader.java:716)
at org.apache.dubbo.common.extension.ExtensionLoader.<init>(ExtensionLoader.java:196)
at org.apache.dubbo.common.extension.ExtensionDirector.createExtensionLoader0(ExtensionDirector.java:123)
at org.apache.dubbo.common.extension.ExtensionDirector.createExtensionLoader(ExtensionDirector.java:114)
at org.apache.dubbo.common.extension.ExtensionDirector.getExtensionLoader(ExtensionDirector.java:104)
at org.apache.dubbo.common.extension.ExtensionAccessor.getExtensionLoader(ExtensionAccessor.java:27)
at org.apache.dubbo.metadata.definition.TypeDefinitionBuilder.initBuilders(TypeDefinitionBuilder.java:43)
at org.apache.dubbo.rpc.model.FrameworkModel.initialize(FrameworkModel.java:86)
at org.apache.dubbo.rpc.model.FrameworkModel.<init>(FrameworkModel.java:79)
at org.apache.dubbo.rpc.model.FrameworkModel.defaultModel(FrameworkModel.java:172)
at org.apache.dubbo.rpc.model.ApplicationModel.defaultModel(ApplicationModel.java:92)
at org.apache.dubbo.config.AbstractMethodConfig.<init>(AbstractMethodConfig.java:103)
at org.apache.dubbo.config.AbstractInterfaceConfig.<init>(AbstractInterfaceConfig.java:200)
at org.apache.dubbo.config.AbstractServiceConfig.<init>(AbstractServiceConfig.java:132)
at org.apache.dubbo.config.ServiceConfigBase.<init>(ServiceConfigBase.java:84)
at org.apache.dubbo.config.ServiceConfig.<init>(ServiceConfig.java:136)
at org.apache.dubbo.demo.graalvm.provider.Application.startWithBootstrap(Application.java:50)
at org.apache.dubbo.demo.graalvm.provider.Application.main(Application.java:40)
Caused by: java.lang.IllegalStateException: Can't create adaptive extension interface org.apache.dubbo.common.extension.ExtensionInjector, cause: No adaptive method exist on extension org.apache.dubbo.common.extension.ExtensionInjector, refuse to create the adaptive class!
at org.apache.dubbo.common.extension.ExtensionLoader.createAdaptiveExtension(ExtensionLoader.java:1291)
at org.apache.dubbo.common.extension.ExtensionLoader.getAdaptiveExtension(ExtensionLoader.java:712)
... 17 more
Caused by: java.lang.IllegalStateException: No adaptive method exist on extension org.apache.dubbo.common.extension.ExtensionInjector, refuse to create the adaptive class!
at org.apache.dubbo.common.extension.AdaptiveClassCodeGenerator.generate(AdaptiveClassCodeGenerator.java:104)
at org.apache.dubbo.common.extension.AdaptiveClassCodeGenerator.generate(AdaptiveClassCodeGenerator.java:94)
at org.apache.dubbo.common.extension.ExtensionLoader.createAdaptiveExtensionClass(ExtensionLoader.java:1313)
at org.apache.dubbo.common.extension.ExtensionLoader.getAdaptiveExtensionClass(ExtensionLoader.java:1300)
at org.apache.dubbo.common.extension.ExtensionLoader.createAdaptiveExtension(ExtensionLoader.java:1284)
... 18 more
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
[GitHub] [dubbo] eratolekov commented on issue #10287: dubbo-demo-native-provider from dubbo-demo does not run properly
Posted by GitBox <gi...@apache.org>.
eratolekov commented on issue #10287:
URL: https://github.com/apache/dubbo/issues/10287#issuecomment-1179006871
Hi @AlbumenJ
I read this instruction.
The generated java classes are present in dubbo-demo-native-provider project:
```
$ tree dubbo-demo/dubbo-demo-native/dubbo-demo-native-provider/src/main/generated/
dubbo-demo/dubbo-demo-native/dubbo-demo-native-provider/src/main/generated/
└── org
└── apache
└── dubbo
├── cache
│ └── CacheFactory$Adaptive.java
├── common
│ ├── serialize
│ │ └── Serialization$Adaptive.java
│ └── threadpool
│ └── ThreadPool$Adaptive.java
├── metadata
│ └── report
│ └── MetadataReportFactory$Adaptive.java
├── monitor
│ └── MonitorFactory$Adaptive.java
├── registry
│ └── RegistryFactory$Adaptive.java
├── remoting
│ ├── Codec$Adaptive.java
│ ├── Codec2$Adaptive.java
│ ├── Dispatcher$Adaptive.java
│ ├── exchange
│ │ └── Exchanger$Adaptive.java
│ ├── http
│ │ └── HttpBinder$Adaptive.java
│ └── Transporter$Adaptive.java
├── rpc
│ ├── cluster
│ │ ├── Cluster$Adaptive.java
│ │ ├── ConfiguratorFactory$Adaptive.java
│ │ ├── LoadBalance$Adaptive.java
│ │ ├── router
│ │ │ └── state
│ │ │ └── StateRouterFactory$Adaptive.java
│ │ └── RouterFactory$Adaptive.java
│ ├── Protocol$Adaptive.java
│ └── ProxyFactory$Adaptive.java
└── validation
└── Validation$Adaptive.java
19 directories, 20 files
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
[GitHub] [dubbo] eratolekov commented on issue #10287: dubbo-demo-native-provider from dubbo-demo does not run properly
Posted by GitBox <gi...@apache.org>.
eratolekov commented on issue #10287:
URL: https://github.com/apache/dubbo/issues/10287#issuecomment-1235036663
hi @chickenlj
definitely I'd like to join, but I guess my experience in graalvm and dubbo is not quite so deep.
anyway I'm interested in dubbo 3 + graalvm
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
[GitHub] [dubbo] eratolekov commented on issue #10287: dubbo-demo-native-provider from dubbo-demo does not run properly
Posted by GitBox <gi...@apache.org>.
eratolekov commented on issue #10287:
URL: https://github.com/apache/dubbo/issues/10287#issuecomment-1209339591
@AlbumenJ
Which version of graalvm is compatible with dubbo 3.0?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
[GitHub] [dubbo] AlbumenJ commented on issue #10287: dubbo-demo-native-provider from dubbo-demo does not run properly
Posted by GitBox <gi...@apache.org>.
AlbumenJ commented on issue #10287:
URL: https://github.com/apache/dubbo/issues/10287#issuecomment-1178878985
https://dubbo.apache.org/zh/docs3-building/java-sdk/reference-manual/graalvm/
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
[GitHub] [dubbo] chickenlj commented on issue #10287: dubbo-demo-native-provider from dubbo-demo does not run properly
Posted by GitBox <gi...@apache.org>.
chickenlj commented on issue #10287:
URL: https://github.com/apache/dubbo/issues/10287#issuecomment-1235014560
@eratolekov Graalvm is an experimental feature in 3.x version that is still under development. Would you like to join and build this feature together with the community?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org