You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@eventmesh.apache.org by "koonchen (via GitHub)" <gi...@apache.org> on 2023/02/02 12:13:57 UTC
[GitHub] [incubator-eventmesh] koonchen opened a new pull request, #3023: [ISSUE #2935] fix file not exists at startup
koonchen opened a new pull request, #3023:
URL: https://github.com/apache/incubator-eventmesh/pull/3023
Fixes #2935
### Motivation
*Explain the content here.*
*Explain why you want to make the changes and what problem you're trying to solve.*
I failed to start in standalone mode with macos 11 and i found a similar issue #2935 that still unresolved.
So i try it myself.
```shell
2023-02-02 11:09:36,157 ERROR [main] EventMeshStartup(EventMeshStartup.java:56) - EventMesh start fail.
java.lang.RuntimeException: file is not exists
at org.apache.eventmesh.common.config.ConfigService.getConfig(ConfigService.java:139) ~[eventmesh-common-1.8.0-release.jar:1.8.0-release]
at org.apache.eventmesh.common.config.ConfigService.populateConfig(ConfigService.java:168) ~[eventmesh-common-1.8.0-release.jar:1.8.0-release]
at org.apache.eventmesh.common.config.ConfigService.populateConfigForObject(ConfigService.java:113) ~[eventmesh-common-1.8.0-release.jar:1.8.0-release]
at org.apache.eventmesh.spi.EventMeshExtensionFactory.lambda$getSingletonExtension$0(EventMeshExtensionFactory.java:91) ~[eventmesh-spi-1.8.0-release.jar:1.8.0-release]
at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1660) ~[?:1.8.0_312]
at org.apache.eventmesh.spi.EventMeshExtensionFactory.getSingletonExtension(EventMeshExtensionFactory.java:84) ~[eventmesh-spi-1.8.0-release.jar:1.8.0-release]
at org.apache.eventmesh.spi.EventMeshExtensionFactory.getExtension(EventMeshExtensionFactory.java:77) ~[eventmesh-spi-1.8.0-release.jar:1.8.0-release]
at org.apache.eventmesh.metrics.api.MetricsPluginFactory.getMetricsRegistry(MetricsPluginFactory.java:38) ~[eventmesh-metrics-api-1.8.0-release.jar:1.8.0-release]
at org.apache.eventmesh.runtime.boot.EventMeshTCPServer.lambda$null$1(EventMeshTCPServer.java:223) ~[eventmesh-runtime-1.8.0-release.jar:1.8.0-release]
at java.util.ArrayList.forEach(ArrayList.java:1259) ~[?:1.8.0_312]
at org.apache.eventmesh.runtime.boot.EventMeshTCPServer.lambda$init$2(EventMeshTCPServer.java:222) ~[eventmesh-runtime-1.8.0-release.jar:1.8.0-release]
at java.util.Optional.ifPresent(Optional.java:159) ~[?:1.8.0_312]
at org.apache.eventmesh.runtime.boot.EventMeshTCPServer.init(EventMeshTCPServer.java:221) ~[eventmesh-runtime-1.8.0-release.jar:1.8.0-release]
at org.apache.eventmesh.runtime.boot.EventMeshTcpBootstrap.init(EventMeshTcpBootstrap.java:50) ~[eventmesh-runtime-1.8.0-release.jar:1.8.0-release]
at org.apache.eventmesh.runtime.boot.EventMeshServer.init(EventMeshServer.java:108) ~[eventmesh-runtime-1.8.0-release.jar:1.8.0-release]
at org.apache.eventmesh.runtime.boot.EventMeshServer.<init>(EventMeshServer.java:83) ~[eventmesh-runtime-1.8.0-release.jar:1.8.0-release]
at org.apache.eventmesh.runtime.boot.EventMeshStartup.main(EventMeshStartup.java:38) [eventmesh-runtime-1.8.0-release.jar:1.8.0-release]
at org.apache.eventmesh.starter.StartUp.main(StartUp.java:24) [main/:?]
> Task :eventmesh-starter:StartUp.main() FAILED
65 actionable tasks: 3 executed, 62 up-to-date
```
### Modifications
*Describe the modifications you've done.*
### Documentation
- Does this pull request introduce a new feature? (no)
- If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)
- If a feature is not applicable for documentation, explain why?
- If a feature is not documented yet in this PR, please create a followup issue for adding the documentation
--
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: dev-unsubscribe@eventmesh.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: dev-help@eventmesh.apache.org
[GitHub] [incubator-eventmesh] HattoriHenzo commented on pull request #3023: [ISSUE #3053] configuration file does not exist
Posted by "HattoriHenzo (via GitHub)" <gi...@apache.org>.
HattoriHenzo commented on PR #3023:
URL: https://github.com/apache/incubator-eventmesh/pull/3023#issuecomment-1452749931
@xwm1992 seems like the change is not available in the master branch. I am also facing the same issue, while trying to start the project.
--
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: dev-unsubscribe@eventmesh.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: dev-help@eventmesh.apache.org
[GitHub] [incubator-eventmesh] codecov[bot] commented on pull request #3023: [ISSUE #2935] fix file not exists at startup
Posted by "codecov[bot] (via GitHub)" <gi...@apache.org>.
codecov[bot] commented on PR #3023:
URL: https://github.com/apache/incubator-eventmesh/pull/3023#issuecomment-1413704911
# [Codecov](https://codecov.io/gh/apache/incubator-eventmesh/pull/3023?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) Report
> Merging [#3023](https://codecov.io/gh/apache/incubator-eventmesh/pull/3023?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (ee027bd) into [master](https://codecov.io/gh/apache/incubator-eventmesh/commit/fcfa45a550bf50c93abe6bdd4f6630541ccaf10d?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (fcfa45a) will **increase** coverage by `0.00%`.
> The diff coverage is `45.00%`.
```diff
@@ Coverage Diff @@
## master #3023 +/- ##
=========================================
Coverage 12.84% 12.85%
- Complexity 1095 1096 +1
=========================================
Files 548 548
Lines 28615 28623 +8
Branches 2841 2833 -8
=========================================
+ Hits 3676 3679 +3
- Misses 24645 24649 +4
- Partials 294 295 +1
```
| [Impacted Files](https://codecov.io/gh/apache/incubator-eventmesh/pull/3023?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) | Coverage Δ | |
|---|---|---|
| [.../apache/eventmesh/common/config/ConfigService.java](https://codecov.io/gh/apache/incubator-eventmesh/pull/3023?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-ZXZlbnRtZXNoLWNvbW1vbi9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvZXZlbnRtZXNoL2NvbW1vbi9jb25maWcvQ29uZmlnU2VydmljZS5qYXZh) | `45.65% <40.00%> (-2.55%)` | :arrow_down: |
| [...a/org/apache/eventmesh/common/config/FileLoad.java](https://codecov.io/gh/apache/incubator-eventmesh/pull/3023?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-ZXZlbnRtZXNoLWNvbW1vbi9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvZXZlbnRtZXNoL2NvbW1vbi9jb25maWcvRmlsZUxvYWQuamF2YQ==) | `59.09% <50.00%> (-5.91%)` | :arrow_down: |
| [...org/apache/eventmesh/common/config/ConfigInfo.java](https://codecov.io/gh/apache/incubator-eventmesh/pull/3023?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-ZXZlbnRtZXNoLWNvbW1vbi9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvZXZlbnRtZXNoL2NvbW1vbi9jb25maWcvQ29uZmlnSW5mby5qYXZh) | `47.05% <100.00%> (+3.30%)` | :arrow_up: |
| [...rg/apache/eventmesh/runtime/trace/LogExporter.java](https://codecov.io/gh/apache/incubator-eventmesh/pull/3023?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-ZXZlbnRtZXNoLXJ1bnRpbWUvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL2V2ZW50bWVzaC9ydW50aW1lL3RyYWNlL0xvZ0V4cG9ydGVyLmphdmE=) | `0.00% <0.00%> (ø)` | |
| [...ime/admin/handler/RedirectClientByPathHandler.java](https://codecov.io/gh/apache/incubator-eventmesh/pull/3023?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-ZXZlbnRtZXNoLXJ1bnRpbWUvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL2V2ZW50bWVzaC9ydW50aW1lL2FkbWluL2hhbmRsZXIvUmVkaXJlY3RDbGllbnRCeVBhdGhIYW5kbGVyLmphdmE=) | `84.78% <0.00%> (ø)` | |
| [...e/admin/handler/RedirectClientByIpPortHandler.java](https://codecov.io/gh/apache/incubator-eventmesh/pull/3023?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-ZXZlbnRtZXNoLXJ1bnRpbWUvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL2V2ZW50bWVzaC9ydW50aW1lL2FkbWluL2hhbmRsZXIvUmVkaXJlY3RDbGllbnRCeUlwUG9ydEhhbmRsZXIuamF2YQ==) | `31.37% <0.00%> (ø)` | |
| [.../tcp/client/session/push/DownStreamMsgContext.java](https://codecov.io/gh/apache/incubator-eventmesh/pull/3023?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-ZXZlbnRtZXNoLXJ1bnRpbWUvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL2V2ZW50bWVzaC9ydW50aW1lL2NvcmUvcHJvdG9jb2wvdGNwL2NsaWVudC9zZXNzaW9uL3B1c2gvRG93blN0cmVhbU1zZ0NvbnRleHQuamF2YQ==) | `0.00% <0.00%> (ø)` | |
| [...l/tcp/client/recommend/EventMeshRecommendImpl.java](https://codecov.io/gh/apache/incubator-eventmesh/pull/3023?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-ZXZlbnRtZXNoLXJ1bnRpbWUvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL2V2ZW50bWVzaC9ydW50aW1lL2NvcmUvcHJvdG9jb2wvdGNwL2NsaWVudC9yZWNvbW1lbmQvRXZlbnRNZXNoUmVjb21tZW5kSW1wbC5qYXZh) | `0.83% <0.00%> (+<0.01%)` | :arrow_up: |
:mega: We’re building smart automated test selection to slash your CI/CD build times. [Learn more](https://about.codecov.io/iterative-testing/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)
--
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: dev-unsubscribe@eventmesh.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: dev-help@eventmesh.apache.org
[GitHub] [incubator-eventmesh] koonchen commented on pull request #3023: [ISSUE #3053] configuration file does not exist
Posted by "koonchen (via GitHub)" <gi...@apache.org>.
koonchen commented on PR #3023:
URL: https://github.com/apache/incubator-eventmesh/pull/3023#issuecomment-1418687447
Closes #3053
--
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: dev-unsubscribe@eventmesh.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: dev-help@eventmesh.apache.org
[GitHub] [incubator-eventmesh] koonchen commented on pull request #3023: [ISSUE #3053] configuration file does not exist
Posted by "koonchen (via GitHub)" <gi...@apache.org>.
koonchen commented on PR #3023:
URL: https://github.com/apache/incubator-eventmesh/pull/3023#issuecomment-1418602609
link #3053
--
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: dev-unsubscribe@eventmesh.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: dev-help@eventmesh.apache.org
[GitHub] [incubator-eventmesh] koonchen commented on pull request #3023: [ISSUE #2935] fix file not exists at startup
Posted by "koonchen (via GitHub)" <gi...@apache.org>.
koonchen commented on PR #3023:
URL: https://github.com/apache/incubator-eventmesh/pull/3023#issuecomment-1418594678
@xwm1992 Yes, you are right, I didn't express my meaning clearly, this PR #2966 didn't solve my problem, I still get an error when I use the latest master.
```
java.lang.RuntimeException: configuration file does not exist
at org.apache.eventmesh.common.config.ConfigService.getConfig(ConfigService.java:142) ~[eventmesh-common-1.8.0-release.jar:1.8.0-release]
at org.apache.eventmesh.common.config.ConfigService.setRootConfig(ConfigService.java:69) ~[eventmesh-common-1.8.0-release.jar:1.8.0-release]
at org.apache.eventmesh.runtime.boot.EventMeshStartup.main(EventMeshStartup.java:36) [eventmesh-runtime-1.8.0-release.jar:1.8.0-release]
at org.apache.eventmesh.starter.StartUp.main(StartUp.java:24) [main/:?]
> Task :eventmesh-starter:StartUp.main() FAILED
```
I mean just modifying this line of code is not enough `InputStream configurationInputStream = getClass().getResourceAsStream(filePath);`
--
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: dev-unsubscribe@eventmesh.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: dev-help@eventmesh.apache.org
[GitHub] [incubator-eventmesh] xwm1992 merged pull request #3023: [ISSUE #3053] configuration file does not exist
Posted by "xwm1992 (via GitHub)" <gi...@apache.org>.
xwm1992 merged PR #3023:
URL: https://github.com/apache/incubator-eventmesh/pull/3023
--
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: dev-unsubscribe@eventmesh.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: dev-help@eventmesh.apache.org
[GitHub] [incubator-eventmesh] horoc commented on pull request #3023: [ISSUE #2935] fix file not exists at startup
Posted by "horoc (via GitHub)" <gi...@apache.org>.
horoc commented on PR #3023:
URL: https://github.com/apache/incubator-eventmesh/pull/3023#issuecomment-1414813221
hi @koonchen, it seems there is another PR #2966 which is trying to fix this issue. @sbmvirdi, are you still working on it?
--
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: dev-unsubscribe@eventmesh.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: dev-help@eventmesh.apache.org
[GitHub] [incubator-eventmesh] sbmvirdi commented on pull request #3023: [ISSUE #2935] fix file not exists at startup
Posted by "sbmvirdi (via GitHub)" <gi...@apache.org>.
sbmvirdi commented on PR #3023:
URL: https://github.com/apache/incubator-eventmesh/pull/3023#issuecomment-1415776021
yes actually i was trying to fix the issue but was not able to getting some test cases failure @koonchen is this fixed by your end ?
--
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: dev-unsubscribe@eventmesh.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: dev-help@eventmesh.apache.org
[GitHub] [incubator-eventmesh] koonchen commented on pull request #3023: [ISSUE #3053] configuration file does not exist
Posted by "koonchen (via GitHub)" <gi...@apache.org>.
koonchen commented on PR #3023:
URL: https://github.com/apache/incubator-eventmesh/pull/3023#issuecomment-1418692533
@horoc @xwm1992 I don't know how to relate to the new issue #3053, please help to see if the issue needs to be fixed, thx :)
--
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: dev-unsubscribe@eventmesh.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: dev-help@eventmesh.apache.org
[GitHub] [incubator-eventmesh] koonchen commented on pull request #3023: [ISSUE #2935] fix file not exists at startup
Posted by "koonchen (via GitHub)" <gi...@apache.org>.
koonchen commented on PR #3023:
URL: https://github.com/apache/incubator-eventmesh/pull/3023#issuecomment-1413761103
PTAL
--
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: dev-unsubscribe@eventmesh.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: dev-help@eventmesh.apache.org
[GitHub] [incubator-eventmesh] koonchen commented on pull request #3023: [ISSUE #2935] fix file not exists at startup
Posted by "koonchen (via GitHub)" <gi...@apache.org>.
koonchen commented on PR #3023:
URL: https://github.com/apache/incubator-eventmesh/pull/3023#issuecomment-1416759204
@sbmvirdi I have solved this problem without any additional problems, this issue #2935 has been open for a while, please accept my PR and close the issue :)
--
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: dev-unsubscribe@eventmesh.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: dev-help@eventmesh.apache.org
[GitHub] [incubator-eventmesh] xwm1992 commented on pull request #3023: [ISSUE #2935] fix file not exists at startup
Posted by "xwm1992 (via GitHub)" <gi...@apache.org>.
xwm1992 commented on PR #3023:
URL: https://github.com/apache/incubator-eventmesh/pull/3023#issuecomment-1418427738
> @sbmvirdi I have solved this problem without any additional problems, this issue #2935 has been open for a while, please accept my PR and close the issue :)
Hi @koonchen, thank you for your contribute first, but this issue #2935 has been assigned to the @sbmvirdi , please confirm whether the issue has been asigned to others before submitting pr, thanks.
--
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: dev-unsubscribe@eventmesh.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: dev-help@eventmesh.apache.org