Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mylyn » Error Running Jenkins Build from Mylyn Build View(Getting "Unexpected error: Forbidden" although needed rights for user are aenabled and user can run jobs from web gui without probelms)
Error Running Jenkins Build from Mylyn Build View [message #718448] Wed, 24 August 2011 11:20 Go to next message
Terence Miller is currently offline Terence MillerFriend
Messages: 5
Registered: July 2009
Junior Member

I configiured Jenkins server (Jenkins ver. 1.424 on Tomcat 7 via https) and validated connection on Eclipse Indigo and following Eclipse Plugins successfully.

I chooose a Job for the build view from job list. I can see history and data and status of my select build job.
When i try to run a job from the Eclipse Mylyn Build View or from an exception raises.

My Eclipse Plugins Versions:
  Eclipse IDE for Java EE Developers	1.4.0.20110615-0550	epp.package.jee	null
  JavaHL 1.6.15 Win32 Binaries (Optional)	2.2.2.I20110602-1700	org.polarion.eclipse.team.svn.connector.javahl16.win32.feature.group	Polarion Software
  m2e - Maven Integration for Eclipse	1.0.0.20110607-2117	org.eclipse.m2e.feature.feature.group	Eclipse.org - m2e
  m2e - slf4j over logback logging (Optional)	1.0.0.20110607-2117	org.eclipse.m2e.logback.feature.feature.group	Eclipse.org - m2e
  Maven Integration for WTP	0.13.1.20110728-1800	org.maven.ide.eclipse.wtp.feature.feature.group	JBoss by Red Hat
  Maven SCM Handler for Subversive	0.13.0.201106211115	org.sonatype.m2e.subversive.feature.feature.group	Sonatype, Inc.
  Mylyn Builds Connector: Hudson/Jenkins (Incubation)	0.8.1.v20110728-0200	org.eclipse.mylyn.hudson.feature.group	Eclipse Mylyn
  Mylyn Connector: Redmine	0.3.1.201108240907	net.sf.redmine_mylyn.feature.feature.group	Sven Krzyzak
  Mylyn Connector: Redmine - Redmine-Plugin-Support	0.1.0.201108240907	net.sf.redmine_mylyn.extensions.feature.feature.group	Sven Krzyzak
  Mylyn Connector: Sonar (Optional)	2.2.0.20110721-1444	org.sonar.ide.eclipse.mylyn.feature.feature.group	SonarSource
  Mylyn Context Connector: Eclipse IDE	3.6.1.v20110728-0200	org.eclipse.mylyn.ide_feature.feature.group	Eclipse Mylyn
  Mylyn Context Connector: Java Development	3.6.1.v20110728-0200	org.eclipse.mylyn.java_feature.feature.group	Eclipse Mylyn
  Mylyn Context Connector: Team Support	3.6.1.v20110728-0200	org.eclipse.mylyn.team_feature.feature.group	Eclipse Mylyn
  Mylyn Task List	3.6.1.v20110728-0200	org.eclipse.mylyn_feature.feature.group	Eclipse Mylyn
  Mylyn Task-Focused Interface	3.6.1.v20110728-0200	org.eclipse.mylyn.context_feature.feature.group	Eclipse Mylyn
  Mylyn WikiText	1.5.1.v20110728-0200	org.eclipse.mylyn.wikitext_feature.feature.group	Eclipse Mylyn
  Native JavaHL 1.6 Implementation (Optional)	2.2.2.I20110819-1700	org.polarion.eclipse.team.svn.connector.javahl16.feature.group	Polarion Software
  Saros Feature	11.7.29.r3479	de.fu_berlin.inf.dpp.feature.feature.group	null
  Sonar Integration for Eclipse (Required)	2.2.0.20110721-1444	org.sonar.ide.eclipse.feature.feature.group	SonarSource
  Spring IDE AOP Extension (optional)	2.7.1.201107082359-RELEASE	org.springframework.ide.eclipse.aop.feature.feature.group	Spring IDE Developers
  Spring IDE Autowire Extension (optional)	2.7.1.201107082359-RELEASE	org.springframework.ide.eclipse.autowire.feature.feature.group	featureProvider
  Spring IDE Batch Extension (optional)	2.7.1.201107082359-RELEASE	org.springframework.ide.eclipse.batch.feature.feature.group	featureProvider
  Spring IDE Core (required)	2.7.1.201107082359-RELEASE	org.springframework.ide.eclipse.feature.feature.group	Spring IDE Developers
  Spring IDE Integration, Flex and Web Services Extension (optional)	2.7.1.201107082359-RELEASE	org.springframework.ide.eclipse.integration.feature.feature.group	featureProvider
  Spring IDE OSGi Extension (optional)	2.7.1.201107082359-RELEASE	org.springframework.ide.eclipse.osgi.feature.feature.group	Spring IDE Developers
  Spring IDE Security Extension (optional)	2.7.1.201107082359-RELEASE	org.springframework.ide.eclipse.security.feature.feature.group	featureProvider
  Spring IDE Web Flow Extension (optional)	2.7.1.201107082359-RELEASE	org.springframework.ide.eclipse.webflow.feature.feature.group	Spring IDE Developers
  SpringSource Tool Suite (required)	2.7.1.201107091000-RELEASE	com.springsource.sts.feature.group	SpringSource
  SpringSource Tool Suite Maven Support	2.7.1.201107091000-RELEASE	com.springsource.sts.maven.feature.group	SpringSource
  SpringSource Tool Suite Runtime Error Analysis Support	2.7.1.201107091000-RELEASE	com.springsource.sts.runtimeerroranalysis.feature.group	SpringSource
  SpringSource Tool Suite VMware Integration	2.7.1.201107091000-RELEASE	com.springsource.sts.vmware.feature.group	SpringSource
  Subversive SVN Connectors	2.2.2.I20110819-1700	org.polarion.eclipse.team.svn.connector.feature.group	Polarion Software
  Subversive SVN Integration for the Mylyn Project (Optional) (Incubation)	0.7.9.I20110602-1700	org.eclipse.team.svn.mylyn.feature.group	Eclipse.org
  Subversive SVN JDT Ignore Extensions (Optional) (Incubation)	0.7.9.I20110602-1700	org.eclipse.team.svn.resource.ignore.rules.jdt.feature.group	Eclipse.org
  Subversive SVN Team Provider (Incubation)	0.7.9.I20110819-1700	org.eclipse.team.svn.feature.group	Eclipse.org
  Subversive SVN Team Provider Localization (Optional) (Incubation)	0.7.9.I20110819-1700	org.eclipse.team.svn.nl1.feature.group	Eclipse.org
  Subversive SVN Team Provider Sources (Incubation)	0.7.9.I20110819-1700	org.eclipse.team.svn.source.feature.group	Eclipse.org
  VMware VIX Application Programming Interface Feature	2.7.1.201107091000-RELEASE	com.vmware.vixapi.feature.group	VMware, Inc.


The exeption Stacktrace from eclipse when i click "Run Build".
org.eclipse.core.runtime.CoreException: Unexpected error: Forbidden
	at org.eclipse.mylyn.internal.hudson.core.HudsonCorePlugin.toCoreException(HudsonCorePlugin.java:61)
	at org.eclipse.mylyn.internal.hudson.core.HudsonServerBehaviour.runBuild(HudsonServerBehaviour.java:738)
	at org.eclipse.mylyn.builds.internal.core.operations.RunBuildOperation$1.doExecute(RunBuildOperation.java:55)
	at org.eclipse.mylyn.builds.internal.core.operations.BuildJob.run(BuildJob.java:79)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: org.eclipse.mylyn.internal.hudson.core.client.HudsonException: Forbidden
	at org.eclipse.mylyn.internal.hudson.core.client.HudsonOperation.run(HudsonOperation.java:34)
	at org.eclipse.mylyn.internal.hudson.core.client.RestfulHudsonClient.runBuild(RestfulHudsonClient.java:397)
	at org.eclipse.mylyn.internal.hudson.core.HudsonServerBehaviour.runBuild(HudsonServerBehaviour.java:736)
	... 3 more
Caused by: java.io.IOException: Forbidden
	at org.eclipse.mylyn.commons.http.CommonHttpClient.needsReauthentication(CommonHttpClient.java:105)
	at org.eclipse.mylyn.commons.http.HttpOperation.needsReauthentication(HttpOperation.java:102)
	at org.eclipse.mylyn.commons.http.HttpOperation.execute(HttpOperation.java:76)
	at org.eclipse.mylyn.internal.hudson.core.client.RestfulHudsonClient$7.execute(RestfulHudsonClient.java:390)
	at org.eclipse.mylyn.internal.hudson.core.client.HudsonOperation.run(HudsonOperation.java:32)
	... 5 more
Caused by: java.lang.UnsupportedOperationException
	at org.eclipse.mylyn.internal.commons.repositories.LocationService.requestCredentials(LocationService.java:93)
	at org.eclipse.mylyn.builds.internal.core.util.RepositoryWebLocation.requestCredentials(RepositoryWebLocation.java:55)
	at org.eclipse.mylyn.commons.http.CommonHttpClient.needsReauthentication(CommonHttpClient.java:99)
	... 9 more
Re: Error Running Jenkins Build from Mylyn Build View [message #718684 is a reply to message #718448] Thu, 25 August 2011 04:21 Go to previous messageGo to next message
Manuel Doninger is currently offline Manuel DoningerFriend
Messages: 119
Registered: October 2010
Senior Member
It seems, the user, which you have configured in the Jenkins connector, doesn't have the appropriate rights. Can you check this?
Re: Error Running Jenkins Build from Mylyn Build View [message #754746 is a reply to message #718448] Fri, 04 November 2011 07:53 Go to previous message
klemens.muthmann is currently offline klemens.muthmannFriend
Messages: 1
Registered: November 2011
Junior Member
Hi,

I have the same problem. Is the solution already found? Which rights do I need to assign to my user?

Thanks and Regards
Previous Topic:Mylyn souce code checkout Problem
Next Topic:Table formatting using Mylin Wikitext Textile
Goto Forum:
  


Current Time: Mon Dec 22 07:47:39 GMT 2014

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

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