Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Hudson » NoSuchMethodException after upgrading from 1.359 to 3.0.1
NoSuchMethodException after upgrading from 1.359 to 3.0.1 [message #1067509] Tue, 09 July 2013 07:46 Go to next message
Simon Voggeneder is currently offline Simon VoggenederFriend
Messages: 2
Registered: July 2013
Junior Member
Our comany upgraded our installation of Hudson from version 1.359 to 3.0.1 after a library dependency forced us to upgrade our Java runtime from JRE6 to JRE7. Hudson 1.359 is not compatible with JRE7 due to this bug in the p2 libraries.

After upgrading, our builds do not work anymore. Buckminster cannot be invoked. This is the error message we get:

FATAL: net.sf.json.JSONException: java.lang.NoSuchMethodException: Unknown property 'buckminsters' on class 'class hudson.plugins.buckminster.install.BuckminsterInstallable$BuckminsterInstallableList'
java.lang.RuntimeException: net.sf.json.JSONException: java.lang.NoSuchMethodException: Unknown property 'buckminsters' on class 'class hudson.plugins.buckminster.install.BuckminsterInstallable$BuckminsterInstallableList'
	at hudson.plugins.buckminster.EclipseBuckminsterBuilder.perform(EclipseBuckminsterBuilder.java:177)
	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:34)
	at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:646)
	at hudson.model.Build$RunnerImpl.build(Build.java:181)
	at hudson.model.Build$RunnerImpl.doRun(Build.java:136)
	at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:434)
	at hudson.model.Run.run(Run.java:1390)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:40)
	at hudson.model.ResourceController.execute(ResourceController.java:82)
	at hudson.model.Executor.run(Executor.java:137)
Caused by: net.sf.json.JSONException: java.lang.NoSuchMethodException: Unknown property 'buckminsters' on class 'class hudson.plugins.buckminster.install.BuckminsterInstallable$BuckminsterInstallableList'
	at net.sf.json.util.PropertySetStrategy$DefaultPropertySetStrategy._setProperty(PropertySetStrategy.java:69)
	at net.sf.json.util.PropertySetStrategy$DefaultPropertySetStrategy.setProperty(PropertySetStrategy.java:60)
	at net.sf.json.JSONObject.setProperty(JSONObject.java:1394)
	at net.sf.json.JSONObject.toBean(JSONObject.java:422)
	at net.sf.json.JSONObject.toBean(JSONObject.java:233)
	at hudson.plugins.buckminster.BuckminsterInstallation$BuckminsterInstaller$DescriptorImpl.getInstallables(BuckminsterInstallation.java:361)
	at hudson.tools.DownloadFromUrlInstaller.getInstallable(DownloadFromUrlInstaller.java:76)
	at hudson.tools.DownloadFromUrlInstaller.performInstallation(DownloadFromUrlInstaller.java:87)
	at hudson.plugins.buckminster.BuckminsterInstallation$BuckminsterInstaller.performInstallation(BuckminsterInstallation.java:161)
	at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:54)
	at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:99)
	at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:137)
	at hudson.plugins.buckminster.BuckminsterInstallation.forNode(BuckminsterInstallation.java:84)
	at hudson.plugins.buckminster.EclipseBuckminsterBuilder.perform(EclipseBuckminsterBuilder.java:163)
	... 9 more
Caused by: java.lang.NoSuchMethodException: Unknown property 'buckminsters' on class 'class hudson.plugins.buckminster.install.BuckminsterInstallable$BuckminsterInstallableList'
	at org.apache.commons.beanutils.PropertyUtilsBean.setSimpleProperty(PropertyUtilsBean.java:2123)
	at org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUtils.java:890)
	at net.sf.json.util.PropertySetStrategy$DefaultPropertySetStrategy._setProperty(PropertySetStrategy.java:67)
	... 22 more


Googling the error message does not return any hints on how to tackle this problem. It seems that a method or class is invoked that does not match the signature of the actual class available, hence the reference to the unknown property.

