NoSuchMethodError: org.eclipse.swt.internal.ole.win32.COM [message #973541] |
Tue, 06 November 2012 07:21  |
Eclipse User |
|
|
|
Hi,
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(Clipboard.java:610)
at org.eclipse.swt.dnd.Clipboard.access$3(Clipboard.java:573)
at org.eclipse.swt.dnd.Clipboard$1.method3(Clipboard.java:523)
at org.eclipse.swt.internal.ole.win32.COMObject.callback3(COMObject.java:92)
at org.eclipse.swt.internal.ole.win32.COM.OleFlushClipboard(Native Method)
at org.eclipse.swt.dnd.Clipboard.dispose(Clipboard.java:220)
But this is working fine with 32 bit myeclipse blue 10.6 version
Install details
----------------
*** System properties:
OS=Windows7
OS version=6.1.0
OS arch=amd64
Profile arch=x86_64
Window system=win32
Java version=1.7.0_07
Workspace=file:/C:/WorkspaceWAS/
VM Args=-Xmx512m
-XX:MaxPermSize=256m
-XX:ReservedCodeCacheSize=64m
-Dosgi.nls.warnings=ignore
-jar
C:\MYECLI~1\MYECLI~1\../Common/plugins/ORB7B5~1.JAR
*** 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
win32
-ws
win32
-arch
x86_64
-showsplash
-launcher
C:\MyEclipseBlue106\MyEclipse Blue Edition 10\myeclipse-blue.exe
-name
Myeclipse-blue
--launcher.library
C:\MyEclipseBlue106\MyEclipse Blue Edition 10\../Common/plugins/org.eclipse.equinox.launcher.i18n.win32.win32.x86_64_4.2.0.v201201111650\eclipse_4201.dll
-startup
C:\MyEclipseBlue106\MyEclipse Blue Edition 10\../Common/plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
-exitdata
fc0_5c
-install
C:\MyEclipseBlue106\MyEclipse Blue Edition 10
-configuration
C:\MyEclipseBlue106\MyEclipse Blue Edition 10\configuration
-clean
-vm
C:\Java\jre7\bin\javaw.exe
Steps
-------
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 byarraytransfer.java 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
-viswa
|
|
|
Re: NoSuchMethodError: org.eclipse.swt.internal.ole.win32.COM [message #1027253 is a reply to message #973541] |
Tue, 26 March 2013 15:10  |
Eclipse User |
|
|
|
Hi,
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();
OleUtils.printAutomation(tableAuto);
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?
|
|
|
Powered by
FUDForum. Page generated in 0.02759 seconds