Oct 8, 2005 11:02 AM
IPersistStorage interface is not supported; OleMessageLoop
Using JRE version 1.5.0_04 Java HotSpot(TM) Client VM on Windows XP, SP2
The error below is shown on the console, but the application appears to continue successfully.
The scenarion is the
Any ideas on what is wrong ?
Here is the snippet from my code:
//the invocation using OleMessageLoop.....
try
{
OleMessageLoop.invokeMethod(this, "createPdfOleObject");
}
catch (Exception e)
{
e.printStackTrace();
}
.............
//the method:
public void createPdfOleObject()
{
IAcroAXDocShim areader = AcroPDF.create(ClsCtx.INPROC_SERVER);
IOleObject oleObject = new IOleObjectImpl(areader);
try
{
_container.insertObject(oleObject);
}
catch (Exception e)
{
LOG.error(e.getMessage());
}
.......
}
Here's the error:
0 Main message loop ERROR com.jniwrapper.win32.automation.OleContainerHelper - IPersistStorage interface is not supported.
com.jniwrapper.win32.com.ComException: COM object method returns error code: 0x80004002; E_NOINTERFACE (No such interface supported)
at com.jniwrapper.win32.com.impl.IUnknownImpl.invokeStandardVirtualMethod(SourceFile:624)
at com.jniwrapper.win32.com.impl.IUnknownImpl.invokeStandardVirtualMethod(SourceFile:650)
at com.jniwrapper.win32.com.impl.IUnknownImpl.queryInterface(SourceFile:460)
at com.jniwrapper.win32.com.impl.IUnknownImpl.queryInterface(SourceFile:454)
at com.jniwrapper.win32.automation.OleContainerHelper.k(SourceFile:357)
at com.jniwrapper.win32.automation.OleContainerHelper.insert(SourceFile:341)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.jniwrapper.win32.a.run(SourceFile:617)
at com.jniwrapper.win32.MessageLoopThread.doInvokeAndWait(SourceFile:183)
at com.jniwrapper.win32.MessageLoopThread.doInvokeMethod(SourceFile:272)
at com.jniwrapper.win32.automation.OleContainer.a(SourceFile:369)
at com.jniwrapper.win32.automation.OleContainer.insertObject(SourceFile:619)
at au.com.practica.common.StandardOleIntegration.createPdfOleObject(StandardOleIntegration.java:146)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.jniwrapper.win32.a.run(SourceFile:617)
at com.jniwrapper.win32.d.run(SourceFile:463)