Quantcast

[JIRA] (JENKINS-15105) Signature in hudson.tasks.Maven.MavenInstaller.json causes NullPointerException

classic Classic list List threaded Threaded
21 messages Options
12
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-15105) Signature in hudson.tasks.Maven.MavenInstaller.json causes NullPointerException

JIRA noreply@jenkins-ci.org
Issue Type: Bug Bug
Assignee: Unassigned
Components: core
Created: 10/Sep/12 9:24 PM
Description:

We have three Jenkins instances. Two are on 1.423 and one is on 1.414. Starting sometime on September 8th 2012, our builds on Jenkins all started to fail with the following error:

FATAL: Error while setting property=signature type class java.lang.Object
net.sf.json.JSONException: Error while setting property=signature type class java.lang.Object
	at net.sf.json.JSONObject.toBean(JSONObject.java:577)
	at net.sf.json.JSONObject.toBean(JSONObject.java:383)
	at net.sf.json.JSONObject.toBean(JSONObject.java:250)
	at hudson.tools.DownloadFromUrlInstaller$DescriptorImpl.getInstallables(DownloadFromUrlInstaller.java:151)
	at hudson.tools.DownloadFromUrlInstaller.getInstallable(DownloadFromUrlInstaller.java:54)
	at hudson.tools.DownloadFromUrlInstaller.performInstallation(DownloadFromUrlInstaller.java:63)
	at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:61)
	at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:107)
	at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:150)
	at hudson.tasks.Maven$MavenInstallation.forNode(Maven.java:510)
	at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:174)
	at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:582)
	at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:448)
	at hudson.model.Run.run(Run.java:1376)
	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:478)
	at hudson.model.ResourceController.execute(ResourceController.java:88)
	at hudson.model.Executor.run(Executor.java:175)
Caused by: java.lang.NullPointerException
	at net.sf.json.JSONObject$MethodProperty.isWritable(JSONObject.java:311)
	at net.sf.json.JSONObject.toBean(JSONObject.java:429)
	... 16 more

We were able to narrow it down to hudson.tasks.Maven.MavenInstaller.json that caused the problem by deleting that file from our server and kicking off a job run. The first run without the JSON file will run fine, but subsequent runs fails because the file gets redownloaded from http://updates.jenkins-ci.org/updates/hudson.tasks.Maven.MavenInstaller.json.

Our current workaround for the problem is that we created an empty (valid) hudson.tasks.Maven.MavenInstaller.json file and turned off the write permission on that file so it won't get updated by Jenkins. We're not sure if there will be any problems if Jenkins tries to update that file again though.

After doing some research, we believe the following commit caused Jenkins to start breaking:
https://github.com/jenkinsci/jenkins/commit/62f66f899c95ccdfdc7a5d3346240988b42a9aad

Looks like the change causes the MavenInstaller JSON file to add a new "signature" block, which our Jenkins version cannot handle.

Environment: Jenkins 1.423 and 1.414
Ubuntu 64bit
JDK 1.6.0_16
Project: Jenkins
Priority: Major Major
Reporter: jlin
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-15105) Signature in hudson.tasks.Maven.MavenInstaller.json causes NullPointerException

JIRA noreply@jenkins-ci.org
sunil kumar commented on Bug JENKINS-15105

if some one the found solution to this problem. please let me know.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [JIRA] (JENKINS-15105) Signature in hudson.tasks.Maven.MavenInstaller.json causes NullPointerException

bram.msn@gmail.com
This post has NOT been accepted by the mailing list yet.
Same here, all builds fail with:
net.sf.json.JSONException: Error while setting property=signature type class java.lang.Object
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [JIRA] (JENKINS-15105) Signature in hudson.tasks.Maven.MavenInstaller.json causes NullPointerException

cjpersson
In reply to this post by JIRA noreply@jenkins-ci.org
We had identical problem with version 1.419. Also started around sep 8. Upgrading to latest Jenkins solved the problem.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [JIRA] (JENKINS-15105) Signature in hudson.tasks.Maven.MavenInstaller.json causes NullPointerException

