Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » NoSuchMethodError: org.eclipse.swt.internal.ole.win32.COM( NoSuchMethodError: org.eclipse.swt.internal.ole.win32.COM)
NoSuchMethodError: org.eclipse.swt.internal.ole.win32.COM [message #973541] Tue, 06 November 2012 12:21 Go to next message
viswamy2k k is currently offline viswamy2k kFriend
Messages: 1
Registered: November 2012
Junior Member

Im getting the follwing error while using workflow task copy and paste tasks

java.lang.NoSuchMethodError: org.eclipse.swt.internal.ole.win32.COM.GlobalAlloc(II)I
at org.eclipse.swt.dnd.Clipboard.GetData(
at org.eclipse.swt.dnd.Clipboard.access$3(
at org.eclipse.swt.dnd.Clipboard$1.method3(
at org.eclipse.swt.internal.ole.win32.COMObject.callback3(
at org.eclipse.swt.internal.ole.win32.COM.OleFlushClipboard(Native Method)
at org.eclipse.swt.dnd.Clipboard.dispose(
But this is working fine with 32 bit myeclipse blue 10.6 version

Install details

*** System properties:
OS version=6.1.0
OS arch=amd64
Profile arch=x86_64
Window system=win32
Java version=1.7.0_07
VM Args=-Xmx512m

*** Subscription information
Your 30-day trial period expires on Nov 14, 2012

*** Eclipse details:
MyEclipse Blue Edition

Version: 10.6 Blue
Build id: 10.6-Blue-20120727
Blueprint: MyEclipse Blue Edition 10

Eclipse startup command=-os
C:\MyEclipseBlue106\MyEclipse Blue Edition 10\myeclipse-blue.exe
C:\MyEclipseBlue106\MyEclipse Blue Edition 10\../Common/plugins/org.eclipse.equinox.launcher.i18n.win32.win32.x86_64_4.2.0.v201201111650\eclipse_4201.dll
C:\MyEclipseBlue106\MyEclipse Blue Edition 10\../Common/plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
C:\MyEclipseBlue106\MyEclipse Blue Edition 10
C:\MyEclipseBlue106\MyEclipse Blue Edition 10\configuration

we are trying to write the some xml content to clipborad using the myeclipse swt plug-in for that we have wtitten a class which extends which part of swt jar, here we are using javatonative api to send the content to clipboard and we are getting the exceptio here.

we have observed that the com.globalalloc in 64 bit swt plugin is returning long where as in 32 bit its int, so we want to support our code for both of them, what is the best way of handling this[/i]

could you please let us know the reason

thanks in advance
Re: NoSuchMethodError: org.eclipse.swt.internal.ole.win32.COM [message #1027253 is a reply to message #973541] Tue, 26 March 2013 19:10 Go to previous message
Binko Binev is currently offline Binko BinevFriend
Messages: 20
Registered: June 2012
Junior Member

Sorry for distrubing but as you use SWT OLE , you may know the naswer of my problem.

I am processing the rows of a table in a word document. Sometimes it works fine, sometimes the whole application crashes.

here is the method I use

	 * Returns the row in the table with the given index
	 * @param tableVar - table variant
	 * @param rowIndex - row index
	 * @return rowVariant - row Variant
	 * @throws OleException
	public static Variant getRow(Variant tableVar, int rowIndex) throws OleException {
		OleAutomation tableAuto = tableAuto = tableVar.getAutomation();
		Variant rowsVar = null;
		while (rowsVar == null){
			rowsVar = tableAuto.getProperty(101/*Rows*/);
		OleAutomation rowsAuto = rowsVar.getAutomation();
		Variant rowVar = rowsAuto.invoke(0/*Item*/, new Variant[]{new Variant(rowIndex)});
		return rowVar;

Any ideas what may be the reason for a crash of the application?
Previous Topic:How to hide confirmConversion dialog when open docx file with help 2003
Next Topic:OLE Outlook
Goto Forum:

Current Time: Tue Jun 19 05:14:01 GMT 2018

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

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

Back to the top