SVNException: svn: Unable to create transaction directory

View: New views
3 Messages — Rating Filter:   Alert me  

SVNException: svn: Unable to create transaction directory

by jayapari :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

 I am working on a new spring based java application that manages file system. Hence, I thought SVNKit will be good fit to use for this file management purpose.

I am able to run all the low-level API example codes given in http://svnkit.com/kb/examples/index.php . All these examples run fine as a stand alone code called from main() method.

 When I try to make a java utility class and call it from jsp, it fails with this error ‘org.tmatesoft.svn.core.SVNException: svn: Unable to create transaction directory in 'c:\nicesvn\db\transactions' for revision 20’.

But itt is able to fetch the version number etc,


long latestRevision = repository.getLatestRevision();

           System.out.println("Repository latest revision (before committing): " + latestRevision);

 But, it fails at this line:


editor.openRoot(-1);

 Not sure, how to debug this. The same utility class code if I call from a stand alone main() method, executes fine.

 
Any help in this regard is greatly appreciated.

Re: SVNException: svn: Unable to create transaction directory

by Alexander Kitaev-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

 >  When I try to make a java utility class and call it from jsp, it
fails with
 > this error ‘org.tmatesoft.svn.core.SVNException: svn: Unable to create
 > transaction directory in 'c:\nicesvn\db\transactions' for revision 20’.

 From your description of the problem it looks like read only operations
works fine, but those that need write access to repository fails. Most
probably the reason are permissions on the repository files that
prevents write access to them from the user on which behalf spring
application is ran.

Alexander Kitaev,
TMate Software,
http://svnkit.com/ - Java [Sub]Versioning Library!

jayapari wrote:

> Hi,
>
>  I am working on a new spring based java application that manages file
> system. Hence, I thought SVNKit will be good fit to use for this file
> management purpose.
>
> I am able to run all the low-level API example codes given in
> http://svnkit.com/kb/examples/index.php . All these examples run fine as a
> stand alone code called from main() method.
>
>  When I try to make a java utility class and call it from jsp, it fails with
> this error ‘org.tmatesoft.svn.core.SVNException: svn: Unable to create
> transaction directory in 'c:\nicesvn\db\transactions' for revision 20’.
>
> But itt is able to fetch the version number etc,
>
>
> long latestRevision = repository.getLatestRevision();
>
>            System.out.println("Repository latest revision (before
> committing): " + latestRevision);
>
>  But, it fails at this line:
>
>
> editor.openRoot(-1);
>
>  Not sure, how to debug this. The same utility class code if I call from a
> stand alone main() method, executes fine.
>
>  
> Any help in this regard is greatly appreciated.
>

Re: SVNException: svn: Unable to create transaction directory

by jayapari :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thank you so much for the immediate reply.  Appreciate it!

jayapari

Alexander Kitaev-3 wrote:
Hello,

 >  When I try to make a java utility class and call it from jsp, it
fails with
 > this error ‘org.tmatesoft.svn.core.SVNException: svn: Unable to create
 > transaction directory in 'c:\nicesvn\db\transactions' for revision 20’.

 From your description of the problem it looks like read only operations
works fine, but those that need write access to repository fails. Most
probably the reason are permissions on the repository files that
prevents write access to them from the user on which behalf spring
application is ran.

Alexander Kitaev,
TMate Software,
http://svnkit.com/ - Java [Sub]Versioning Library!

jayapari wrote:
> Hi,
>
>  I am working on a new spring based java application that manages file
> system. Hence, I thought SVNKit will be good fit to use for this file
> management purpose.
>
> I am able to run all the low-level API example codes given in
> http://svnkit.com/kb/examples/index.php . All these examples run fine as a
> stand alone code called from main() method.
>
>  When I try to make a java utility class and call it from jsp, it fails with
> this error ‘org.tmatesoft.svn.core.SVNException: svn: Unable to create
> transaction directory in 'c:\nicesvn\db\transactions' for revision 20’.
>
> But itt is able to fetch the version number etc,
>
>
> long latestRevision = repository.getLatestRevision();
>
>            System.out.println("Repository latest revision (before
> committing): " + latestRevision);
>
>  But, it fails at this line:
>
>
> editor.openRoot(-1);
>
>  Not sure, how to debug this. The same utility class code if I call from a
> stand alone main() method, executes fine.
>
>  
> Any help in this regard is greatly appreciated.
>