org.sonatype.nexus.repository.metadata.MetadataHandlerException: java.lang.ClassCastException: java.io.File cannot be cast to java.util.Map

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 Sonatype JIRA by Brian Demers, 1 year ago
java.lang.ClassCastException: java.io.File cannot be cast to java.util.Map
org.sonatype.nexus.repository.metadata.MetadataHandlerException: java.lang.ClassCastException: java.io.File cannot be cast to java.util.Map
at org.sonatype.nexus.repository.metadata.DefaultRepositoryMetadataHandler.writeRepositoryMetadata(DefaultRepositoryMetadataHandler.java:121)
at org.sonatype.nexus.repositories.metadata.NexusRepositoryMetadataEventInspector.processRepository(NexusRepositoryMetadataEventInspector.java:201)
at org.sonatype.nexus.repositories.metadata.NexusRepositoryMetadataEventInspector.inspect(NexusRepositoryMetadataEventInspector.java:86)
at org.sonatype.nexus.events.DefaultEventInspectorHost$EventInspectorHandler.run(DefaultEventInspectorHost.java:181)
at org.sonatype.nexus.events.DefaultEventInspectorHost.processEvent(DefaultEventInspectorHost.java:127)
at org.sonatype.nexus.events.DefaultEventInspectorHost.onEvent(DefaultEventInspectorHost.java:135)
at org.sonatype.nexus.DefaultNexus.startService(DefaultNexus.java:501)
at org.sonatype.nexus.DefaultNexus.start(DefaultNexus.java:419)

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.

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