[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [hudson-dev] Error when svn post-commit hook notifies hudson.


The URL has to have some parameters. For example

<hudson-url>/subversion/<uuid>/ notifyCommit?rev=<latest-revision>

I don't see any parameter in the URL you posted

- Winston

On 4/3/12 7:45 AM, Naveen Babu Ede wrote:
I am setting up a CI environment and started using Hudson. Instead of having hudson poll svn every x minutes for any updates, I went on to use 'svn post commit hook' that notifies hudson of any commits.
I followed the documentation available http://wiki.hudson-ci.org/display/HUDSON/Subversion+Plugin and tried to set it up.
I could see the following, StringIndexOutOfBoundsException: String index out of range: -3, error from the container logs.
Is this a bug in the plugin? Is there a fix available, that I can use?
Currently, the work around I implemented is to have the svn hook extract list of jobs using remote xml api and invoke the job by posting to the url http://~~~~/job/<jobname>/polling?token=AUTH_TOKEN.
Please suggest.
SEVERE: Error while serving http://localhost:8080/hudson-2.2.0/subversion/349a9b62-1c8a-47dc-a373-d521af1169e8/notifyCommit java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at 
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -3 at java.lang.String.substring(String.java:1937)
at java.lang.String.substring(String.java:1904) at hudson.scm.SubversionRepositoryStatus.doNotifyCommit(SubversionRepositoryStatus.java:70) ...
Note: I am attaching the complete exception.
Appreicate your hlep!

hudson-dev mailing list