Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[atf-dev] Snippets DND function in Eclipse Application


Hi, All

Now I'm trying to build a custom personality using ATF personality builder. The personality is created successfully and I could launch them using "Run as--> Eclipse Application", but I found in the second eclipse workspace, I couldn't drag the snippet code into the file. I tried to drag the dojo sample code to a _javascript_ file which worked well in the original eclipse workspace, but it's said that "An error has occured, See error log for more details". The log is attached in the below. And even more, if I exported the created plugins into the workspace of original eclipse workspace, the snippet DND functions didn't work in the original workspace, either. And If I removed the exported plugins for the custom personality from the original eclipse, all was ok...Could anyone please tell me if I did something wrong leading to this problem? Thanks!

Error Log:

ENTRY org.eclipse.jface 4 2 2006-10-16 22:43:53.116
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface".
!STACK 0
java.lang.NoClassDefFoundError
                at org.eclipse.atf.templates.util.TemplateInsertion2.computeInsertString(TemplateInsertion2.java:100)
                at org.eclipse.atf.templates.util.TemplateInsertion2.dragSetData(TemplateInsertion2.java:79)
                at org.eclipse.wst.common.snippets.internal.ui.SnippetsView$TransferDragSourceListenerImpl.dragSetData(SnippetsView.java:411)
                at org.eclipse.jface.util.DelegatingDragAdapter$2.run(DelegatingDragAdapter.java:153)
                at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
                at org.eclipse.core.runtime.Platform.run(Platform.java:843)
                at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
                at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:149)
                at org.eclipse.jface.util.DelegatingDragAdapter.dragSetData(DelegatingDragAdapter.java:151)
                at org.eclipse.swt.dnd.DNDListener.handleEvent(DNDListener.java:41)
                at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
                at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
                at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:952)
                at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:937)
                at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:709)
                at org.eclipse.swt.dnd.DragSource.GetData(DragSource.java:450)
                at org.eclipse.swt.dnd.DragSource.access$7(DragSource.java:429)
                at org.eclipse.swt.dnd.DragSource$4.method3(DragSource.java:247)
                at org.eclipse.swt.internal.ole.win32.COMObject.callback3(COMObject.java:90)
                at org.eclipse.swt.internal.ole.win32.COM.VtblCall(Native Method)
                at org.eclipse.swt.internal.ole.win32.IDataObject.GetData(IDataObject.java:25)
                at org.eclipse.swt.dnd.TextTransfer.nativeToJava(TextTransfer.java:121)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                at java.lang.reflect.Method.invoke(Unknown Source)
                at org.eclipse.wst.sse.ui.internal.TransferBuilder$TransferProxyForDelayLoading.nativeToJava(TransferBuilder.java:254)
                at org.eclipse.swt.dnd.DropTarget.Drop(DropTarget.java:410)
                at org.eclipse.swt.dnd.DropTarget$3.method6(DropTarget.java:238)
                at org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:117)
                at org.eclipse.swt.internal.ole.win32.COM.DoDragDrop(Native Method)
                at org.eclipse.swt.dnd.DragSource.drag(DragSource.java:306)
                at org.eclipse.swt.dnd.DragSource.access$0(DragSource.java:277)
                at org.eclipse.swt.dnd.DragSource$1.handleEvent(DragSource.java:164)
                at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
                at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
                at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
                at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
                at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
                at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
                at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
                at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
                at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
                at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
                at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
                at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
                at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
                at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                at java.lang.reflect.Method.invoke(Unknown Source)
                at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
                at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
                at org.eclipse.core.launcher.Main.run(Main.java:977)
                at org.eclipse.core.launcher.Main.main(Main.java:952)

!ENTRY org.eclipse.wst.sse.ui 4 4 2006-10-16 22:43:54.558
!MESSAGE null
!STACK 0
java.lang.reflect.InvocationTargetException
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                at java.lang.reflect.Method.invoke(Unknown Source)
                at org.eclipse.wst.sse.ui.internal.TransferBuilder$TransferProxyForDelayLoading.nativeToJava(TransferBuilder.java:254)
                at org.eclipse.swt.dnd.DropTarget.Drop(DropTarget.java:410)
                at org.eclipse.swt.dnd.DropTarget$3.method6(DropTarget.java:238)
                at org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:117)
                at org.eclipse.swt.internal.ole.win32.COM.DoDragDrop(Native Method)
                at org.eclipse.swt.dnd.DragSource.drag(DragSource.java:306)
                at org.eclipse.swt.dnd.DragSource.access$0(DragSource.java:277)
                at org.eclipse.swt.dnd.DragSource$1.handleEvent(DragSource.java:164)
                at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
                at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
                at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
                at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
                at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
                at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
                at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
                at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
                at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
                at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
                at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
                at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
                at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
                at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                at java.lang.reflect.Method.invoke(Unknown Source)
                at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
                at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
                at org.eclipse.core.launcher.Main.run(Main.java:977)
                at org.eclipse.core.launcher.Main.main(Main.java:952)
