java.lang.ClassCastException: org.springframework.data.mapping.context.MappingContextEvent cannot be cast to org.springframework.data.neo4j.event.AfterSaveEvent at com.xenoterracide.rpf.ui.Config$$Lambda$9/191715985.onApplicationEvent(Unknown Source) ~[na:na]

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Spring JIRA by Caleb Cushing, 1 year ago
org.springframework.data.mapping.context.MappingContextEvent cannot be cast to org.springframework.data.neo4j.event.AfterSaveEvent at com.xenoterracide.rpf.ui.Config$$Lambda$9/191715985.onApplicationEvent(Unknown Source) ~[na:na]
via Spring JIRA by Caleb Cushing, 1 year ago
org.springframework.data.mapping.context.MappingContextEvent cannot be cast to org.springframework.data.neo4j.event.AfterSaveEvent at com.xenoterracide.rpf.ui.Config$$Lambda$9/191715985.onApplicationEvent(Unknown Source) ~[na:na]
via GitHub by baiuterfk
, 2 months ago
org.springframework.boot.context.event.ApplicationFailedEvent cannot be cast to org.springframework.boot.web.context.WebServerInitializedEvent**
via Stack Overflow by kumar
, 3 months ago
org.springframework.boot.context.event.ApplicationFailedEvent cannot be cast to org.springframework.boot.web.context.WebServerInitializedEvent
via Stack Overflow by timisenco
, 2 months ago
org.springframework.boot.context.event.ApplicationFailedEvent cannot be cast to org.springframework.boot.web.context.WebServerInitializedEvent
via Stack Overflow by maxi175
, 3 months ago
org.springframework.boot.context.event.ApplicationFailedEvent cannot be cast to org.springframework.boot.web.context.WebServerInitializedEvent
java.lang.ClassCastException: org.springframework.data.mapping.context.MappingContextEvent cannot be cast to org.springframework.data.neo4j.event.AfterSaveEvent at com.xenoterracide.rpf.ui.Config$$Lambda$9/191715985.onApplicationEvent(Unknown Source) ~[na:na]
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:163)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:136)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:119)
at org.springframework.context.support.AbstractApplicationContext.registerListeners(AbstractApplicationContext.java:809)
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:764)
at org.springframework.boot.SpringApplication.doRun(SpringApplication.java:357)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:305)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1124)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1113)
at com.xenoterracide.rpf.TestApplication.main(TestApplication.java:13)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago

Know the solutions? Share your knowledge to help other developers to debug faster.