org.sonatype.nexus.repository.metadata.MetadataHandlerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • I upgraded RSO to 2.0-M1, got plenty of these in the logs, and 500's while requesting artifacts {noformat} jvm 1 | 2012-01-03 22:24:33 INFO [7-main-thread-1] - org.sonatype.nexus.repositories.metadata.NexusRepositoryMetadataEventInspector - Could not write repository metadata! jvm 1 | org.sonatype.nexus.repository.metadata.MetadataHandlerException: java.lang.ClassCastException: java.io.File cannot be cast to java.util.Map jvm 1 | at org.sonatype.nexus.repository.metadata.DefaultRepositoryMetadataHandler.writeRepositoryMetadata(DefaultRepositoryMetadataHandler.java:121) ~[nexus-repository-metadata-api-1.2.jar:na] jvm 1 | at org.sonatype.nexus.repository.metadata.DefaultRepositoryMetadataHandler.writeRepositoryMetadata(DefaultRepositoryMetadataHandler.java:94) ~[nexus-repository-metadata-api-1.2.jar:na] jvm 1 | at org.sonatype.nexus.repositories.metadata.NexusRepositoryMetadataEventInspector.processRepository(NexusRepositoryMetadataEventInspector.java:201) [nexus-app-2.0-M1.jar:na] jvm 1 | at org.sonatype.nexus.repositories.metadata.NexusRepositoryMetadataEventInspector.inspect(NexusRepositoryMetadataEventInspector.java:86) [nexus-app-2.0-M1.jar:na] jvm 1 | at org.sonatype.nexus.events.DefaultEventInspectorHost$EventInspectorHandler.run(DefaultEventInspectorHost.java:181) [nexus-app-2.0-M1.jar:na] jvm 1 | at org.sonatype.nexus.events.DefaultEventInspectorHost.processEvent(DefaultEventInspectorHost.java:127) [nexus-app-2.0-M1.jar:na] jvm 1 | at org.sonatype.nexus.events.DefaultEventInspectorHost.onEvent(DefaultEventInspectorHost.java:135) [nexus-app-2.0-M1.jar:na] jvm 1 | at org.sonatype.plexus.appevents.AbstractSimpleEventMulticaster.notifyEventListeners(AbstractSimpleEventMulticaster.java:55) [simple-event-multicaster-1.0.0.jar:na] jvm 1 | at org.sonatype.nexus.DefaultNexus.startService(DefaultNexus.java:501) [nexus-app-2.0-M1.jar:na] jvm 1 | at org.sonatype.nexus.DefaultNexus.start(DefaultNexus.java:419) [nexus-app-2.0-M1.jar:na] {noformat}
    via by Brian Demers,
    • 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)[nexus-repository-metadata-api-1.2.jar:na] at org.sonatype.nexus.repository.metadata.DefaultRepositoryMetadataHandler.writeRepositoryMetadata(DefaultRepositoryMetadataHandler.java:94)[nexus-repository-metadata-api-1.2.jar:na] at org.sonatype.nexus.repositories.metadata.NexusRepositoryMetadataEventInspector.processRepository(NexusRepositoryMetadataEventInspector.java:201)[nexus-app-2.0-M1.jar:na] at org.sonatype.nexus.repositories.metadata.NexusRepositoryMetadataEventInspector.inspect(NexusRepositoryMetadataEventInspector.java:86)[nexus-app-2.0-M1.jar:na] at org.sonatype.nexus.events.DefaultEventInspectorHost$EventInspectorHandler.run(DefaultEventInspectorHost.java:181)[nexus-app-2.0-M1.jar:na] at org.sonatype.nexus.events.DefaultEventInspectorHost.processEvent(DefaultEventInspectorHost.java:127)[nexus-app-2.0-M1.jar:na] at org.sonatype.nexus.events.DefaultEventInspectorHost.onEvent(DefaultEventInspectorHost.java:135)[nexus-app-2.0-M1.jar:na] at org.sonatype.plexus.appevents.AbstractSimpleEventMulticaster.notifyEventListeners(AbstractSimpleEventMulticaster.java:55)[simple-event-multicaster-1.0.0.jar:na] at org.sonatype.nexus.DefaultNexus.startService(DefaultNexus.java:501)[nexus-app-2.0-M1.jar:na] at org.sonatype.nexus.DefaultNexus.start(DefaultNexus.java:419)[nexus-app-2.0-M1.jar:na]
    No Bugmate found.