[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [Subclipse-users] Null Pointer Exception on createRepository

From: Mark Phippard <markphip_at_gmail.com>
Date: Thu, 2 Dec 2010 11:23:24 -0500

The server version cannot create this problem.

Have you looked at the code to see what the null pointer is? I would
guess it cannot find the command line executable or something like
that.

On Wed, Dec 1, 2010 at 9:47 PM, Jonathan Foulkes
<Jonathan.Foulkes_at_orionhealth.com> wrote:
> Hi all,
>
> Last year I worked on a project using SVNClientAdapter to automatically store and compare files in a repository. I managed to get this working completely successfully.
>
> Recently I returned to this project to make some changes. I no longer had the version of subversion I'd used previously so I downloaded the latest Subversion Edge from CollabNet. When I tried upload a new file to a repository, the program threw a Null Pointer Exception. I've copied over the latest jars from Subclipse and svnant, and tried specifying the repository type (I'd initially left it null for the svnadmin default) but have made no progress.
>
> The problem specifically occurs when calling createRepository() - this is the first SVN command called.
>
> Any thoughts on what could be causing this problem? Would it be better just to roll back to last year's version of CollabNet Subversion?
>
> This is the full error trace:
> java.lang.NullPointerException
>        java.lang.ProcessBuilder.start(Unknown Source)
>        java.lang.Runtime.exec(Unknown Source)
>        java.lang.Runtime.exec(Unknown Source)
>        org.tigris.subversion.svnclientadapter.commandline.CommandLine.execProcess(CommandLine.java:104)
>        org.tigris.subversion.svnclientadapter.commandline.CommandLine.execString(CommandLine.java:229)
>        org.tigris.subversion.svnclientadapter.commandline.CommandLine.execVoid(CommandLine.java:302)
>        org.tigris.subversion.svnclientadapter.commandline.SvnAdminCommandLine.create(SvnAdminCommandLine.java:49)
>        org.tigris.subversion.svnclientadapter.commandline.CmdLineClientAdapter.createRepository(CmdLineClientAdapter.java:1191)
>        com.repos.servlet.ReposServlet.Save(ReposServlet.java:815)
>        com.repos.servlet.ReposServlet.handleFile(ReposServlet.java:871)
>        com.repos.servlet.ReposServlet.handleFileUpload(ReposServlet.java:949)
>        com.repos.servlet.ReposServlet.doPost(ReposServlet.java:1038)
>        javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
>        javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>
> Yours Sincerely,
> Jonathan Foulkes
>
> ------------------------------------------------------
> http://subclipse.tigris.org/ds/viewMessage.do?dsForumId=1047&dsMessageId=2687163
>
> To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subclipse.tigris.org].
>

-- 
Thanks
Mark Phippard
http://markphip.blogspot.com/
------------------------------------------------------
http://subclipse.tigris.org/ds/viewMessage.do?dsForumId=1047&dsMessageId=2687326
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subclipse.tigris.org].
Received on 2010-12-02 17:23:38 CET

This is an archived mail posted to the Subclipse Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.