java.lang.InstantiationError: java.util.Map$Entry

Sonatype JIRA | Brad M | 3 years ago
  1. 0

    In preparation for an upgrade to our primary Nexus (back at version 1.8.0.1), I've copied the working dir and run up a fresh nexus download against it (2.6.4-02). It seems to start up OK, but then when hitting localhost:8087/nexus (I changed the port in nexus.properties), all I get is a directory listing (below) and /nexus/index.html returns a 404 {noformat}Directory: /nexus/ LICENSE.html 11946 bytes Oct 11, 2013 6:13:45 AM WEB-INF/ 512 bytes Oct 22, 2013 5:50:02 PM favicon.ico 1150 bytes Oct 11, 2013 4:38:14 AM favicon.png 1160 bytes Oct 11, 2013 4:38:14 AM images/ 512 bytes Oct 22, 2013 5:50:02 PM robots.txt 86 bytes Oct 11, 2013 4:38:14 AM {noformat} I do get a couple of exceptions in the wrapper.log, which up till now I've assumed are harmless and a result of the data upgrade. {code}jvm 1 | 2013-10-23 11:20:53 INFO [jetty-main-thread-1] org.sonatype.scheduling.DefaultTaskConfigManager - Loading task - Rebuild Maven Metadata Files jvm 1 | 2013-10-23 11:20:53 INFO [jetty-main-thread-1] org.sonatype.scheduling.DefaultTaskConfigManager - Loading task - Optimize Public Repository jvm 1 | 2013-10-23 11:20:53 WARN [jetty-main-thread-1] org.sonatype.scheduling.DefaultTaskConfigManager - Unable to initialize task Optimize Public Repository, couldn't load service class 13 jvm 1 | java.lang.IllegalArgumentException: Could not create task of typeOptimizeIndexTask jvm 1 | at org.sonatype.scheduling.DefaultTaskConfigManager.createTaskInstance(DefaultTaskConfigManager.java:269) [nexus-core-2.6.4-02.jar:2.6.4-02]{code} {code}jvm 1 | 2013-10-23 11:20:53 INFO [jetty-main-thread-1] org.sonatype.scheduling.DefaultTaskConfigManager - Loading task - Publish Indexes jvm 1 | 2013-10-23 11:20:53 WARN [jetty-main-thread-1] org.sonatype.scheduling.DefaultTaskConfigManager - Unable to initialize task Publish Indexes, couldn't load service class 3 jvm 1 | java.lang.IllegalArgumentException: Could not create task of typePublishIndexesTask {code} {code}jvm 1 | 2013-10-23 11:21:01 INFO [LegacyAttributesUpgrader] <unknown-user> org.sonatype.nexus.proxy.maven.maven2.M2Repository - Rebuilding item attributes in repository "Maven Central" [id=central] from path="/" jvm 1 | Exception in thread "LegacyAttributesUpgrader" java.lang.InstantiationError: java.util.Map$Entry jvm 1 | at sun.reflect.GeneratedSerializationConstructorAccessor101.newInstance(Unknown Source) jvm 1 | at java.lang.reflect.Constructor.newInstance(Constructor.java:526) jvm 1 | at com.thoughtworks.xstream.converters.reflection.Sun14ReflectionProvider.newInstance(Sun14ReflectionProvider.java:75) ... jvm 1 | at com.thoughtworks.xstream.XStream.fromXML(XStream.java:922) jvm 1 | at org.sonatype.nexus.proxy.attributes.LegacyFSAttributeStorage.doGetAttributes(LegacyFSAttributeStorage.java:276) ... jvm 1 | at org.sonatype.nexus.proxy.repository.AbstractRepository.recreateAttributes(AbstractRepository.java:599) jvm 1 | at org.sonatype.nexus.proxy.attributes.upgrade.AttributeUpgraderThread.run(AttributeUpgraderThread.java:162){code}

    Sonatype JIRA | 3 years ago | Brad M
    java.lang.InstantiationError: java.util.Map$Entry
  2. 0

    InstantiationError when referencing the same library from multiple plugins

    Stack Overflow | 2 years ago | Tom
    java.lang.InstantiationError: com.company.jenkins.scm.SCM
  3. 0

    Recorder won't start

    Google Groups | 4 years ago | Emmanuel Hugonnet
    java.lang.InstantiationError: scala.Option
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    SVN post-commit hook fails to trigger build in Jenkins 1.399

    Google Groups | 6 years ago | Henk van Voorthuijsen
    java.lang.InstantiationError: hudson.scm.SubversionRepositoryBrowser
  6. 0

    Getting the following in the system log at startup. Not sure of the ramifications. {quote} Nov 2, 2012 9:23:30 AM hudson.util.RobustReflectionConverter doUnmarshal WARNING: Failed to resolve a type java.lang.InstantiationError: hudson.scm.AbstractCvs at sun.reflect.GeneratedSerializationConstructorAccessor507.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at com.thoughtworks.xstream.converters.reflection.Sun14ReflectionProvider.newInstance(Sun14ReflectionProvider.java:76) at hudson.util.RobustReflectionConverter.instantiateNewInstance(RobustReflectionConverter.java:375) at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:220) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76) at hudson.util.RobustReflectionConverter.unmarshalField(RobustReflectionConverter.java:332) at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:274) at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:221) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60) at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:71) at hudson.util.RobustCollectionConverter.populateCollection(RobustCollectionConverter.java:85) at com.thoughtworks.xstream.converters.collections.CollectionConverter.unmarshal(CollectionConverter.java:61) at hudson.util.RobustCollectionConverter.unmarshal(RobustCollectionConverter.java:76) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76) at hudson.util.RobustReflectionConverter.unmarshalField(RobustReflectionConverter.java:332) at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:274) at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:221) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60) at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:137) at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:926) at hudson.util.XStream2.unmarshal(XStream2.java:103) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:912) at hudson.XmlFile.unmarshal(XmlFile.java:160) at hudson.model.Run.reload(Run.java:291) at hudson.model.Run.<init>(Run.java:280) at hudson.model.AbstractBuild.<init>(AbstractBuild.java:182) at hudson.model.Build.<init>(Build.java:103) at hudson.model.FreeStyleBuild.<init>(FreeStyleBuild.java:41) at sun.reflect.GeneratedConstructorAccessor33.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at hudson.model.AbstractProject.loadBuild(AbstractProject.java:1061) at hudson.model.AbstractProject$1.create(AbstractProject.java:275) at hudson.model.AbstractProject$1.create(AbstractProject.java:273) at hudson.model.RunMap.retrieve(RunMap.java:220) at hudson.model.RunMap.retrieve(RunMap.java:59) at jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:638) at jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:621) at jenkins.model.lazy.AbstractLazyLoadRunMap.all(AbstractLazyLoadRunMap.java:574) at jenkins.model.lazy.AbstractLazyLoadRunMap.entrySet(AbstractLazyLoadRunMap.java:240) at java.util.AbstractMap$2$1.<init>(AbstractMap.java:353) at java.util.AbstractMap$2.iterator(AbstractMap.java:352) at hudson.util.RunList.iterator(RunList.java:103) at org.jvnet.hudson.plugins.DownStreamProjectActionFactory.createFor(DownStreamProjectActionFactory.java:59) at hudson.model.AbstractProject.createTransientActions(AbstractProject.java:675) at hudson.model.Project.createTransientActions(Project.java:208) at hudson.model.AbstractProject.updateTransientActions(AbstractProject.java:665) at hudson.model.AbstractProject.onLoad(AbstractProject.java:299) at hudson.model.Project.onLoad(Project.java:88) at hudson.model.Items.load(Items.java:221) at jenkins.model.Jenkins$17.run(Jenkins.java:2507) at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259) at jenkins.model.Jenkins$7.runTask(Jenkins.java:883) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) {quote}

    Jenkins JIRA | 4 years ago | David Ehrenberger
    java.lang.InstantiationError: hudson.scm.AbstractCvs

    4 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.InstantiationError

      java.util.Map$Entry

      at sun.reflect.GeneratedSerializationConstructorAccessor101.newInstance()
    2. Java RT
      Constructor.newInstance
      1. sun.reflect.GeneratedSerializationConstructorAccessor101.newInstance(Unknown Source)
      2. java.lang.reflect.Constructor.newInstance(Constructor.java:526)
      2 frames
    3. XStream Core
      Sun14ReflectionProvider.newInstance
      1. com.thoughtworks.xstream.converters.reflection.Sun14ReflectionProvider.newInstance(Sun14ReflectionProvider.java:75)
      1 frame