Issue Details (XML | Word | Printable)

Key: HUDSON-4666
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Blocker Blocker
Assignee: redsolo
Reporter: dennis33
Votes: 2
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
Hudson

ArrayIndexOutOfBoundsException when setting up workspace

Created: 15/Oct/09 03:31 PM   Updated: 28/Jan/10 06:01 AM   Resolved: 28/Jan/10 04:11 AM
Component/s: tfs
Affects Version/s: current
Fix Version/s: None

Environment: Platform: PC, OS: other


 Description  « Hide

Here is the log, note that the job name is "scrumboard" and I manually added the
workspace "Hudson-Scrumboard" after I got the same error. I am running on
Windows 7. Version of tfs plugin is 1.9. Latest version of hudson, running
ooas a windows service.

Started by user anonymous
[workspace] $ "C:\Program Files (x86)\Microsoft Visual Studio
9.0\Common7\IDE\tf" workspaces -format:brief -server:http://TeamServer-01:8080
********
Server: teamserver-01
Workspace Owner Computer Comment
----------------- ------ ----------- ------------------------------------------
Hudson-Scrumboard dennis W7-DENNIS-1
W7-DENNIS-1 dennis W7-DENNIS-1
FATAL: -1
java.lang.ArrayIndexOutOfBoundsException: -1
at java.util.ArrayList.get(Unknown Source)
at hudson.plugins.tfs.util.TextTableParser.init(TextTableParser.java:77)
at hudson.plugins.tfs.util.TextTableParser.<init>(TextTableParser.java:60)
at
hudson.plugins.tfs.commands.ListWorkspacesCommand.parse(ListWorkspacesCommand.java:46)
at hudson.plugins.tfs.model.Workspaces.getListFromServer(Workspaces.java:39)
at hudson.plugins.tfs.model.Workspaces.populateMapFromServer(Workspaces.java:50)
at hudson.plugins.tfs.model.Workspaces.exists(Workspaces.java:76)
at hudson.plugins.tfs.actions.CheckoutAction.checkout(CheckoutAction.java:35)
at
hudson.plugins.tfs.TeamFoundationServerScm.checkout(TeamFoundationServerScm.java:169)
at hudson.model.AbstractProject.checkout(AbstractProject.java:978)
at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:421)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:370)
at hudson.model.Run.run(Run.java:1120)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:123)



Sort Order: Ascending order - Click to sort in descending order
gcontant added a comment - 03/Nov/09 01:36 PM

I have the same problem running on Windows Server 2003 SP2.

I'm also unsing version 1.9 of the tfs plugin and Hudson v1.332


gcontant added a comment - 10/Nov/09 05:45 AM

I have the same issue and I need this resolved for my company to accept Hudson
as the CI server


RobinClowers added a comment - 29/Dec/09 04:08 PM

I am running into this issue as well. I am running Hudson 1.339 with TFS plugin version 1.9 on Windows 2008 R2. I am connecting to a TFS 2008 server, which works fine when the workspace does not exist (if I delete the workspace, then run the build it succeeds, but the next time I run it it will fail).


scm_issue_link added a comment - 28/Jan/10 04:11 AM

Code changed in hudson
User: : redsolo
Path:
trunk/hudson/plugins/tfs/src/main/java/hudson/plugins/tfs/util/TextTableParser.java
trunk/hudson/plugins/tfs/src/test/java/hudson/plugins/tfs/commands/ListWorkspacesCommandTest.java
trunk/hudson/plugins/tfs/src/test/java/hudson/plugins/tfs/util/TextTableParserTest.java
http://hudson-ci.org/commit/26632
Log:
[FIXED HUDSON-4666] ArrayIndexOutOfBoundsException is no longer thrown when server contains a dash.


redsolo added a comment - 28/Jan/10 04:16 AM

Sorry for the inconvenience that this issue has caused. It was a regex that failed, this has been fixed and i will release a new version shortly.


gcontant added a comment - 28/Jan/10 06:01 AM

Thanks redsolo for the fix

I'll try it as soon as I can