bram.msn@gmail.com
This post has NOT been accepted by the mailing list yet.
Well, my upgrade from 1.405 to 1.475 failed horribly, so I'm a bit hesitant to upgrade...
Also, with every upgrade, all my projects disconnect from subversion, so I need to re-enable SVN
and reconfigure the path to SVN for each project.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [JIRA] (JENKINS-15105) Signature in hudson.tasks.Maven.MavenInstaller.json causes NullPointerException

Mari
This post has NOT been accepted by the mailing list yet.
All,

I have same issue. I upgraded 1.417 to 1.480 Jenkins. Now, the issue was resolved.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [JIRA] (JENKINS-15105) Signature in hudson.tasks.Maven.MavenInstaller.json causes NullPointerException

jpyork
This post has NOT been accepted by the mailing list yet.
In reply to this post by JIRA noreply@jenkins-ci.org
My upgrade went very bad in the past as well and I would hope they fix this as I believe we should have be forced to upgrade to get around this.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-15105) Signature in hudson.tasks.Maven.MavenInstaller.json causes NullPointerException

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
Change By: Kohsuke Kawaguchi (11/Sep/12 4:50 PM)
Assignee: Kohsuke Kawaguchi
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-15105) Signature in hudson.tasks.Maven.MavenInstaller.json causes NullPointerException

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

Investigating. This would significantly limit our ability to evolve JSON data structure. Argh.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-15105) Signature in hudson.tasks.Maven.MavenInstaller.json causes NullPointerException

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

this change in json-lib was supposed to make this kind of databinding relaxing. This change made it into json-lib-2.1-rev7, and this appeared in core in this commit, which got released as 1.424.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-15105) Signature in hudson.tasks.Maven.MavenInstaller.json causes NullPointerException

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

So one work around is to upgrade to 1.424 or later.

But given that 5 people found this problem within just a few days (plus it breaks all the builds!), I think I need to revert the data structure back and figure out another way to do this.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-15105) Signature in hudson.tasks.Maven.MavenInstaller.json causes NullPointerException

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

Code changed in jenkins
User: Kohsuke Kawaguchi
Path:
core/src/test/java/jenkins/ResilientJsonObjectTest.java
http://jenkins-ci.org/commit/jenkins/1b3eb0b9e7a3ee35d6c40d5e4460f4bb1f17e0e9
Log:
added a test to check for regressions in JENKINS-15105.

Compare: https://github.com/jenkinsci/jenkins/compare/24556ac8523b...1b3eb0b9e7a3

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-15105) Signature in hudson.tasks.Maven.MavenInstaller.json causes NullPointerException

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
Kohsuke Kawaguchi resolved Bug JENKINS-15105 as Fixed

The metadata has been updated not to include the signature in the JSON files.

(The signature was moved to the .json.html files)

Change By: Kohsuke Kawaguchi (11/Sep/12 11:06 PM)
Status: Open Resolved
Resolution: Fixed
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-15105) Signature in hudson.tasks.Maven.MavenInstaller.json causes NullPointerException

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

Code changed in jenkins
User: Kohsuke Kawaguchi
Path:
core/src/main/java/hudson/model/DownloadService.java
war/src/main/webapp/scripts/hudson-behavior.js
http://jenkins-ci.org/commit/jenkins/f3701da9e215abeaadef39c1f47021cb6e4d479b
Log:
JENKINS-15105

Prefer the postMessage version to retrieve the metadata so that we can leave the existing JSON format as-is for backward compatibility with pre-1.424 Jenkins.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [JIRA] (JENKINS-15105) Signature in hudson.tasks.Maven.MavenInstaller.json causes NullPointerException

bram.msn@gmail.com
This post has NOT been accepted by the mailing list yet.
Upgraded to 1.480, up to now I think Subversion settings are still in place, but the builds still fail with this message:

