Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Moving view class cast exception
Moving view class cast exception [message #826031] Wed, 21 March 2012 15:07 Go to next message
Sergey Kuznetsov is currently offline Sergey KuznetsovFriend
Messages: 29
Registered: July 2009
Junior Member
Hi all,

Am I the only one getting this after some view has been moved to new
location?

!ENTRY org.eclipse.ui 4 0 2012-03-21 15:34:41.041
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.ClassCastException:
org.eclipse.e4.ui.model.application.ui.advanced.impl.PerspectiveImpl cannot
be cast to
org.eclipse.e4.ui.model.application.ui.basic.MPartSashContainerElement
at
org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.insert(ModelServiceImpl.java:564)
at
org.eclipse.e4.ui.workbench.addons.dndaddon.SplitDropAgent.dock(SplitDropAgent.java:331)
at
org.eclipse.e4.ui.workbench.addons.dndaddon.SplitDropAgent.drop(SplitDropAgent.java:161)
at
org.eclipse.e4.ui.workbench.addons.dndaddon.DragAgent.dragFinished(DragAgent.java:159)
at
org.eclipse.e4.ui.workbench.addons.dndaddon.PartDragAgent.dragFinished(PartDragAgent.java:105)
at
org.eclipse.e4.ui.workbench.addons.dndaddon.DnDManager.finishDrag(DnDManager.java:238)
at
org.eclipse.e4.ui.workbench.addons.dndaddon.DnDManager.startDrag(DnDManager.java:203)
at
org.eclipse.e4.ui.workbench.addons.dndaddon.DnDManager$1.dragDetected(DnDManager.java:83)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:127)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)
at
org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1015)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at
org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:909)
at
org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:85)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:580)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:535)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at se.highex.dmon.Application.start(Application.java:75)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
Re: Moving view class cast exception [message #826052 is a reply to message #826031] Wed, 21 March 2012 15:41 Go to previous messageGo to next message
Sopot Cela is currently offline Sopot CelaFriend
Messages: 597
Registered: December 2010
Senior Member

I believe this is related to bug 345343
what eclipse version are you on? I can't reproduce it on Juno M6.
Re: Moving view class cast exception [message #827428 is a reply to message #826031] Fri, 23 March 2012 10:12 Go to previous messageGo to next message
Watabe Kichi is currently offline Watabe KichiFriend
Messages: 12
Registered: July 2011
Junior Member
Hi,

I got the same error on Juno M6.

--

Version: 4.2.0
Build id: I20120315-1300

OS : Windows Vista 64bit

--

1.
I created e4 Application Project. All settings are default.

2.
Added DnD Addon to Application.e4xmi and set the dependency to org.eclipse.e4.ui.workbench.addons.swt.

3.
Added two Parts (Part1, Part2) to Application.e4xmi.
PartSashContainer > PartStack > (Part1 & Part2)
Created corresponding classes for Parts.

4.
Run the Product.

Separate Parts (No Error).
Put back the Part(No Error).
Separate Parts(Got Error).
Re: Moving view class cast exception [message #827454 is a reply to message #827428] Fri, 23 March 2012 10:59 Go to previous messageGo to next message
Sopot Cela is currently offline Sopot CelaFriend
Messages: 597
Registered: December 2010
Senior Member

I reproduced it too. Please file a bug with the steps you provided.

Watabe Kichi wrote on Fri, 23 March 2012 12:12
Hi,

I got the same error on Juno M6.

--

Version: 4.2.0
Build id: I20120315-1300

OS : Windows Vista 64bit

--

1.
I created e4 Application Project. All settings are default.

2.
Added DnD Addon to Application.e4xmi and set the dependency to org.eclipse.e4.ui.workbench.addons.swt.

3.
Added two Parts (Part1, Part2) to Application.e4xmi.
PartSashContainer > PartStack > (Part1 & Part2)
Created corresponding classes for Parts.

4.
Run the Product.

Separate Parts (No Error).
Put back the Part(No Error).
Separate Parts(Got Error).

Re: Moving view class cast exception [message #827629 is a reply to message #827454] Fri, 23 March 2012 15:36 Go to previous message
Watabe Kichi is currently offline Watabe KichiFriend
Messages: 12
Registered: July 2011
Junior Member
Thank you for the reply.
I reported the bug.

Bug 375194
Previous Topic:Coloring the trim on a CTabFolder
Next Topic:Deprecated CSS properties -- what to use instead?
Goto Forum:
  


Current Time: Sat Dec 20 08:57:03 GMT 2014

Powered by FUDForum. Page generated in 0.02017 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software