Caused by: org.eclipse.swt.SWTException: Data does not have correct format for type
                at org.eclipse.swt.dnd.DND.error(DND.java:257)
                at org.eclipse.swt.dnd.DND.error(DND.java:208)
                at org.eclipse.swt.dnd.TextTransfer.javaToNative(TextTransfer.java:61)
                at org.eclipse.swt.dnd.DragSource.GetData(DragSource.java:462)
                at org.eclipse.swt.dnd.DragSource.access$7(DragSource.java:429)
                at org.eclipse.swt.dnd.DragSource$4.method3(DragSource.java:247)
                at org.eclipse.swt.internal.ole.win32.COMObject.callback3(COMObject.java:90)
                at org.eclipse.swt.internal.ole.win32.COM.VtblCall(Native Method)
                at org.eclipse.swt.internal.ole.win32.IDataObject.GetData(IDataObject.java:25)
                at org.eclipse.swt.dnd.TextTransfer.nativeToJava(TextTransfer.java:121)
                ... 34 more
Root exception:
org.eclipse.swt.SWTException: Data does not have correct format for type
                at org.eclipse.swt.dnd.DND.error(DND.java:257)
                at org.eclipse.swt.dnd.DND.error(DND.java:208)
                at org.eclipse.swt.dnd.TextTransfer.javaToNative(TextTransfer.java:61)
                at org.eclipse.swt.dnd.DragSource.GetData(DragSource.java:462)
                at org.eclipse.swt.dnd.DragSource.access$7(DragSource.java:429)
                at org.eclipse.swt.dnd.DragSource$4.method3(DragSource.java:247)
                at org.eclipse.swt.internal.ole.win32.COMObject.callback3(COMObject.java:90)
                at org.eclipse.swt.internal.ole.win32.COM.VtblCall(Native Method)
                at org.eclipse.swt.internal.ole.win32.IDataObject.GetData(IDataObject.java:25)
                at org.eclipse.swt.dnd.TextTransfer.nativeToJava(TextTransfer.java:121)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                at java.lang.reflect.Method.invoke(Unknown Source)
                at org.eclipse.wst.sse.ui.internal.TransferBuilder$TransferProxyForDelayLoading.nativeToJava(TransferBuilder.java:254)
                at org.eclipse.swt.dnd.DropTarget.Drop(DropTarget.java:410)
                at org.eclipse.swt.dnd.DropTarget$3.method6(DropTarget.java:238)
                at org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:117)
                at org.eclipse.swt.internal.ole.win32.COM.DoDragDrop(Native Method)
                at org.eclipse.swt.dnd.DragSource.drag(DragSource.java:306)
                at org.eclipse.swt.dnd.DragSource.access$0(DragSource.java:277)
                at org.eclipse.swt.dnd.DragSource$1.handleEvent(DragSource.java:164)
                at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
                at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
                at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
                at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
                at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
                at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
                at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
                at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
                at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
                at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
                at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
                at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
                at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
                at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                at java.lang.reflect.Method.invoke(Unknown Source)
                at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
                at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
                at org.eclipse.core.launcher.Main.run(Main.java:977)
                at org.eclipse.core.launcher.Main.main(Main.java:952)

!ENTRY org.eclipse.ui 4 4 2006-10-16 22:43:54.588
!MESSAGE Unhandled event loop exception

!ENTRY org.eclipse.ui 4 0 2006-10-16 22:43:54.588
!MESSAGE java.lang.Object
!STACK 0
java.lang.ClassCastException: java.lang.Object
                at org.eclipse.wst.sse.ui.internal.TextDropAction.run(TextDropAction.java:25)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                at java.lang.reflect.Method.invoke(Unknown Source)
                at org.eclipse.wst.sse.ui.internal.extension.DropActionProxy.invoke(DropActionProxy.java:138)
                at $Proxy0.run(Unknown Source)
                at org.eclipse.wst.sse.ui.internal.ExtendedEditorDropTargetAdapter.doDrop(ExtendedEditorDropTargetAdapter.java:113)
                at org.eclipse.wst.sse.ui.internal.ExtendedEditorDropTargetAdapter.drop(ExtendedEditorDropTargetAdapter.java:239)
                at org.eclipse.swt.dnd.DNDListener.handleEvent(DNDListener.java:65)
                at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
                at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
                at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:952)
                at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:937)
                at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:709)
                at org.eclipse.swt.dnd.DropTarget.Drop(DropTarget.java:423)
                at org.eclipse.swt.dnd.DropTarget$3.method6(DropTarget.java:238)
                at org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:117)
                at org.eclipse.swt.internal.ole.win32.COM.DoDragDrop(Native Method)
                at org.eclipse.swt.dnd.DragSource.drag(DragSource.java:306)
                at org.eclipse.swt.dnd.DragSource.access$0(DragSource.java:277)
                at org.eclipse.swt.dnd.DragSource$1.handleEvent(DragSource.java:164)
                at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
                at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
                at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
                at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
                at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
                at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
                at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
                at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
                at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
                at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
                at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
                at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
                at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
                at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                at java.lang.reflect.Method.invoke(Unknown Source)
                at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
                at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
                at org.eclipse.core.launcher.Main.run(Main.java:977)
                at org.eclipse.core.launcher.Main.main(Main.java:952)

Back to the top