ERROR: Ignore Problem expanding maven opts macros org.jenkinsci.plugins.tokenmacro.TokenMacro
Found mavenVersion 2.2.1 from file jar:file:/C:/Jenkins/tools/Maven/Maven/lib/maven-2.2.1-uber.jar!/META-INF/maven/org.apache.maven/maven-core/pom.properties
Parsing POMs
ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com
com.google.inject.CreationException: Guice creation errors:

1) Error injecting method, java.lang.NoSuchMethodError: com.google.inject.Injector.getTypeConverterBindings()Ljava/util/List;
  at org.sonatype.guice.plexus.converters.PlexusXmlBeanConverter.setTypeConverterBindings(PlexusXmlBeanConverter.java:101)
  at org.codehaus.plexus.DefaultPlexusContainer$SetupModule.configure(DefaultPlexusContainer.java:781)

1 error
        at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:437)
        at com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:176)
        at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:110)
        at com.google.inject.Guice.createInjector(Guice.java:94)
        at com.google.inject.Guice.createInjector(Guice.java:71)
        at com.google.inject.Guice.createInjector(Guice.java:61)
        at org.codehaus.plexus.DefaultPlexusContainer.addPlexusInjector(DefaultPlexusContainer.java:456)
        at org.codehaus.plexus.DefaultPlexusContainer.<init>(DefaultPlexusContainer.java:190)
        at org.codehaus.plexus.DefaultPlexusContainer.<init>(DefaultPlexusContainer.java:149)
        at hudson.maven.MavenEmbedderUtils.buildPlexusContainer(MavenEmbedderUtils.java:148)
        at hudson.maven.MavenEmbedderUtils.buildPlexusContainer(MavenEmbedderUtils.java:141)
        at hudson.maven.MavenEmbedder.<init>(MavenEmbedder.java:111)
        at hudson.maven.MavenEmbedder.<init>(MavenEmbedder.java:138)
        at hudson.maven.MavenUtil.createEmbedder(MavenUtil.java:208)
        at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1258)
        at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1097)
        at hudson.FilePath.act(FilePath.java:842)
        at hudson.FilePath.act(FilePath.java:824)
        at hudson.maven.MavenModuleSetBuild$RunnerImpl.parsePoms(MavenModuleSetBuild.java:804)
        at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:604)
        at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
        at hudson.model.Run.execute(Run.java:1502)
        at hudson.model.Run.run(Run.java:1448)
        at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:454)
        at hudson.model.ResourceController.execute(ResourceController.java:88)
        at hudson.model.Executor.run(Executor.java:236)
Caused by: java.lang.NoSuchMethodError: com.google.inject.Injector.getTypeConverterBindings()Ljava/util/List;
        at org.sonatype.guice.plexus.converters.PlexusXmlBeanConverter.setTypeConverterBindings(PlexusXmlBeanConverter.java:101)
        at org.sonatype.guice.plexus.converters.PlexusXmlBeanConverter$$FastClassByGuice$$fd6c46cc.invoke(<generated>)
        at com.google.inject.internal.cglib.reflect.$FastMethod.invoke(FastMethod.java:53)
        at com.google.inject.internal.SingleMethodInjector$1.invoke(SingleMethodInjector.java:57)
        at com.google.inject.internal.SingleMethodInjector.inject(SingleMethodInjector.java:91)
        at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:118)
        at com.google.inject.internal.MembersInjectorImpl$1.call(MembersInjectorImpl.java:80)
        at com.google.inject.internal.MembersInjectorImpl$1.call(MembersInjectorImpl.java:76)
        at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1011)
        at com.google.inject.internal.MembersInjectorImpl.injectAndNotify(MembersInjectorImpl.java:76)
        at com.google.inject.internal.Initializer$InjectableReference.get(Initializer.java:153)
        at com.google.inject.internal.Initializer.injectAll(Initializer.java:96)
        at com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:174)
        ... 24 more
