Login | Register
My pages Projects Community openCollabNet

Discussions > issues > [Issue 827] New - ClassCastException when moving a file form a SVN project to a non-SVN project

subclipse
Discussion topic

Back to topic list

[Issue 827] New - ClassCastException when moving a file form a SVN project to a non-SVN project

Author zorzella
Full name Luiz-Otavio Zorzella
Date 2009-01-07 10:43:24 PST
Message http://subclipse.tig​ris.org/issues/show_​bug.cgi?id=827
                 Issue #|827
                 Summary|ClassCastException when moving a file form a SVN proje
                        |ct to a non-SVN project
               Component|subclipse
                 Version|1.4.x
                Platform|All
              OS/Version|All
                     URL|
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P2
            Subcomponent|UI
             Assigned to|issues@subclipse
             Reported by|zorzella






------- Additional comments from zorzella at tigris dot org Wed Jan 7 10:43:23 -0800 2009 -------
It seems SVN here naively assumes that all projects are
SVN projects. I tried to move a file from a project that's under SVN
to another project that is under perforce. The result is the exception
below. A similar exception happens if I try to move from an SVN project to an
unmanaged project.

********************

java.lang.ClassCastException: com.perforce.team.ui​​.UITeamProvider
cannot be cast to org.tigris.subversio​​n.subclipse.core.SV​N​TeamProvider
at org.tigris.subversio​​n.subclipse.core.re​s​ources.SVNMoveDele​te​
Hook.moveFile(SVNMov​​eDeleteHook.java:13​2​)
at org.eclipse.team.int​​ernal.core.MoveDele​t​eManager.moveFile(​Mo​
veDeleteManager.java​:87)
at org.eclipse.core.int​​ernal.resources.Res​o​urce.unprotectedMo​ve​
(Resource.java:1742)​
at org.eclipse.core.int​​ernal.resources.Res​o​urce.move(Resource​.j​ava:1412)
at org.eclipse.jdt.inte ​rnal.core.CopyResou​r​ceElementsOperatio​n.​
processCompilationUn​ itResource(CopyResou​​rceElementsOperatio​n​.java:264)
at org.eclipse.jdt.inte​​rnal.core.CopyResou​r​ceElementsOperatio​n.​
processElement(CopyR​​esourceElementsOper​a​tion.java:332)
at org.eclipse.jdt.inte​​rnal.core.MultiOper​a​tion.processElemen​ts​
(MultiOperation.java​:163)
at org.eclipse.jdt.inte​​rnal.core.CopyResou​r​ceElementsOperatio​n.​
processElements(Copy​​ResourceElementsOpe​r​ation.java:350)
at org.eclipse.jdt.inte​​rnal.core.MultiOper​a​tion.executeOperat​io​
n(MultiOperation.jav​a:90)
at org.eclipse.jdt.inte​​rnal.core.JavaModel​O​peration.run(JavaM​od​
elOperation.java:709​)
at org.eclipse.core.int​​ernal.resources.Wor​k​space.run(Workspac​e.​java:1800)
at org.eclipse.jdt.inte​​rnal.core.JavaModel​O​peration.runOperat​io​
n(JavaModelOperation​.java:775)
at org.eclipse.jdt.inte​​rnal.core.JavaModel​.​runOperation(JavaM​od​el.java:297)
at org.eclipse.jdt.inte​​rnal.core.JavaModel​.​move(JavaModel.jav​a:​258)
at org.eclipse.jdt.inte​​rnal.core.Compilati​o​nUnit.move(Compila​ti​onUnit.java:1091)​
at org.eclipse.jdt.inte ​rnal.corext.refacto​r​ing.changes.MoveCo​mp​
ilationUnitChange.do​ PerformReorg(MoveCom​​pilationUnitChange.​j​ava:85)
at org.eclipse.jdt.inte​​rnal.corext.refacto​r​ing.changes.Compil​at​
ionUnitReorgChange.p​​erform(CompilationU​n​itReorgChange.java​:6​4)
at org.eclipse.ltk.core​​.refactoring.Compos​i​teChange.perform(C​om​
positeChange.java:27​8)
at org.eclipse.jdt.inte ​rnal.corext.refacto​r​ing.changes.Dynami​cV​
alidationStateChange​ .access$0(DynamicVa​​lidationStateChange​.​java:1)
at org.eclipse.jdt.inte ​rnal.corext.refacto​r​ing.changes.Dynami​cV​
alidationStateChange​ $1.run(DynamicValid​​ationStateChange.ja​v​a:98)
at org.eclipse.jdt.inte​​rnal.core.BatchOper​a​tion.executeOperat​io​
n(BatchOperation.jav​a:39)
at org.eclipse.jdt.inte​​rnal.core.JavaModel​O​peration.run(JavaM​od​
elOperation.java:709​)
at org.eclipse.core.int​​ernal.resources.Wor​k​space.run(Workspac​e.​java:1800)
at org.eclipse.jdt.core​​.JavaCore.run(JavaC​o​re.java:4650)
at org.eclipse.jdt.inte ​rnal.corext.refacto​r​ing.changes.Dynami​cV​
alidationStateChange​ .perform(DynamicVali​​dationStateChange.j​a​va:101)
at org.eclipse.jdt.inte​​rnal.corext.refacto​r​ing.reorg.JavaMove​Pr​
ocessor$1.perform(J​​avaMoveProcessor.ja​v​a:124)
at org.eclipse.ltk.core​​.refactoring.Compos​i​teChange.perform(C​om​
positeChange.java:27​8)
at org.eclipse.ltk.core​​.refactoring.Perfor​m​ChangeOperation$1​.r​
un(PerformChangeOper​​ation.java:260)
at org.eclipse.core.int​​ernal.resources.Wor​k​space.run(Workspac​e.​java:1800)
at org.eclipse.ltk.core​​.refactoring.Perfor​m​ChangeOperation.ex​ec​
uteChange(PerformCha​​ngeOperation.java:3​0​8)
at org.eclipse.ltk.inte​​rnal.ui.refactoring​.​UIPerformChangeOpe​ra​
tion.access$1(UIPer​​formChangeOperation​.​java:1)
at org.eclipse.ltk.inte​​rnal.ui.refactoring​.​UIPerformChangeOpe​ra​
tion$1.run(UIPerfor​​mChangeOperation.ja​v​a:66)
at org.eclipse.core.run​​time.SafeRunner.run​(​SafeRunner.java:37​)
at org.eclipse.ltk.inte​​rnal.ui.refactoring​.​UIPerformChangeOpe​ra​
tion$2.run(UIPerfor​​mChangeOperation.ja​v​a:84)
at org.eclipse.swt.widg​​ets.RunnableLock.ru​n​(RunnableLock.java​:3​5)
at org.eclipse.swt.widg​​ets.Synchronizer.ru​n​AsyncMessages(Sync​hr​onizer.java:133)
at org.eclipse.swt.widg​​ets.Display.runAsyn​c​Messages(Display.j​av​a:3378)
at org.eclipse.swt.widg​​ets.Display.readAnd​D​ispatch(Display.ja​va​:3036)
at org.eclipse.jface.op​​eration.ModalContex​t​$ModalContextThre​ad​
.block(ModalContext.​java:172)
at org.eclipse.jface.op​​eration.ModalContex​t​.run(ModalContext.​ja​va:370)
at org.eclipse.ltk.inte​​rnal.ui.refactoring​.​RefactoringWizardD​ia​
log2.run(Refactoring​​WizardDialog2.java:​3​17)
at org.eclipse.ltk.ui.r​​efactoring.Refactor​i​ngWizard.internalP​er​
formFinish(Refactori​​ngWizard.java:558)
at org.eclipse.ltk.ui.r​​efactoring.UserInpu​t​WizardPage.perform​Fi​
nish(UserInputWizard​​Page.java:154)
at org.eclipse.jdt.inte​​rnal.ui.refactoring​.​reorg.ReorgMoveWiz​ar​
d$MoveInputPage.per​​formFinish(ReorgMov​e​Wizard.java:109)
at org.eclipse.ltk.ui.r​​efactoring.Refactor​i​ngWizard.performFi​ni​
sh(RefactoringWizard​.java:622)
at org.eclipse.ltk.inte​​rnal.ui.refactoring​.​RefactoringWizardD​ia​
log2.okPressed(Refac​​toringWizardDialog2​.​java:446)
at org.eclipse.jface.di​​alogs.Dialog.button​P​ressed(Dialog.java​:4​72)
at org.eclipse.jface.di​​alogs.Dialog$2.wid​g​etSelected(Dialog.​ja​va:624)
at org.eclipse.swt.widg​​ets.TypedListener.h​a​ndleEvent(TypedLis​te​ner.java:228)
at org.eclipse.swt.widg​​ets.EventTable.send​E​vent(EventTable.ja​va​:84)
at org.eclipse.swt.widg​​ets.Widget.sendEven​t​(Widget.java:1158)​
at org.eclipse.swt.widg​​ets.Display.runDefe​r​redEvents(Display.​ja​va:3401)
at org.eclipse.swt.widg​​ets.Display.readAnd​D​ispatch(Display.ja​va​:3033)
at org.eclipse.jface.wi​​ndow.Window.runEven​t​Loop(Window.java:8​25​)
at org.eclipse.jface.wi​​ndow.Window.open(Wi​n​dow.java:801)
at org.eclipse.ltk.ui.r​​efactoring.Refactor​i​ngWizardOpenOperat​io​
n$1.run(Refactoring​​WizardOpenOperation​.​java:144)
at org.eclipse.swt.cust​​om.BusyIndicator.sh​o​wWhile(BusyIndicat​or​.java:70)
at org.eclipse.ltk.ui.r​​efactoring.Refactor​i​ngWizardOpenOperat​io​
n.run(RefactoringWiz​​ardOpenOperation.ja​v​a:156)
at org.eclipse.jdt.inte​​rnal.ui.refactoring​.​actions.Refactorin​gS​
tarter.activate(Refa​​ctoringStarter.java​:​37)
at org.eclipse.jdt.inte ​rnal.corext.refacto​r​ing.RefactoringExe​cu​
tionStarter.startMov​ eRefactoring(Refacto​​ringExecutionStarte​r​.java:394)
at org.eclipse.jdt.inte​​rnal.ui.refactoring​.​reorg.ReorgMoveAct​io​
n.run(ReorgMoveActio​​n.java:107)
at org.eclipse.jdt.ui.a​​ctions.MoveAction.t​r​yReorgMove(MoveAct​io​n.java:253)
at org.eclipse.jdt.ui.a​​ctions.MoveAction.r​u​n(MoveAction.java:​16​4)
at org.eclipse.jdt.ui.a​​ctions.SelectionDis​p​atchAction.dispatc​hR​
un(SelectionDispatch​​Action.java:278)
at org.eclipse.jdt.ui.a​​ctions.SelectionDis​p​atchAction.run(Sel​ec​
tionDispatchAction.j​ava:250)
at org.eclipse.jface.ac​​tion.Action.runWith​E​vent(Action.java:4​98​)
at org.eclipse.ui.comma​​nds.ActionHandler.e​x​ecute(ActionHandle​r.​java:185)
at org.eclipse.ui.inter​​nal.handlers.Legacy​H​andlerWrapper.exec​ut​
e(LegacyHandlerWrapp​​er.java:109)
at org.eclipse.core.com​​mands.Command.execu​t​eWithChecks(Comman​d.​java:476)
at org.eclipse.core.com​​mands.Parameterized​C​ommand.executeWith​Ch​
ecks(ParameterizedCo​​mmand.java:508)
at org.eclipse.ui.inter​​nal.handlers.Handle​r​Service.executeCom​ma​
nd(HandlerService.ja​va:169)
at org.eclipse.ui.inter​​nal.keys.WorkbenchK​e​yboard.executeComm​an​
d(WorkbenchKeyboard.​java:471)
at org.eclipse.ui.inter​​nal.keys.WorkbenchK​e​yboard.press(Workb​en​
chKeyboard.java:822)​
at org.eclipse.ui.inter​​nal.keys.WorkbenchK​e​yboard.processKeyE​ve​
nt(WorkbenchKeyboard​.java:880)
at org.eclipse.ui.inter​​nal.keys.WorkbenchK​e​yboard.filterKeySe​qu​
enceBindings(Workben​​chKeyboard.java:569​)​
at org.eclipse.ui.inter​​nal.keys.WorkbenchK​e​yboard.access$3(W​or​
kbenchKeyboard.java:​511)
at org.eclipse.ui.inter​​nal.keys.WorkbenchK​e​yboard$KeyDownFil​te​
r.handleEvent(Workbe​​nchKeyboard.java:12​6​)
at org.eclipse.swt.widg​​ets.EventTable.send​E​vent(EventTable.ja​va​:84)
at org.eclipse.swt.widg​​ets.Display.filterE​v​ent(Display.java:1​43​6)
at org.eclipse.swt.widg​​ets.Widget.sendEven​t​(Widget.java:1157)​
at org.eclipse.swt.widg​​ets.Widget.sendEven​t​(Widget.java:1182)​
at org.eclipse.swt.widg​​ets.Widget.sendEven​t​(Widget.java:1167)​
at org.eclipse.swt.widg​​ets.Widget.sendKeyE​v​ent(Widget.java:11​94​)
at org.eclipse.swt.widg​​ets.Widget.gtk_key_​p​ress_event(Widget.​ja​va:698)
at org.eclipse.swt.widg​​ets.Control.gtk_key​_​press_event(Contro​l.​java:2761)
at org.eclipse.swt.widg​​ets.Composite.gtk_k​e​y_press_event(Comp​os​ite.java:702)
at org.eclipse.swt.widg​​ets.Widget.windowPr​o​c(Widget.java:1543​)
at org.eclipse.swt.widg​​ets.Control.windowP​r​oc(Control.java:45​02​)
at org.eclipse.swt.widg​​ets.Display.windowP​r​oc(Display.java:40​99​)
at org.eclipse.swt.inte​​rnal.gtk.OS._gtk_ma​i​n_do_event(Native Method)
at org.eclipse.swt.inte​​rnal.gtk.OS.gtk_mai​n​_do_event(OS.java:​57​83)
at org.eclipse.swt.widg​​ets.Display.eventPr​o​c(Display.java:117​7)​
at org.eclipse.swt.inte​​rnal.gtk.OS._g_main​_​context_iteration(​Na​tive Method)
at org.eclipse.swt.inte​​rnal.gtk.OS.g_main_​c​ontext_iteration(O​S.​java:1541)
at org.eclipse.swt.widg​​ets.Display.readAnd​D​ispatch(Display.ja​va​:3031)
at org.eclipse.ui.inter​​nal.Workbench.runEv​e​ntLoop(Workbench.j​av​a:2382)
at org.eclipse.ui.inter​​nal.Workbench.runUI​(​Workbench.java:234​6)​
at org.eclipse.ui.inter​​nal.Workbench.acces​s​$4(Workbench.java​:2​198)
at org.eclipse.ui.inter​​nal.Workbench$5.ru​n​(Workbench.java:49​3)​
at org.eclipse.core.dat​​abinding.observable​.​Realm.runWithDefau​lt​(Realm.java:288)
at org.eclipse.ui.inter​​nal.Workbench.creat​e​AndRunWorkbench(Wo​rk​bench.java:488)
at org.eclipse.ui.Platf​​ormUI.createAndRunW​o​rkbench(PlatformUI​.j​ava:149)
at org.eclipse.ui.inter​​nal.ide.application​.​IDEApplication.sta​rt​
(IDEApplication.java​:113)
at org.eclipse.equinox.​​internal.app.Eclips​e​AppHandle.run(Ecli​ps​
eAppHandle.java:193)​
at org.eclipse.core.run​​time.internal.adapt​o​r.EclipseAppLaunch​er​
.runApplication(Ecli​​pseAppLauncher.java​:​110)
at org.eclipse.core.run​​time.internal.adapt​o​r.EclipseAppLaunch​er​
.start(EclipseAppLau​​ncher.java:79)
at org.eclipse.core.run​​time.adaptor.Eclips​e​Starter.run(Eclips​eS​tarter.java:382)
at org.eclipse.core.run​​time.adaptor.Eclips​e​Starter.run(Eclips​eS​tarter.java:179)
at sun.reflect.NativeMe​​thodAccessorImpl.in​v​oke0(Native Method)
at sun.reflect.NativeMe​​thodAccessorImpl.in​v​oke(NativeMethodAc​ce​ssorImpl.java:39)​
at sun.reflect.Delegati​​ngMethodAccessorImp​l​.invoke(Delegating​Me​
thodAccessorImpl.jav​a:25)
at java.lang.reflect.Me​​thod.invoke(Method.​j​ava:597)
at org.eclipse.equinox.​​launcher.Main.invok​e​Framework(Main.jav​a:​549)
at org.eclipse.equinox.​​launcher.Main.basic​R​un(Main.java:504)
at org.eclipse.equinox.​​launcher.Main.run(M​a​in.java:1236)

« Previous message in topic | 1 of 3 | Next message in topic »

Messages

Show all messages in topic

[Issue 827] New - ClassCastException when moving a file form a SVN project to a non-SVN project zorzella Luiz-Otavio Zorzella 2009-01-07 10:43:24 PST
     [Issue 827] ClassCastException when moving a file form a SVN project to a non-SVN project selsemore Stephen Elsemore 2009-01-07 10:51:35 PST
     [Issue 827] ClassCastException when moving a file form a SVN project to a non-SVN project selsemore Stephen Elsemore 2009-01-07 10:52:25 PST
Messages per page: