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

[Subclipse-users] Null Pointer Exception on createRepository

From: Jonathan Foulkes <Jonathan.Foulkes_at_orionhealth.com>
Date: Thu, 2 Dec 2010 15:47:46 +1300 (NZDT)

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].
Received on 2010-12-02 03:48:02 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.