project=hudson.maven.MavenModuleSet@bdacf2[mapping-pgz]
project.getModules()=[hudson.maven.MavenModule@450ebf[mapping-pgz/nl.isprojects.mapping:mapping-pgz][mapping-pgz/nl.isprojects.mapping:mapping-pgz][relativePath:]]
project.getRootModule()=hudson.maven.MavenModule@450ebf[mapping-pgz/nl.isprojects.mapping:mapping-pgz][mapping-pgz/nl.isprojects.mapping:mapping-pgz][relativePath:]
FATAL: Guice creation errors:

1) Error injecting method, java.lang.NoSuchMethodError: com.google.inject.Injector.getTypeConverterBindings()Ljava/util/List;
  at org.sonatype.guice.plexus.converters.PlexusXmlBeanConverter.setTypeConverterBindings(PlexusXmlBeanConverter.java:101)
  at org.codehaus.plexus.DefaultPlexusContainer$SetupModule.configure(DefaultPlexusContainer.java:781)

1 error
com.google.inject.CreationException: Guice creation errors:

1) Error injecting method, java.lang.NoSuchMethodError: com.google.inject.Injector.getTypeConverterBindings()Ljava/util/List;
  at org.sonatype.guice.plexus.converters.PlexusXmlBeanConverter.setTypeConverterBindings(PlexusXmlBeanConverter.java:101)
  at org.codehaus.plexus.DefaultPlexusContainer$SetupModule.configure(DefaultPlexusContainer.java:781)

1 error
        at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:437)
        at com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:176)
        at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:110)
        at com.google.inject.Guice.createInjector(Guice.java:94)
        at com.google.inject.Guice.createInjector(Guice.java:71)
        at com.google.inject.Guice.createInjector(Guice.java:61)
        at org.codehaus.plexus.DefaultPlexusContainer.addPlexusInjector(DefaultPlexusContainer.java:456)
        at org.codehaus.plexus.DefaultPlexusContainer.<init>(DefaultPlexusContainer.java:190)
        at org.codehaus.plexus.DefaultPlexusContainer.<init>(DefaultPlexusContainer.java:149)
        at hudson.maven.MavenEmbedderUtils.buildPlexusContainer(MavenEmbedderUtils.java:148)
        at hudson.maven.MavenEmbedderUtils.buildPlexusContainer(MavenEmbedderUtils.java:141)
        at hudson.maven.MavenEmbedder.<init>(MavenEmbedder.java:111)
        at hudson.maven.MavenEmbedder.<init>(MavenEmbedder.java:138)
        at hudson.maven.MavenUtil.createEmbedder(MavenUtil.java:208)
        at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1258)
        at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1097)
        at hudson.FilePath.act(FilePath.java:842)
        at hudson.FilePath.act(FilePath.java:824)
        at hudson.maven.MavenModuleSetBuild$RunnerImpl.parsePoms(MavenModuleSetBuild.java:804)
        at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:604)
        at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
        at hudson.model.Run.execute(Run.java:1502)
        at hudson.model.Run.run(Run.java:1448)
        at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:454)
        at hudson.model.ResourceController.execute(ResourceController.java:88)
        at hudson.model.Executor.run(Executor.java:236)
Caused by: java.lang.NoSuchMethodError: com.google.inject.Injector.getTypeConverterBindings()Ljava/util/List;
        at org.sonatype.guice.plexus.converters.PlexusXmlBeanConverter.setTypeConverterBindings(PlexusXmlBeanConverter.java:101)
        at org.sonatype.guice.plexus.converters.PlexusXmlBeanConverter$$FastClassByGuice$$fd6c46cc.invoke(<generated>)
        at com.google.inject.internal.cglib.reflect.$FastMethod.invoke(FastMethod.java:53)
        at com.google.inject.internal.SingleMethodInjector$1.invoke(SingleMethodInjector.java:57)
        at com.google.inject.internal.SingleMethodInjector.inject(SingleMethodInjector.java:91)
        at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:118)
        at com.google.inject.internal.MembersInjectorImpl$1.call(MembersInjectorImpl.java:80)
        at com.google.inject.internal.MembersInjectorImpl$1.call(MembersInjectorImpl.java:76)
        at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1011)
        at com.google.inject.internal.MembersInjectorImpl.injectAndNotify(MembersInjectorImpl.java:76)
        at com.google.inject.internal.Initializer$InjectableReference.get(Initializer.java:153)
        at com.google.inject.internal.Initializer.injectAll(Initializer.java:96)
        at com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:174)
        ... 24 more
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [JIRA] (JENKINS-15105) Signature in hudson.tasks.Maven.MavenInstaller.json causes NullPointerException

