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

RE: [Subclipse-users] "File cannot be cast to..." when updating

From: Hale,Katherine <halek_at_oclc.org>
Date: Thu, 3 Jul 2008 09:34:26 -0400

Mmm my work around won't help you, unfortunately. It was only for deeply
nested externals and yours are not. Also, did you copy and paste those
URLs? One of them has a comma in the middle - maybe that's causing the
problem? If that was not the issue, to confirm it's the same error I was
experiencing, try checking out the project fresh - do you get the error
on checkout as well? I would get it for both checkout & update.

Mark do you think a defect should be logged?

Here's my stack for reference:

        !ENTRY org.eclipse.core.jobs 4 2 2008-06-27 15:35:28.575
        !MESSAGE An internal error occurred during: "SVN Checkout".
        !STACK 0
        java.lang.ClassCastException:
org.eclipse.core.internal.resources.File cannot be cast to
org.eclipse.core.resources.IContainer
         at
org.tigris.subversion.subclipse.core.client.OperationManager.endOperatio
n(OperationManager.java:113)
         at
org.tigris.subversion.subclipse.core.commands.CheckoutCommand.checkoutPr
oject(CheckoutCommand.java:206)
         at
org.tigris.subversion.subclipse.core.commands.CheckoutCommand.basicRun(C
heckoutCommand.java:169)
         at
org.tigris.subversion.subclipse.core.commands.CheckoutCommand$1.run(Chec
koutCommand.java:222)
         at
org.tigris.subversion.subclipse.core.SVNProviderPlugin$6.run(SVNProvider
Plugin.java:490)
         at
org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1797)
         at
org.tigris.subversion.subclipse.core.SVNProviderPlugin.run(SVNProviderPl
ugin.java:485)
         at
org.tigris.subversion.subclipse.core.commands.CheckoutCommand.run(Checko
utCommand.java:220)
         at
org.tigris.subversion.subclipse.ui.operations.CheckoutAsProjectOperation
.execute(CheckoutAsProjectOperation.java:99)
         at
org.tigris.subversion.subclipse.ui.operations.CheckoutAsProjectOperation
.execute(CheckoutAsProjectOperation.java:68)
         at
org.tigris.subversion.subclipse.ui.operations.SVNOperation.run(SVNOperat
ion.java:89)
         at
org.eclipse.team.internal.ui.actions.JobRunnableContext.run(JobRunnableC
ontext.java:144)
         at
org.eclipse.team.internal.ui.actions.JobRunnableContext$ResourceJob.runI
nWorkspace(JobRunnableContext.java:72)
         at
org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWor
kspaceJob.java:38)
         at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

In another instance, here's the trace during update:

        !ENTRY org.eclipse.core.jobs 4 2 2008-06-26 15:16:31.151
        !MESSAGE An internal error occurred during: "SVN Update".
        !STACK 0
        java.lang.ClassCastException:
org.eclipse.core.internal.resources.File cannot be cast to
org.eclipse.core.resources.IContainer
         at
org.tigris.subversion.subclipse.core.client.OperationManager.endOperatio
n(OperationManager.java:113)
         at
org.tigris.subversion.subclipse.core.commands.UpdateResourcesCommand.run
(UpdateResourcesCommand.java:83)
         at
org.tigris.subversion.subclipse.ui.operations.UpdateOperation.execute(Up
dateOperation.java:73)
         at
org.tigris.subversion.subclipse.ui.operations.RepositoryProviderOperatio
n.execute(RepositoryProviderOperation.java:71)
         at
org.tigris.subversion.subclipse.ui.operations.SVNOperation.run(SVNOperat
ion.java:89)
         at
org.eclipse.team.internal.ui.actions.JobRunnableContext.run(JobRunnableC
ontext.java:144)
         at
org.eclipse.team.internal.ui.actions.JobRunnableContext$ResourceJob.runI
nWorkspace(JobRunnableContext.java:72)
         at
