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

SofaBootstrapRunListener failed to fetch application configuration #371

Closed
ankeway opened this issue Mar 7, 2019 · 1 comment
Closed
Labels
bug Something isn't working question Further information is requested
Milestone

Comments

@ankeway
Copy link

ankeway commented Mar 7, 2019

use Srping Boot 2.1.2 , At the time of application startup prompt fault as follows

java.lang.ClassCastException: org.springframework.core.env.SimpleCommandLinePropertySource cannot be cast to org.springframework.core.env.MapPropertySource
at com.alipay.sofa.infra.listener.SofaBootstrapRunListener.lambda$assemblyLogSetting$1(SofaBootstrapRunListener.java:62) ~[infra-sofa-boot-starter-3.1.1.jar:3.1.1]
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) ~[?:1.8.0_181]
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175) ~[?:1.8.0_181]
at java.util.concurrent.CopyOnWriteArrayList$COWIterator.forEachRemaining(CopyOnWriteArrayList.java:1206) ~[?:1.8.0_181]
at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801) ~[?:1.8.0_181]
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) ~[?:1.8.0_181]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) ~[?:1.8.0_181]
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151) ~[?:1.8.0_181]
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174) ~[?:1.8.0_181]
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:1.8.0_181]
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418) ~[?:1.8.0_181]

@QilongZhang QilongZhang added question Further information is requested bug Something isn't working labels Mar 8, 2019
@QilongZhang QilongZhang added this to the 3.1.3 milestone Mar 8, 2019
@QilongZhang QilongZhang changed the title java.lang.ClassCastException: org.springframework.core.env.SimpleCommandLinePropertySource cannot be cast to org.springframework.core.env.MapPropertySource SofaBootstrapRunListener failed to fetch application configuration Mar 8, 2019
@QilongZhang
Copy link
Contributor

感谢反馈,我们将于 3.1.3 修复这个问题。 2.x 版本中没有这个问题。

QilongZhang added a commit to QilongZhang/sofa-boot that referenced this issue Mar 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants