Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Failed to create Ole Client. result = -2147467259
Failed to create Ole Client. result = -2147467259 [message #1763911] Mon, 22 May 2017 19:54
Tejaswi Gade is currently offline Tejaswi GadeFriend
Messages: 1
Registered: May 2017
Junior Member

We have a Java application which makes a call to a windows application. The call is successful when I install and run our Java app on my local machine but when we host it on Citrix server, it throws a COMException. I used windbg.exe and got the below error message.
0:001> kpn
# Child-SP          RetAddr           Call Site
00 00000000`0313ca50 00007ffe`0304043a KERNELBASE!RaiseException+0x68
01 00000000`0313cb30 00007ffe`032e7033 clr!RaiseTheExceptionInternalOnly+0x2aa
02 00000000`0313cc30 00007ffe`03066ee6 clr!UnwindAndContinueRethrowHelperAfterCatch+0x80
*** WARNING: Unable to verify checksum for C:\Windows\assembly\NativeImages_v4.0.30319_64\System.Windows.Forms\37004ddc6f466d807c52ca3b7f9f9827\
03 00000000`0313cc80 00007ffd`e606fe11 clr!StubHelpers::InterfaceMarshaler__ConvertToManaged+0x126
04 00000000`0313ce20 00007ffe`02ea2e39 System_Windows_Forms_ni+0x87fe11
05 00000000`0313ce70 00007ffe`03066204 clr!COMToCLRDispatchHelper+0x39
06 00000000`0313cea0 00007ffe`02ea2d97 clr!COMToCLRWorker+0x1b4
07 00000000`0313cf60 00007ffe`0ec989c4 clr!GenericComCallStub+0x57
08 00000000`0313cff0 00007ffe`0ecd9b67 ole32!wCreateObject+0x2a154 [d:\blue\com\ole32\ole232\base\create.cpp @ 3046] 
09 00000000`0313d0a0 00007ffe`0ecd9a49 ole32!OleCreateEx(struct _GUID * rclsid = 0x00000000`0313d260 {AC13425A-648D-46D1-8A5A-79ACFCD34161}, struct _GUID * iid = 0x00000000`0313d270 {00000000-0000-0000-C000-000000000046}, unsigned long dwFlags = <Value unavailable error>, unsigned long renderopt = 1, unsigned long cFormats = 1, unsigned long * rgAdvf = 0x00000000`00000000, struct tagFORMATETC * rgFormatEtc = 0x00000000`00000000, struct IAdviseSink * lpAdviseSink = 0x00000000`00000000, unsigned long * rgdwConnection = 0x00000000`00000000, struct IOleClientSite * lpClientSite = 0x00000000`4535d540, struct IStorage * lpStg = 0x00000000`4d830378, void ** lplpObj = 0x00000000`1b0d40f0)+0x107 [d:\blue\com\ole32\ole232\base\create.cpp @ 315] 
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for C:\Users\<users>\org.eclipse.osgi\bundles\960\1\.cp\swt-win32-4236.dll - 
0a 00000000`0313d170 00000000`1f1d7661 ole32!OleCreate(struct _GUID * rclsid = <Value unavailable error>, struct _GUID * iid = <Value unavailable error>, unsigned long renderopt = <Value unavailable error>, struct tagFORMATETC * lpFormatEtc = <Value unavailable error>, struct IOleClientSite * lpClientSite = 0x00000000`4535d540, struct IStorage * lpStg = 0x00000000`4d830378, void ** lplpObj = 0x00000000`1b0d40f0)+0x79 [d:\blue\com\ole32\ole232\base\create.cpp @ 219] 
0b 00000000`0313d1e0 00000000`032e7f74 swt_win32_4236!Java_org_eclipse_swt_internal_ole_win32_COM_OleCreate+0x119
0c 00000000`0313d2e0 00000000`032d80e0 0x32e7f74
0d 00000000`0313d2e8 00000000`00000022 0x32d80e0
0e 00000000`0313d2f0 00000000`f71a2718 0x22
0f 00000000`0313d2f8 00000000`f71a2678 0xf71a2718
10 00000000`0313d300 00000000`00000001 0xf71a2678
11 00000000`0313d308 00000000`00000000 0x1
0:001> !pe
Exception object: 0000000028f622e8
Exception type:   System.Runtime.InteropServices.COMException
Message:          Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))
InnerException:   <none>
StackTrace (generated):
StackTraceString: <none>
HResult: 80004005

On the java side, I get the below exception when it is creating an Ole.
org.eclipse.swt.SWTException: Failed to create Ole Client. result = -2147467259

At this code in org.eclipse.swt.ole.win32, the result is -2147467259.
int /*long*/ clientSite = isICAClient() ? 0 : iOleClientSite.getAddress();
int result = COM.OleCreate(appClsid, COM.IIDIUnknown, COM.OLERENDER_DRAW, null, clientSite, tempStorage.getAddress(), address);
if (result != COM.S_OK)

Any help is appreciated. Thanks.

Previous Topic:Drag the value From table viwer and Drop this value another specific table Viewer in SWT
Next Topic:Need ComboBoxCellEditor drop down multi selection functionality in SWT
Goto Forum:

Current Time: Mon Oct 22 13:03:00 GMT 2018

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

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

Back to the top