org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWor
kspaceJob.java:38)
         at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

        
        
        -----Original Message-----
        From: Andreas Magnusson [mailto:andreas.ch.magnusson_at_gmail.com]
        Sent: Thursday, July 03, 2008 1:07 AM
        To: users_at_subclipse.tigris.org
        Subject: Re: [Subclipse-users] "File cannot be cast to..." when
updating
        
        Thanks, and sure. Here it is:
        
        svn:externals
        thirdParty/log4j
svn://server.example.com,/GWT_Externals/externals/log4j-1.2.15
        thirdParty/jdom
svn://server.example.com/GWT_Externals/externals/jdom-1.1
        
        /Andreas
        On Wed, Jul 2, 2008 at 4:51 PM, Hale,Katherine <halek_at_oclc.org>
wrote:
> I was experiencing the same issue, and I might have a work
around for
> you. Can you navigate to the folder that has the svn:externals
and
> share the contents of the property?
>
> -----Original Message-----
> From: Andreas Magnusson
[mailto:andreas.ch.magnusson_at_gmail.com]
> Sent: Wednesday, July 02, 2008 1:59 AM
> To: users_at_subclipse.tigris.org
> Subject: [Subclipse-users] "File cannot be cast to..." when
updating
>
> Hi all,
> I'm running Eclipse 3.4 and subclipse 1.4.0 and am getting
errors on
> update (see info below). I also tried to delete the project
and check
> it out again, the same error. Note that nothing seems wrong
with the
> WC, and the project is OK. It's just that I get these errors
each and
> every time.
> One common factor I know of is that the two projects that show
this
> error both have svn:externals. The unit test project don't
give an
> error, and doesn't have svn:externals.
>
> /Andreas
>
> Here is the eclipse info on the error:
>
> eclipse.buildId=I20080617-2000
> java.version=1.6.0_03
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86_64, WS=win32,
NL=sv_SE
> Command-line arguments: -os win32 -ws win32 -arch x86_64
>
>
> Error
> Wed Jul 02 07:48:59 CEST 2008
> An internal error occurred during: "SVN Update".
>
> java.lang.ClassCastException:
org.eclipse.core.internal.resources.File
> cannot be cast to org.eclipse.core.resources.IContainer
> at
>
org.tigris.subversion.subclipse.core.client.OperationManager.endOperat
> io
> n(OperationManager.java:113)
> at
>
org.tigris.subversion.subclipse.core.commands.UpdateResourcesCommand.r
> un
> (UpdateResourcesCommand.java:83)
> at
>
org.tigris.subversion.subclipse.ui.operations.UpdateOperation.execute(
> Up
> dateOperation.java:73)
> at
>
org.tigris.subversion.subclipse.ui.operations.RepositoryProviderOperat
> io
> n.execute(RepositoryProviderOperation.java:71)
> at
>
org.tigris.subversion.subclipse.ui.operations.SVNOperation.run(SVNOper
> at
> ion.java:89)
> at
>
org.eclipse.team.internal.ui.actions.JobRunnableContext.run(JobRunnabl
> eC
> ontext.java:144)
> at
>
org.eclipse.team.internal.ui.actions.JobRunnableContext$ResourceJob.ru
> nI
> nWorkspace(JobRunnableContext.java:72)
> at
>
org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalW
> or
> kspaceJob.java:38)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_subclipse.tigris.org
> For additional commands, e-mail:
users-help_at_subclipse.tigris.org
>
>
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_subclipse.tigris.org
> For additional commands, e-mail:
users-help_at_subclipse.tigris.org
>
>
        
        
---------------------------------------------------------------------
        To unsubscribe, e-mail: users-unsubscribe_at_subclipse.tigris.org
        For additional commands, e-mail: users-help_at_subclipse.tigris.org
        
        
        
Received on 2008-07-03 15:34:46 CEST

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.