[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [platform-team-dev] CVS resource retrieval hangs on second query
|
Hi there,
Sorry for the delay Robert. I will try to run your snippet and see what's
going on in a minute...
FYI, this is a development list, so next time please ask on Eclipse
Community forums: http://www.eclipse.org/forums/(Embedded image moved to
file: pic03992.gif) or #eclipse channel (
http://wiki.eclipse.org/index.php/IRC(Embedded image moved to file:
pic22027.gif)).
Cheers,
--
Tomek
From: Robert Munteanu <robert.munteanu@xxxxxxxxx>
To: platform-team-dev@xxxxxxxxxxx
Date: 2011-11-15 11:46
Subject: Re: [platform-team-dev] CVS resource retrieval hangs on second
query
Sent by: platform-team-dev-bounces@xxxxxxxxxxx
Ping?
On Mon, Nov 7, 2011 at 1:38 PM, Robert Munteanu
<robert.munteanu@xxxxxxxxx> wrote:
> Hi,
>
> I'm not sure whether this is an error in my usage of the CVS APIs or a
> bug, so I'm posting it here first.
>
> I'm trying to retrieve the contents of file from a CVS repository and
> it works as expected for the first time, but the second time it times
> out and aborts with 'I/O has been interrupted.'. The CVS repository is
> running on localhost, so I can exclude network problems.
>
> Here's how I use the CVS code ( a bit simplified )
>
> ICVSRepositoryLocation repositoryLocation = ...;
>
> String unqualifiedPath = ...;
>
> CVSTag tag = new CVSTag(_revision, CVSTag.VERSION);
>
> ICVSRemoteFile remoteFile =
> repositoryLocation.getRemoteFile(unqualifiedPath, tag);
>
> if ( !remoteFile.exists(monitor) )
> return null;
>
> InputStream contents = remoteFile.getContents(monitor);
>
> try {
> ByteArrayOutputStream outputStream = new
> ByteArrayOutputStream();
>
> IOUtils.copy(contents, outputStream);
>
> return outputStream.toByteArray();
>
> } catch (IOException e) {
> throw new CoreException(new Status(IStatus.ERROR,
> Activator.PLUGIN_ID, "Error communicating with the repository : " +
> e.getMessage(), e));
> } finally {
> IOUtils.closeQuietly(contents);
> }
>
> I have attached a stack trace with the code as it hangs.
>
> I'm running with plug-in versions
>
> org.eclipse.team.core (3.5.1.r35x_20100113-0800) "Team Support
Core" [Active]
> org.eclipse.team.cvs.core (3.3.200.I20090430-0408) "CVS Team Provider
> Core" [Active]
> org.eclipse.team.cvs.ui (3.3.202.r35x_20090930-0800) "CVS Team
> Provider UI" [Active]
> org.eclipse.team.ui (3.5.0.I20090430-0408) "Team Support UI" [Active]
>
> and CVS version
>
> Concurrent Versions System (CVS) 1.12.12 (client/server)
>
> Thanks,
>
> Robert
>
> --
> Sent from my (old) computer
>
--
Sent from my (old) computer
_______________________________________________
platform-team-dev mailing list
platform-team-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-team-dev
Attachment:
pic03992.gif
Description: GIF image
Attachment:
pic22027.gif
Description: GIF image