java.lang.ClassCastException: org.springframework.roo.model.EnumDetails cannot be cast to java.lang.Integer

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

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Spring JIRA by Adam Pullen, 1 year ago
org.springframework.roo.model.EnumDetails cannot be cast to java.lang.Integer
via Spring JIRA by Adam Pullen, 1 year ago
org.springframework.roo.model.EnumDetails cannot be cast to java.lang.Integer
java.lang.ClassCastException: org.springframework.roo.model.EnumDetails cannot be cast to java.lang.Integer
at org.springframework.roo.addon.dod.DataOnDemandMetadata.getFieldInitializer(DataOnDemandMetadata.java:1013)
at org.springframework.roo.addon.dod.DataOnDemandMetadata.(DataOnDemandMetadata.java:149)
at org.springframework.roo.classpath.itd.AbstractItdMetadataProvider.get(AbstractItdMetadataProvider.java:324)
at org.springframework.roo.metadata.DefaultMetadataService.getInternal(DefaultMetadataService.java:150)
at org.springframework.roo.metadata.DefaultMetadataService.evictAndGet(DefaultMetadataService.java:285)
at org.springframework.roo.classpath.itd.AbstractItdMetadataProvider.notify(AbstractItdMetadataProvider.java:158)
at org.springframework.roo.metadata.DefaultMetadataService.notify(DefaultMetadataService.java:240)
at org.springframework.roo.metadata.internal.DefaultMetadataDependencyRegistry.notifyDownstream(DefaultMetadataDependencyRegistry.java:191)
at org.springframework.roo.classpath.DefaultPhysicalTypeMetadataProvider.onFileEvent(DefaultPhysicalTypeMetadataProvider.java:97)
at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.publish(PollingFileMonitorService.java:350)
at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.scanAll(PollingFileMonitorService.java:323)
at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:181)
at org.springframework.roo.process.manager.internal.DefaultProcessManager.backgroundPoll(DefaultProcessManager.java:128)
at org.springframework.roo.process.manager.internal.DefaultProcessManager.timerBasedPoll(DefaultProcessManager.java:243)
at org.springframework.roo.process.manager.internal.DefaultProcessManager$2.run(DefaultProcessManager.java:71)
at java.lang.Thread.run(Unknown Source)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

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