« Return to Thread: SVNKit 1.2.3.5521 Problem with DumpFile

Re: SVNKit 1.2.3.5521 Problem with DumpFile

by Alexander Sinyushkin :: Rate this Message:

Reply to Author | View in Thread

Hello Karl,

I suppose, that's because you do not handle file text correctly in your
ISVNLoadHandler implementation methods. In the method
parseTextBlock(..., long contentLength) you are expected to read the
text contents from the dump stream yourself. Use DefaultLoadHandler.java
as an example to realize a correct load handler.

Another thing that I've noticed:

        public void checkCancelled() throws SVNCancelException {
                LOGGER.warn("Cancellation received.");
               
        }

The method ISVNCanceller.checkCancelled() is intended to give a caller
(i.e. you in this case) a chance to stop the operation somewhere in the
middle. It's not a kind of a notification method, on the contrary, you
may throw an SVNCancelException from there whenever you want to cancel
the operation.
----
Alexander Sinyushkin,
TMate Software,
http://svnkit.com/ - Java [Sub]Versioning Library!

Karl Heinz Marbaise wrote:

> Hi,
>
> i have written a little Dump File reader test with SVNKit just to see
> how it works...
>
> Very simple one....
> But i got an exception during the run of this part (attached
> Exception.txt)....
>
> But i was a little bit irritated, cause during my Integration test i use
> the same Dump file with the SVNAdminClient using doLoad and doVerify
> without any problem....so it seemed to me that i'm doing something
> wrong....may be you can give me a hint what ?
> I've also checked the dump file with svn command line client...without
> any errors..
>
> Thanks in advance....
>
> Kind regards
> Karl Heinz Marbaise
>
> http://www.supose.org (Subversion Repository Search Engine)
>
>
> ------------------------------------------------------------------------
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: svnkit-users-unsubscribe@...
> For additional commands, e-mail: svnkit-users-help@...

---------------------------------------------------------------------
To unsubscribe, e-mail: svnkit-users-unsubscribe@...
For additional commands, e-mail: svnkit-users-help@...

 « Return to Thread: SVNKit 1.2.3.5521 Problem with DumpFile