TOP > 技術メモ > Jenkins

Jenkins

Jenkinsトラブルシューティング

【未解決】Publish Over SSH Plugin の設定が保存されない(Tomcat起動時にXMLエラーが発生する)
Tomcat起動時に以下内容のエラーが発生し、保存したSSH設定が読み込めない(消える)。
既知バグ(JENKINS-17058)でJenkinsのXStream関連のアップデートによる影響が原因のようだが詳細は不明。
問題を確認した環境:Jenkins ver. 1.515 - 1.523, Publish Over SSH Plugin 1.10
*Jenkinsのバージョンを下げれば解決可能らしい。
						WARNING: Failed to load C:\.jenkins\jenkins.plugins.publish_over_ssh.BapSshPublisherPlugin.xml
						hudson.util.IOException2: Unable to read C:\.jenkins\jenkins.plugins.publish_over_ssh.BapSshPublisherPlugin.xml
							at hudson.XmlFile.unmarshal(XmlFile.java:170)
							at hudson.model.Descriptor.load(Descriptor.java:820)
							at jenkins.plugins.publish_over_ssh.descriptor.BapSshPublisherPluginDescriptor.<init>&(BapSshPublisherPluginDescriptor.java:68)
							at jenkins.plugins.publish_over_ssh.BapSshPublisherPlugin$Descriptor.<init>(BapSshPublisherPlugin.java:81)
							at jenkins.plugins.publish_over_ssh.BapSshPublisherPlugin$Descriptor$$FastClassByGuice$$c0ccaf36.newInstance(<generated>)
							at com.google.inject.internal.cglib.reflect.$FastConstructor.newInstance(FastConstructor.java:40)
							at com.google.inject.internal.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:61)
							at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:108)
							at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:87)
							at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:259)
							at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
							at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1018)
							at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
							at com.google.inject.Scopes$1$1.get(Scopes.java:59)
							at hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1.get(ExtensionFinder.java:429)
							at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
							at com.google.inject.internal.InjectorImpl$3$1.call(InjectorImpl.java:965)
							at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1011)
							at com.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:961)
							at hudson.ExtensionFinder$GuiceFinder._find(ExtensionFinder.java:391)
							at hudson.ExtensionFinder$GuiceFinder.find(ExtensionFinder.java:382)
							at hudson.ExtensionFinder._find(ExtensionFinder.java:151)
							at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:326)
							at hudson.ExtensionList.load(ExtensionList.java:295)
							at hudson.ExtensionList.ensureLoaded(ExtensionList.java:248)
							at hudson.ExtensionList.getComponents(ExtensionList.java:149)
							at hudson.DescriptorExtensionList.load(DescriptorExtensionList.java:182)
							at hudson.ExtensionList.ensureLoaded(ExtensionList.java:248)
							at hudson.ExtensionList.size(ExtensionList.java:157)
							at java.util.AbstractCollection.isEmpty(Unknown Source)
							at hudson.model.labels.LabelAtom.updateTransientActions(LabelAtom.java:109)
							at hudson.model.labels.LabelAtom.load(LabelAtom.java:191)
							at jenkins.model.Jenkins.getLabelAtom(Jenkins.java:1595)
							at jenkins.model.Jenkins.getSelfLabel(Jenkins.java:2489)
							at hudson.model.Node.getAssignedLabels(Node.java:245)
							at jenkins.model.Jenkins$20.run(Jenkins.java:2583)
							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:895)
							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.runWorker(Unknown Source)
							at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
							at java.lang.Thread.run(Unknown Source)
						Caused by: com.thoughtworks.xstream.converters.ConversionException: object is not an instance of declaring class : object is not an instance of declaring class
						---- Debugging information ----
						message             : object is not an instance of declaring class
						cause-exception     : java.lang.IllegalArgumentException
						cause-message       : object is not an instance of declaring class
						class               : jenkins.plugins.publish_over_ssh.BapSshHostConfiguration
						required-type       : jenkins.plugins.publish_over_ssh.BapSshHostConfiguration
						converter-type      : hudson.util.RobustReflectionConverter
						path                : /jenkins.plugins.publish_over_ssh.BapSshPublisherPlugin$Descriptor/hostConfigurations/jenkins.plugins.publish_over_ssh.BapSshHostConfiguration
						line number         : 25
						class[1]            : hudson.util.CopyOnWriteList
						converter-type[1]   : hudson.util.XStream2$AssociatedConverterImpl
						class[2]            : jenkins.plugins.publish_over_ssh.BapSshPublisherPlugin$Descriptor
						version             : null
						-------------------------------
							at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:79)
							at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
							at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
							at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
							at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:71)
							at hudson.util.CopyOnWriteList$ConverterImpl.unmarshal(CopyOnWriteList.java:193)
							at hudson.util.CopyOnWriteList$ConverterImpl.unmarshal(CopyOnWriteList.java:172)
							at hudson.util.XStream2$AssociatedConverterImpl.unmarshal(XStream2.java:337)
							at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
							at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
							at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
							at hudson.util.RobustReflectionConverter.unmarshalField(RobustReflectionConverter.java:333)
							at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:275)
							at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:222)
							at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
							at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
							at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
							at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
							at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134)
							at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)
							at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1061)
							at hudson.util.XStream2.unmarshal(XStream2.java:109)
							at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1045)
							at hudson.XmlFile.unmarshal(XmlFile.java:166)
							... 43 more
						Caused by: java.lang.IllegalArgumentException: object is not an instance of declaring class
							at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
							at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
							at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
							at java.lang.reflect.Method.invoke(Unknown Source)
							at com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.callReadResolve(SerializationMethodInvoker.java:66)
							at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:223)
							at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
							... 66 more
						

▲ページの先頭へ