Does anyone around here have an idea on how to resolve this?
Re: NoSuchMethodException after upgrading from 1.359 to 3.0.1 [message #1067675 is a reply to message #1067509] Wed, 10 July 2013 02:16 Go to previous messageGo to next message
Bob Foster is currently offline Bob FosterFriend
Messages: 85
Registered: January 2013
Member
What version of buckminster plugin do you have installed? Latest version is 1.0.8.
Re: NoSuchMethodException after upgrading from 1.359 to 3.0.1 [message #1067694 is a reply to message #1067675] Wed, 10 July 2013 07:14 Go to previous messageGo to next message
Simon Voggeneder is currently offline Simon VoggenederFriend
Messages: 2
Registered: July 2013
Junior Member
For the sake of clarity, here are the system properties:

Name  ↓	Value   
awt.toolkit	sun.awt.X11.XToolkit
executable-war	/usr/share/hudson/hudson.war
file.encoding	UTF-8
file.encoding.pkg	sun.io
file.separator	/
java.awt.graphicsenv	sun.awt.X11GraphicsEnvironment
java.awt.printerjob	sun.print.PSPrinterJob
java.class.path	/usr/share/hudson/hudson.war
java.class.version	51.0
java.endorsed.dirs	/usr/lib/jvm/java-7-oracle/jre/lib/endorsed
java.ext.dirs	/usr/lib/jvm/java-7-oracle/jre/lib/ext:/usr/java/packages/lib/ext
java.home	/usr/lib/jvm/java-7-oracle/jre
java.io.tmpdir	/tmp
java.library.path	/usr/java/packages/lib/i386:/lib:/usr/lib
java.runtime.name	Java(TM) SE Runtime Environment
java.runtime.version	1.7.0_25-b15
java.specification.name	Java Platform API Specification
java.specification.vendor	Oracle Corporation
java.specification.version	1.7
java.vendor	Oracle Corporation
java.vendor.url	{removed}
java.vendor.url.bug	{removed}
java.version	1.7.0_25
java.vm.info	mixed mode
java.vm.name	Java HotSpot(TM) Client VM
java.vm.specification.name	Java Virtual Machine Specification
java.vm.specification.vendor	Oracle Corporation
java.vm.specification.version	1.7
java.vm.vendor	Oracle Corporation
java.vm.version	23.25-b01
jna.platform.library.path	/usr/lib:/lib
line.separator	\n
os.arch	i386
os.name	Linux
os.version	2.6.26-2-686
path.separator	:
sun.arch.data.model	32
sun.boot.class.path	/usr/lib/jvm/java-7-oracle/jre/lib/resources.jar:/usr/lib/jvm/java-7-oracle/jre/lib/rt.jar:/usr/lib/jvm/java-7-oracle/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-7-oracle/jre/lib/jsse.jar:/usr/lib/jvm/java-7-oracle/jre/lib/jce.jar:/usr/lib/jvm/java-7-oracle/jre/lib/charsets.jar:/usr/lib/jvm/java-7-oracle/jre/lib/jfr.jar:/usr/lib/jvm/java-7-oracle/jre/classes
sun.boot.library.path	/usr/lib/jvm/java-7-oracle/jre/lib/i386
sun.cpu.endian	little
sun.cpu.isalist	
sun.font.fontmanager	sun.awt.X11FontManager
sun.io.unicode.encoding	UnicodeLittle
sun.java.command	/usr/share/hudson/hudson.war --webroot=/var/run/hudson/war --httpPort=8080 --ajp13Port=-1
sun.java.launcher	SUN_STANDARD
sun.jnu.encoding	UTF-8
sun.management.compiler	HotSpot Client Compiler
sun.os.patch.level	unknown
svnkit.http.methods	Digest,Basic,NTLM,Negotiate
svnkit.ssh2.persistent	false
user.country	AT
user.dir	/
user.home	/var/lib/hudson
user.language	de
user.name	hudson
user.timezone	Europe/Vienna


Environment variables

Name  ↓	Value   
HOME	/var/lib/hudson
HUDSON_HOME	/var/lib/hudson
LANG	de_AT.UTF-8
LOGNAME	hudson
MAIL	/var/mail/hudson
NLSPATH	/usr/dt/lib/nls/msg/%L/%N.cat
PATH	/usr/local/bin:/usr/bin:/bin:/usr/games
PWD	/var/lib/hudson
SHELL	/bin/bash
SHLVL	1
TERM	linux
USER	hudson
XFILESEARCHPATH	/usr/dt/app-defaults/%L/Dt
_	/usr/bin/daemon
ftp_proxy	ftp://{removed}
http_proxy	http://{removed}
https_proxy	https://{removed}
no_proxy	localhost
soap_use_proxy	on


Plugins installed

Name  ↓	Version   	Enabled   	Pinned   
analysis-core	1.49-h-1	true	false
birt-charts	3.0.3	true	false
buckminster	1.0.8	true	false
cvs	2.2.0	true	false
groovy-support-plugin	3.0.3	true	false
jfreechart-plugin	1.4	true	false
jira	1.36-h-1	true	false
jna-native-support-plugin	3.0.2	true	false
maven-plugin	2.2.1	true	false
ssh-slaves	3.0.2	true	false
subversion	2.3.8-h-1	true	false
tasks	4.36-h-1	true	false
warnings	4.23-h-1	true	false
xpath-provider	1.0.2	true	false


As you see, the buckminster plugin is instaleld in version 1.0.8, which is the current one. Downgrading the buckminster plugin to 1.0.3 (which was installed before) did not result in any different behaviour. I therefore guess that buckminster is alright, but the JSON call is flawed, as it contains object properties that are - as stated by the exception - not available.

Any further ideas?
Re: NoSuchMethodException after upgrading from 1.359 to 3.0.1 [message #1067867 is a reply to message #1067694] Thu, 11 July 2013 01:01 Go to previous messageGo to next message
Winston Prakash is currently offline Winston PrakashFriend
Messages: 534
Registered: August 2011
Location: Fremont, CA USA
Senior Member
Simon, looks like we may have to re-release buckminster for Hudson 3.x. We will do it ASAP.

Winston Prakash
Eclipse Hudson team
Re: NoSuchMethodException after upgrading from 1.359 to 3.0.1 [message #1091017 is a reply to message #1067867] Wed, 21 August 2013 00:21 Go to previous messageGo to next message
Winston Prakash is currently offline Winston PrakashFriend
Messages: 534
Registered: August 2011
Location: Fremont, CA USA
Senior Member
Simon, I released buckminster version 1.1.2-h-1. Can you check if that helps.

Winston Prakash
Eclipse Hudson team
Re: NoSuchMethodException after upgrading from 1.359 to 3.0.1 [message #1120853 is a reply to message #1091017] Mon, 30 September 2013 03:08 Go to previous messageGo to next message
David Williams is currently offline David WilliamsFriend
Messages: 722
Registered: July 2009
Senior Member
I never tried 3.0.1, but have tried 3.1.0 and am getting same error message. Did something regress? (or, never fixed?) Do I need a special script in "<hudsonsome>/userContent/buckminster", similar to what's described in http://wiki.eclipse.org/Buckminster.json ?

Re: NoSuchMethodException after upgrading from 1.359 to 3.0.1 [message #1120889 is a reply to message #1120853] Mon, 30 September 2013 04:04 Go to previous messageGo to next message
David Williams is currently offline David WilliamsFriend
Messages: 722
Registered: July 2009
Senior Member
FYI, I got past this problem by manually installing buckminster (4.2) providing that "home" location ... I actually edited the hudson.plugins.buckminster.EclipseBuckminsterBuilder.xml file directly ... though was probably in UI somewhere? And, then I want back to "Hudson admin" and disabled both "install automatically" and "check for updates". And then at least could run. (This is all on my own little local private "test" Hudson instance, if that wasn't obvious ... nothing production).
Re: NoSuchMethodException after upgrading from 1.359 to 3.0.1 [message #1121683 is a reply to message #1120889] Mon, 30 September 2013 21:55 Go to previous messageGo to next message
Winston Prakash is currently offline Winston PrakashFriend
Messages: 534
Registered: August 2011
Location: Fremont, CA USA
Senior Member
When Hudson starts and the buckminster plugin is loaded, it automatically pulls the JSON from here

http://hudson-ci.org/updates/hudson.plugins.buckminster.BuckminsterInstallation.BuckminsterInstaller.json

This is not updated for a while. Need to check and see if this JSON need to be updated with the content from http://wiki.eclipse.org/Buckminster.json

If needed I can update this to the latest version 4.3



Winston Prakash
Eclipse Hudson team
Re: NoSuchMethodException after upgrading from 1.359 to 3.0.1 [message #1125028 is a reply to message #1121683] Fri, 04 October 2013 05:05 Go to previous message
David Williams is currently offline David WilliamsFriend
Messages: 722
Registered: July 2009
Senior Member
FYI, I opened bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=418465 for this issue and has been fixed in Hudson's version 1.1.2-h-2 version of the Buckminster plugin. Thanks goes to the Hudson team and several others commenting in that bug.
Previous Topic:problem with instaling
Next Topic:Not very clear colors on Test Result Trend
Goto Forum:
  


Current Time: Tue Mar 19 06:34:53 GMT 2024

Powered by FUDForum. Page generated in 0.03109 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top