I think you get this error because you run java 8 on an old jenkins core doing this
2015-03-29 17:10 GMT+02:00 Charles Chan <[email protected]>: > I tried to use `mvn htp:run` to start up the server, but was unable to > create a job with/out the changes. The server threw the following exception: > WARNING: Failed to instantiate NodeMonitors > java.lang.ArrayIndexOutOfBoundsException: -1 > at > com.thoughtworks.xstream.core.util.OrderRetainingMap.entrySet(OrderRetainingMap.java:77) > at java.util.HashMap.putMapEntries(HashMap.java:511) > at java.util.HashMap.putAll(HashMap.java:784) > at > com.thoughtworks.xstream.core.util.OrderRetainingMap.<init>(OrderRetainingMap.java:36) > at > com.thoughtworks.xstream.converters.reflection.FieldDictionary.buildMap(FieldDictionary.java:135) > at > com.thoughtworks.xstream.converters.reflection.FieldDictionary.fieldsFor(FieldDictionary.java:76) > at > com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:127) > at > hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:143) > at > hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:102) > at > com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69) > at > com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58) > at > com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43) > at > com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:88) > at > com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:64) > at > hudson.util.DescribableList$ConverterImpl.marshal(DescribableList.java:259) > at > com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69) > at > com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58) > at > com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43) > at > com.thoughtworks.xstream.core.TreeMarshaller.start(TreeMarshaller.java:82) > at > com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.marshal(AbstractTreeMarshallingStrategy.java:37) > at com.thoughtworks.xstream.XStream.marshal(XStream.java:898) > at com.thoughtworks.xstream.XStream.marshal(XStream.java:887) > at com.thoughtworks.xstream.XStream.toXML(XStream.java:860) > at hudson.XmlFile.write(XmlFile.java:183) > at hudson.model.ComputerSet$1.save(ComputerSet.java:76) > at hudson.util.PersistedList.onModified(PersistedList.java:173) > at hudson.util.PersistedList.replaceBy(PersistedList.java:85) > at hudson.model.ComputerSet.<clinit>(ComputerSet.java:431) > at jenkins.model.Jenkins.getComputer(Jenkins.java:1109) > at > hudson.node_monitors.NodeMonitorUpdater$1.run(NodeMonitorUpdater.java:39) > at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) > at java.util.concurrent.FutureTask.run(FutureTask.java:266) > at > java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) > at > java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) > at java.lang.Thread.run(Thread.java:745) > > I am not sure I fully understand what mean by conflict with core 1.526? > Are you suggesting that I should upgrade the core version (eg to 1.598) > instead of adding the depdencies? Please elaborate. > > Thank you. > > On Sunday, March 29, 2015 at 5:58:33 AM UTC-7, Kanstantsin Shautsou wrote: >> >> Wouldn't it conflict with core jenkins versions? Have you tried to run on >> 1.526 >> version? You can use `mvn hpi:run` >> >> -- > You received this message because you are subscribed to the Google Groups > "Jenkins Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-dev/9b3886d8-23d3-4e1d-8b2e-c4c75ec22665%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-dev/9b3886d8-23d3-4e1d-8b2e-c4c75ec22665%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANMVJzmXEh7hatKnzdAVzsWrAOHEu_99yHXtQxRGCBz0Q%3D%3DrDQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
