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] Failed to execute the demo in section 3.3.4. #15232

Open
3 of 4 tasks
dabao1990 opened this issue Mar 12, 2025 · 3 comments
Open
3 of 4 tasks

[Bug] Failed to execute the demo in section 3.3.4. #15232

dabao1990 opened this issue Mar 12, 2025 · 3 comments
Labels
component/need-triage Need maintainers to triage type/need-triage Need maintainers to triage

Comments

@dabao1990
Copy link

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==3.3.4, jdk==1.8 , CentOS

Steps to reproduce this issue

1、spack install --overwrite --keep-stage --no-checksum -y [email protected] [email protected] [email protected]_8u211
2、zkServer.sh start
3、cd dubbo/dubbo-demo/
4、nohup java -Djava.net.preferIPv4Stack=true -jar dubbo-demo-api-provider/target/dubbo-demo-api-provider-3.3.4.jar & sleep 8
5、java -Djava.net.preferIPv4Stack=true -jar dubbo-demo-api-consumer/target/dubbo-demo-api-consumer-3.3.4.jar

What you expected to happen

=================================
some error information
[root@localhost dubbo-demo]#nohup java -Djava.net.preferIPv4Stack=true -jar dubbo-demo-api-provider/target/dubbo-demo-api-provider-3.3.4.jar & sleep 8
[1] 1381507
nohup: ignoring input and appending output to 'nohup.out'
[1]+ Exit 1 nohup java -Djava.net.preferIPv4Stack=true -jar dubbo-demo-api-provider/target/dubbo-demo-api-provider-3.3.4.jar
[root@localhost dubbo-demo]#java -Djava.net.preferIPv4Stack=true -jar dubbo-demo-api-consumer/target/dubbo-demo-api-consumer-3.3.4.jar
Error: Unable to access jarfile dubbo-demo-api-consumer/target/dubbo-demo-api-consumer-3.3.4.jar

The root 3.3.2 version is completely different. why???

Anything else

No response

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

@dabao1990 dabao1990 added component/need-triage Need maintainers to triage type/need-triage Need maintainers to triage labels Mar 12, 2025
@AlbumenJ
Copy link
Member

You need to compile the project first

@dabao1990
Copy link
Author

You need to compile the project first

How to compile? I tried mvn install and it didn't seem to work.

@AlbumenJ
Copy link
Member

The modules in dubbo-demo is only for developing purpose and haven't being configured with assembly plugin. This mean you cannot run it with java -jar. They can only being executed by IDE(e.g. IDEA)

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