cancel
Showing results for 
Search instead for 
Did you mean: 

SWTError in NWDS 7.0

former_member192434
Active Contributor
0 Kudos

Hi All,

There is an issue with my NWDS 7.0, when i start the NWDS is getting started without any error, but after few seconds(around 30 Sec) its getting closed automatically.

when i checked the log file found that it is throwing "SWTError".

Any help would greatly appriated.

Log Details are below::

!MESSAGE No more handles

!STACK 0

org.eclipse.swt.SWTError: No more handles

at org.eclipse.swt.SWT.error(SWT.java:2356)

at org.eclipse.swt.SWT.error(SWT.java:2260)

at org.eclipse.swt.widgets.Widget.error(Widget.java:385)

at org.eclipse.swt.widgets.Control.createHandle(Control.java:471)

at org.eclipse.swt.widgets.Control.createWidget(Control.java:486)

at org.eclipse.swt.widgets.Control.<init>(Control.java:95)

at org.eclipse.swt.widgets.Label.<init>(Label.java:89)

at com.sap.ide.webdynpro.viewdesigner.ViewDesignerPart.insertToolItem(ViewDesignerPart.java:277)

at com.sap.ide.webdynpro.viewdesigner.ViewDesignerPart.createTrayItem(ViewDesignerPart.java:399)

at com.sap.ide.webdynpro.viewdesigner.ViewDesignerPart.createBarControl(ViewDesignerPart.java:453)

at com.sap.ide.webdynpro.viewdesigner.ViewDesignerPart.createPartControl(ViewDesignerPart.java:758)

at org.eclipse.ui.part.MultiPageEditorPart.addPage(MultiPageEditorPart.java:107)

at com.sap.ide.webdynpro.controllereditor.ControllerEditorPart.createLayoutPage(ControllerEditorPart.java:542)

at com.sap.ide.webdynpro.controllereditor.ControllerEditorPart.createPages(ControllerEditorPart.java:409)

at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:166)

at org.eclipse.ui.internal.PartPane$4.run(PartPane.java:141)

at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1006)

at org.eclipse.core.runtime.Platform.run(Platform.java:413)

at org.eclipse.ui.internal.PartPane.createChildControl(PartPane.java:137)

at org.eclipse.ui.internal.EditorManager$7.run(EditorManager.java:921)

at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1006)

at org.eclipse.core.runtime.Platform.run(Platform.java:413)

at org.eclipse.ui.internal.EditorManager.busyRestoreEditor(EditorManager.java:864)

at org.eclipse.ui.internal.EditorManager$6.run(EditorManager.java:857)

at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)

at org.eclipse.ui.internal.EditorManager.restoreEditor(EditorManager.java:853)

at org.eclipse.ui.internal.EditorManager$Editor.getEditor(EditorManager.java:1266)

at org.eclipse.ui.internal.EditorManager$Editor.getPart(EditorManager.java:1258)

at org.eclipse.ui.internal.WorkbenchPage$7.run(WorkbenchPage.java:1356)

at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:127)

at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:24)

at org.eclipse.swt.widgets.Display.syncExec(Display.java:2337)

at org.eclipse.ui.internal.WorkbenchPage.getEditors(WorkbenchPage.java:1353)

at com.tssap.selena.internal.core.providers.java.editor.JavaEditorPart.getJavaEditors(JavaEditorPart.java:70)

at com.tssap.selena.internal.core.providers.java.editor.JavaEditorPart.access$100(JavaEditorPart.java:22)

at com.tssap.selena.internal.core.providers.java.editor.JavaEditorPart$2.run(JavaEditorPart.java:95)

at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)

at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:98)

at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:1999)

at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1733)

at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1402)

at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)

at com.tssap.util.startup.WBLauncher.run(WBLauncher.java:79)

at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858)

at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)

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:324)

at com.sap.ide.eclipse.startup.Main.basicRun(Main.java:291)

at com.sap.ide.eclipse.startup.Main.run(Main.java:789)

at com.sap.ide.eclipse.startup.Main.main(Main.java:607)

!ENTRY Startup 1 0 May 27, 2011 06:16:17.640

!MESSAGE Sap NetWeaver Developer Studio - Build: 200608262203

Thanks

AB

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi all,

I have the same problem.

I get the following error msg while opening a Web Dynpro view or component controller:


Plugin name: Web Dynpro TS Model
Plugin ID: com.sap.ide.webdynpro.tsmodel.application
Class: com.sap.ide.webdynpro.tsmodel.application.actions.EditViewAction
...
Exception: org.eclipse.swt.SWTError: No more handles

This means, I cannot work anyway. It always results in the above error.

I am running Windows 7 x64

I installed 32 bit software of:

- NWDS 7.02 SP09 (also tried older versions of 7.02 and 7.01)

- Java SDK 1.4.2_19 (we need Java 1.4 for our project)

What I tried to fix this issue:

- installed several versions of NWDS

- delete .dtr / .dtc and .metadata folder

- I didn't count how many reboots I made, but it was a lot

- I started SapIDE with and without vm-args

My vm args are:

"C:\Program Files (x86)\SAP\IDE\IDE70\eclipse\SapIde.exe" -vmArgFile vm.parameters -vm "C:\Program Files (x86)\Java\j2sdk1.4.2_19\bin\javaw.exe" -clean

The file vm.parameters contains the follwing content:

-Xmx768m

-Xms256m

-XX:PermSize=64m

-XX:MaxPermSize=256m

(As I said, I tried it with args and without)

- I also deleted and restored the plugins in .metadata\.plugins as described in this thread

Nothing worked. I always get the same error msg "Web Dynpro TS model -> SWTError: No more handles".

Can anyone help to solve this issue?

Thanks!

Former Member
0 Kudos

try to close all windows, exit and run again.

if it not helps restart your computer, if it helps - probable reason was insoffitient memory.

may be reason is a bad document in eclipse cache,

try command

eclipse -clean

The clean option will clean out any caches that Eclipse has created.

former_member192434
Active Contributor
0 Kudos

Hey Vladimir,

Thanks for your promt reply...

I have restarted my pc but didn't workout.

i tried the scond option as well. "eclipse -clean" afte running this i get below message.

The procedure entry point JVM_FindClassFromBootLoader could not be located in the dynamic link library jvm.dll.

Then Click OK now gt this.

Eclipse

-


JVM terminated. Exit code=1

C:\WINDOWS\system32\javaw.exe

-cp C:\Program Files\SAP\IDE\IDE70\eclipse\startup.jar org.eclipse.core.launcher.Main

-os win32

-ws win32

-arch x86

-showsplash C:\Program Files\SAP\IDE\IDE70\eclipse\eclipse.exe -showsplash 600

Any other soluation..

junwu
Active Contributor
0 Kudos

it's quite clear that it is using the wrong jvm.

please set the java home

you can also specify the jvm when start the nwds.

former_member192434
Active Contributor
0 Kudos

Hi Johan,

Thanks for yo Ans, i solved it doing some un logical things which my slef sure about.,

1. copy the workspace\.metadata\.plugins\*org.eclipse.core.resources* on temp location and then delted it from workspace.

2 Started NWDS.

3. Closed the NWDS and restored the org.eclipse.core.resources on same place now its started working now

Thanks

AB

Former Member
0 Kudos

Your solution worked for me also... !!