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

LoadException #24

Closed
icode opened this issue Mar 14, 2019 · 2 comments
Closed

LoadException #24

icode opened this issue Mar 14, 2019 · 2 comments
Labels

Comments

@icode
Copy link

icode commented Mar 14, 2019

Exception in thread "main" com.uchuhimo.konf.source.LoadException: fail to load web.host
	at com.uchuhimo.konf.source.SourceKt.loadItem(Source.kt:748)
	at com.uchuhimo.konf.source.SourceKt$load$$inlined$apply$lambda$1.invoke(Source.kt:756)
	at com.uchuhimo.konf.source.SourceKt$load$$inlined$apply$lambda$1.invoke(Source.kt)
	at com.uchuhimo.konf.BaseConfig.lock(BaseConfig.kt:62)
	at com.uchuhimo.konf.source.SourceKt.load(Source.kt:754)
	at com.uchuhimo.konf.BaseConfig.addSource(BaseConfig.kt:464)
	at com.uchuhimo.konf.Config$DefaultImpls.withSource(Config.kt:249)
	at com.uchuhimo.konf.BaseConfig.withSource(BaseConfig.kt:47)
	at com.uchuhimo.konf.source.Loader.resource(Loader.kt:264)
	at com.xxxx.data.server.ConfigKt.classpath(Config.kt:36)
	at com.xxxx.data.server.Configuration.load(Config.kt:57)
	at com.xxxx.data.server.ApplicationKt.main(Application.kt:7)
Caused by: com.uchuhimo.konf.source.NoSuchPathException: cannot find path "host" in source [type: value, url: file:/home/icode/projects/data-center/server/build/resources/main/config.yml, resource: config.yml]
	at com.uchuhimo.konf.source.base.ValueSource.getOrNull(ValueSource.kt:61)
	at com.uchuhimo.konf.source.base.MapSource.getOrNull(MapSource.kt:50)
	at com.uchuhimo.konf.source.SourceKt.loadItem(Source.kt:734)
	... 11 more

please ignore not exist file, and ignore config file not exist key

@feature
Copy link

feature commented Mar 16, 2019

Can you provide the code for you config, the code you use for loading, and the config files? The stacktrace gives a good idea of what might be wrong, but it's hard to help when we don't have much context.

@stale
Copy link

stale bot commented Jun 27, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 30 days if no further activity occurs, but feel free to re-open a closed issue if needed.

@stale stale bot added the stale label Jun 27, 2019
@stale stale bot closed this as completed Jul 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants