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

Re: [Subclipse-dev] Revision graph status and plan

From: Alberto Gimeno <gimenete_at_gmail.com>
Date: Wed, 3 Sep 2008 14:10:38 +0200

Yes, I haven't handled any exception. In Cache.java I just wrap any
exception into a CacheException and all methods throw a
CacheException. In the UI classes there are just try-catches with a
"TODO" note and an e.printStackTrace(). I didn't know the way to
prompt the user to tell about an exception has happened. I will take a
look at those mechanisms for exception handling and I'll use them.

On Thu, Aug 28, 2008 at 7:18 PM, Mark Phippard <markphip_at_gmail.com> wrote:
> So yesterday I killed my Eclipse session because it was going to take
> so long to build the cache of revision information. If I try it again
> today, this error shows up:
>
> org.tigris.subversion.sublicpse.graph.cache.CacheException: Error
> while reading log messages from file
> at org.tigris.subversion.sublicpse.graph.cache.Cache.readNext(Cache.java:299)
> at org.tigris.subversion.sublicpse.graph.cache.Cache.readNext(Cache.java:191)
> at org.tigris.subversion.sublicpse.graph.cache.Cache.findRootNode(Cache.java:210)
> at org.tigris.subversion.subclipse.graph.editors.GraphBackgroundTask.updateView(GraphBackgroundTask.java:114)
> at org.tigris.subversion.subclipse.graph.editors.GraphBackgroundTask.execute(GraphBackgroundTask.java:85)
> at org.tigris.subversion.subclipse.ui.operations.SVNOperation.run(SVNOperation.java:89)
> at org.eclipse.team.internal.ui.actions.JobRunnableContext.run(JobRunnableContext.java:144)
> at org.eclipse.team.internal.ui.actions.JobRunnableContext$ResourceJob.runInWorkspace(JobRunnableContext.java:72)
> at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
> Caused by: java.io.UTFDataFormatException: malformed input around byte 719
> at java.io.DataInputStream.readUTF(DataInputStream.java:604)
> at java.io.RandomAccessFile.readUTF(RandomAccessFile.java:875)
> at org.tigris.subversion.sublicpse.graph.cache.Cache.readNext(Cache.java:263)
> ... 9 more
>
>
> The problem itself is not really unexpected given I killed Eclipse.
> The problem is that the error is handled poorly. Nothing in the UI
> let me know an error even happened. We have mechanisms you can use to
> throw exceptions so that an error dialog comes up and it is recorded
> in the Eclipse .log. We should be using those.
>
> --
> Thanks
>
> Mark Phippard
> http://markphip.blogspot.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_subclipse.tigris.org
> For additional commands, e-mail: dev-help_at_subclipse.tigris.org
>
>

-- 
Alberto Gimeno Brieba
Presidente y fundador de
Ribe Software S.L.
http://www.ribesoftware.com
ribe_at_ribesoftware.com
Contacto personal
eMail: gimenete_at_gmail.com
GTalk: gimenete_at_gmail.com
msn: gimenete_at_hotmail.com
página web: http://gimenete.net
teléfono móvil: +34 625 24 64 81
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subclipse.tigris.org
For additional commands, e-mail: dev-help_at_subclipse.tigris.org
Received on 2008-09-03 14:10:49 CEST

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

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