Community
Participate
Working Groups
This is for the snippets view contribution. In SUSE Linux, if the user tries to insert a parameterized snippet (e.g., the "taglib" snippet in the JSP category), the dialog opens, but does not go away after the user finishes. It opens repeatedly and no text is placed into the JSP. To reproduce: create dynamic web project, create JSP. Open snippets view, open JSP category and drop taglib snippet. Enter some strings in each of the parameters, click Finish. Notice how the dialog opens again, and no text was inserted.
Are there entries added in the Error Log while this is going on? It works fine for me on RHEL4. Which SUSE release is it and which Eclipse build?
Sorry, I should have attached this but forgot. The problem only occurs on SUSE -- I tried Redhat EL4 as well and it worked. Here's the error log: !ENTRY org.eclipse.ui 4 4 2006-06-20 16:43:01.772 !MESSAGE Unhandled event loop exception !ENTRY org.eclipse.ui 4 0 2006-06-20 16:43:01.778 !MESSAGE Data does not have correct format for type !STACK 0 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:64) at org.eclipse.swt.dnd.DragSource.dragGetData(DragSource.java:365) at org.eclipse.swt.dnd.DragSource.DragGetData(DragSource.java:222) at org.eclipse.swt.internal.gtk.OS._gtk_drag_get_data(Native Method) at org.eclipse.swt.internal.gtk.OS.gtk_drag_get_data(OS.java:4027) at org.eclipse.swt.dnd.DropTarget.drag_drop(DropTarget.java:405) at org.eclipse.swt.dnd.DropTarget.Drag_Drop(DropTarget.java:253) at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method) at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:5242) at org.eclipse.swt.widgets.Display.eventProc(Display.java:1133) at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method) at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:1424) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2838) 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:143) 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(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) 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)
I found this problem in SUSE 9.1 SP1 platform; repeating the insert snippet action 3-5 times will finally create code in the JSP. Furthermore, this also occurs to me in Redhat EL 4.0, reported in 149772.
Do you have any additional plugins installed?
The install steps were: 1. download Callisto release from eclipse.org 2. using the update site, get WTP with all its dependencies Other than that, no additional plug-ins. I tried this again on SUSE 9 SP3 and the problem still exists.
I have no idea what "correct format" means, but, could you that are observing this bug check and report your platform's default encoding setting? We may have some hidden assumptions about that. And, by platform, I mean literally the OS's default, and also any changes you've made to "default" setting in Eclipse. Thanks.