bram.msn@gmail.com
This post has NOT been accepted by the mailing list yet.
Apart from the issues that popped up in the last few days, it's quite annoying that we have issues in the first place.

I mean: if I decide to upgrade or change anything at our company's Jenkins / Maven installation, then I accept the risk of running into upgrade-issues that I should resolve. If I DON'T change anything at all, I should be able to keep a stable build-environment.

Based on the major issues of the last few days and some previous, more minor issues, I cannot. I also cannot explain this to my boss. I'm in charge of managing our build-environment and it brought us a lot of streamlining, stability and consistency. But this sort of problems makes me doubt to keeping Jenkins as a build-server. I might even consider switching to local build/deploy to Artifactory instead.

Convince me to keep Jenkins by fixing the issues and making sure it doesn't happen in the future.

Good luck,
Bram
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [JIRA] (JENKINS-15105) Signature in hudson.tasks.Maven.MavenInstaller.json causes NullPointerException

bram.msn@gmail.com
This post has NOT been accepted by the mailing list yet.
Oh, and please remove these notifications:


bram.msn@gmail.com wrote
Sep 11, 2012; 12:40pm Re: [JIRA] (JENKINS-15105) Signature in hudson.tasks.Maven.MavenInstaller.json causes NullPointerException
11 posts This post has NOT been accepted by the mailing list yet.
Same here, all builds fail with:
net.sf.json.JSONException: Error while setting property=signature type class java.lang.Object
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-15105) Signature in hudson.tasks.Maven.MavenInstaller.json causes NullPointerException

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

Code changed in jenkins
User: Kohsuke Kawaguchi
Path:
core/src/main/java/hudson/model/DownloadService.java
war/src/main/webapp/scripts/hudson-behavior.js
http://jenkins-ci.org/commit/jenkins/ad61369d7b4c774db4fe3606cc71dfad797bf49f
Log:
JENKINS-15105

Prefer the postMessage version to retrieve the metadata so that we can leave the existing JSON format as-is for backward compatibility with pre-1.424 Jenkins.
(cherry picked from commit f3701da9e215abeaadef39c1f47021cb6e4d479b)

Conflicts:

war/src/main/webapp/scripts/hudson-behavior.js

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-15105) Signature in hudson.tasks.Maven.MavenInstaller.json causes NullPointerException

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
dogfood commented on Bug JENKINS-15105

Integrated in jenkins_main_trunk #1927
JENKINS-15105 (Revision f3701da9e215abeaadef39c1f47021cb6e4d479b)

Result = SUCCESS
kohsuke : f3701da9e215abeaadef39c1f47021cb6e4d479b
Files :

  • war/src/main/webapp/scripts/hudson-behavior.js
  • core/src/main/java/hudson/model/DownloadService.java
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [JIRA] (JENKINS-15105) Signature in hudson.tasks.Maven.MavenInstaller.json causes NullPointerException

bram.msn@gmail.com
This post has NOT been accepted by the mailing list yet.
Any updates for when we can expect a fix?

Upgraded to 1.483-SNAPSHOT but, no succes:

ERROR: Ignore Problem expanding maven opts macros org.jenkinsci.plugins.tokenmacro.TokenMacro
Found mavenVersion 2.2.1 from file jar:file:/C:/Jenkins/tools/Maven/Maven/lib/maven-2.2.1-uber.jar!/META-INF/maven/org.apache.maven/maven-core/pom.properties
Parsing POMs
ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com
com.google.inject.CreationException: Guice creation errors:

1) Error injecting method, java.lang.NoSuchMethodError: com.google.inject.Injector.getTypeConverterBindings()Ljava/util/List;
  at org.sonatype.guice.plexus.converters.PlexusXmlBeanConverter.setTypeConverterBindings(PlexusXmlBeanConverter.java:101)
  at org.codehaus.plexus.DefaultPlexusContainer$SetupModule.configure(DefaultPlexusContainer.java:781)

1 error
        at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:437)
        at com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:176)
        at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:110)
        at com.google.inject.Guice.createInjector(Guice.java:94)
        at com.google.inject.Guice.createInjector(Guice.java:71)
        at com.google.inject.Guice.createInjector(Guice.java:61)
        at org.codehaus.plexus.DefaultPlexusContainer.addPlexusInjector(DefaultPlexusContainer.java:456)
        at org.codehaus.plexus.DefaultPlexusContainer.<init>(DefaultPlexusContainer.java:190)
        at org.codehaus.plexus.DefaultPlexusContainer.<init>(DefaultPlexusContainer.java:149)
        at hudson.maven.MavenEmbedderUtils.buildPlexusContainer(MavenEmbedderUtils.java:148)
        at hudson.maven.MavenEmbedderUtils.buildPlexusContainer(MavenEmbedderUtils.java:141)
        at hudson.maven.MavenEmbedder.<init>(MavenEmbedder.java:111)
        at hudson.maven.MavenEmbedder.<init>(MavenEmbedder.java:138)
        at hudson.maven.MavenUtil.createEmbedder(MavenUtil.java:208)
        at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1258)
        at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1097)
        at hudson.FilePath.act(FilePath.java:852)
        at hudson.FilePath.act(FilePath.java:825)
        at hudson.maven.MavenModuleSetBuild$RunnerImpl.parsePoms(MavenModuleSetBuild.java:804)
        at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:604)
        at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
        at hudson.model.Run.execute(Run.java:1502)
        at hudson.model.Run.run(Run.java:1448)
        at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:454)
        at hudson.model.ResourceController.execute(ResourceController.java:88)
        at hudson.model.Executor.run(Executor.java:236)
Caused by: java.lang.NoSuchMethodError: com.google.inject.Injector.getTypeConverterBindings()Ljava/util/List;
        at org.sonatype.guice.plexus.converters.PlexusXmlBeanConverter.setTypeConverterBindings(PlexusXmlBeanConverter.java:101)
        at org.sonatype.guice.plexus.converters.PlexusXmlBeanConverter$$FastClassByGuice$$fd6c46cc.invoke(<generated>)
        at com.google.inject.internal.cglib.reflect.$FastMethod.invoke(FastMethod.java:53)
        at com.google.inject.internal.SingleMethodInjector$1.invoke(SingleMethodInjector.java:57)
        at com.google.inject.internal.SingleMethodInjector.inject(SingleMethodInjector.java:91)
        at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:118)
        at com.google.inject.internal.MembersInjectorImpl$1.call(MembersInjectorImpl.java:80)
        at com.google.inject.internal.MembersInjectorImpl$1.call(MembersInjectorImpl.java:76)
        at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1011)
        at com.google.inject.internal.MembersInjectorImpl.injectAndNotify(MembersInjectorImpl.java:76)
        at com.google.inject.internal.Initializer$InjectableReference.get(Initializer.java:153)
        at com.google.inject.internal.Initializer.injectAll(Initializer.java:96)
        at com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:174)
        ... 24 more
project=hudson.maven.MavenModuleSet@1768043[archive-invoice-db]
project.getModules()=[hudson.maven.MavenModule@e6efa2[archive-invoice-db/nl.isprojects.archive:archive-invoice-db][archive-invoice-db/nl.isprojects.archive:archive-invoice-db][relativePath:]]
project.getRootModule()=hudson.maven.MavenModule@e6efa2[archive-invoice-db/nl.isprojects.archive:archive-invoice-db][archive-invoice-db/nl.isprojects.archive:archive-invoice-db][relativePath:]
FATAL: Guice creation errors:

1) Error injecting method, java.lang.NoSuchMethodError: com.google.inject.Injector.getTypeConverterBindings()Ljava/util/List;
  at org.sonatype.guice.plexus.converters.PlexusXmlBeanConverter.setTypeConverterBindings(PlexusXmlBeanConverter.java:101)
  at org.codehaus.plexus.DefaultPlexusContainer$SetupModule.configure(DefaultPlexusContainer.java:781)

1 error
com.google.inject.CreationException: Guice creation errors:

1) Error injecting method, java.lang.NoSuchMethodError: com.google.inject.Injector.getTypeConverterBindings()Ljava/util/List;
  at org.sonatype.guice.plexus.converters.PlexusXmlBeanConverter.setTypeConverterBindings(PlexusXmlBeanConverter.java:101)
  at org.codehaus.plexus.DefaultPlexusContainer$SetupModule.configure(DefaultPlexusContainer.java:781)

1 error
        at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:437)
        at com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:176)
        at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:110)
        at com.google.inject.Guice.createInjector(Guice.java:94)
        at com.google.inject.Guice.createInjector(Guice.java:71)
        at com.google.inject.Guice.createInjector(Guice.java:61)
        at org.codehaus.plexus.DefaultPlexusContainer.addPlexusInjector(DefaultPlexusContainer.java:456)
        at org.codehaus.plexus.DefaultPlexusContainer.<init>(DefaultPlexusContainer.java:190)
        at org.codehaus.plexus.DefaultPlexusContainer.<init>(DefaultPlexusContainer.java:149)
        at hudson.maven.MavenEmbedderUtils.buildPlexusContainer(MavenEmbedderUtils.java:148)
        at hudson.maven.MavenEmbedderUtils.buildPlexusContainer(MavenEmbedderUtils.java:141)
        at hudson.maven.MavenEmbedder.<init>(MavenEmbedder.java:111)
        at hudson.maven.MavenEmbedder.<init>(MavenEmbedder.java:138)
        at hudson.maven.MavenUtil.createEmbedder(MavenUtil.java:208)
        at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1258)
        at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1097)
        at hudson.FilePath.act(FilePath.java:852)
        at hudson.FilePath.act(FilePath.java:825)
        at hudson.maven.MavenModuleSetBuild$RunnerImpl.parsePoms(MavenModuleSetBuild.java:804)
        at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:604)
        at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
        at hudson.model.Run.execute(Run.java:1502)
        at hudson.model.Run.run(Run.java:1448)
        at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:454)
        at hudson.model.ResourceController.execute(ResourceController.java:88)
        at hudson.model.Executor.run(Executor.java:236)
Caused by: java.lang.NoSuchMethodError: com.google.inject.Injector.getTypeConverterBindings()Ljava/util/List;
        at org.sonatype.guice.plexus.converters.PlexusXmlBeanConverter.setTypeConverterBindings(PlexusXmlBeanConverter.java:101)
        at org.sonatype.guice.plexus.converters.PlexusXmlBeanConverter$$FastClassByGuice$$fd6c46cc.invoke(<generated>)
        at com.google.inject.internal.cglib.reflect.$FastMethod.invoke(FastMethod.java:53)
        at com.google.inject.internal.SingleMethodInjector$1.invoke(SingleMethodInjector.java:57)
        at com.google.inject.internal.SingleMethodInjector.inject(SingleMethodInjector.java:91)
        at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:118)
        at com.google.inject.internal.MembersInjectorImpl$1.call(MembersInjectorImpl.java:80)
        at com.google.inject.internal.MembersInjectorImpl$1.call(MembersInjectorImpl.java:76)
        at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1011)
        at com.google.inject.internal.MembersInjectorImpl.injectAndNotify(MembersInjectorImpl.java:76)
        at com.google.inject.internal.Initializer$InjectableReference.get(Initializer.java:153)
        at com.google.inject.internal.Initializer.injectAll(Initializer.java:96)
        at com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:174)
        ... 24 more
12
Loading...